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

    Constructors
    Constructor
    Description
    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.
  • 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 cube
      size - half the edge length of the cube
      texture - the texture to apply to all faces