Class SolidCubesTest
java.lang.Object
eu.svjatoslav.sixth.e3d.examples.benchmark.SolidCubesTest
- All Implemented Interfaces:
BenchmarkTest
Benchmark test for solid-color cubes.
Renders a grid of cubes with random semi-transparent colors to test
solid polygon rasterization performance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the display name for this benchmark test.voidsetup(eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection shapes) Sets up the test scene by adding shapes to the collection.voidteardown(eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection shapes) Tears down the test scene by removing all shapes added during setup.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.svjatoslav.sixth.e3d.examples.benchmark.BenchmarkTest
setViewPanel
-
Constructor Details
-
SolidCubesTest
public SolidCubesTest()Creates a new SolidCubesTest instance.
-
-
Method Details
-
getName
Description copied from interface:BenchmarkTestReturns the display name for this benchmark test.- Specified by:
getNamein interfaceBenchmarkTest- Returns:
- the test name
-
setup
public void setup(eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection shapes) Description copied from interface:BenchmarkTestSets up the test scene by adding shapes to the collection.- Specified by:
setupin interfaceBenchmarkTest- Parameters:
shapes- the shape collection to populate
-
teardown
public void teardown(eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection shapes) Description copied from interface:BenchmarkTestTears down the test scene by removing all shapes added during setup.- Specified by:
teardownin interfaceBenchmarkTest- Parameters:
shapes- the shape collection to clean up
-