Class TexturedCube
java.lang.Object
eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape
eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.base.AbstractCompositeShape
eu.svjatoslav.sixth.e3d.examples.benchmark.TexturedCube
public class TexturedCube
extends eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.base.AbstractCompositeShape
A cube composed of textured polygons.
Used by the
TexturedCubesTest benchmark to measure texture rendering performance.-
Field Summary
Fields inherited from class eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape
mouseInteractionController -
Constructor Summary
ConstructorsConstructorDescriptionTexturedCube(eu.svjatoslav.sixth.e3d.geometry.Point3D center, double size, eu.svjatoslav.sixth.e3d.renderer.raster.texture.Texture texture) Creates a textured cube centered at the given position. -
Method Summary
Methods inherited from class eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.base.AbstractCompositeShape
addShape, addShape, beforeTransformHook, getGroup, getLocation, getOriginalSubShapes, getViewSpaceTracker, hideGroup, removeGroup, setBackfaceCulling, setColor, setGroupForUngrouped, setLightingManager, setMouseInteractionController, setShadingEnabled, setTransform, showGroup, transform
-
Constructor Details
-
TexturedCube
public TexturedCube(eu.svjatoslav.sixth.e3d.geometry.Point3D center, double size, eu.svjatoslav.sixth.e3d.renderer.raster.texture.Texture texture) Creates a textured cube centered at the given position.- Parameters:
center- the center position of the cubesize- half the edge length of the cubetexture- the texture to apply to all faces
-