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
cachedBoundingBox, 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, extractSolidPolygons, getBoundingBox, getGroup, getLocation, getSubShapesRegistry, getTransform, getViewSpaceTracker, hideGroup, intersect, removeGroup, setBackfaceCulling, setCacheNeedsRebuild, setColor, setGroupForUngrouped, setMouseInteractionController, setRootComposite, setShadingEnabled, setTransform, showGroup, subtract, transform, unionMethods inherited from class eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape
invalidateBounds
-
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
-