Class SceneRenderer

java.lang.Object
com.j3d.engine.scene.draw.SceneRenderer

public final class SceneRenderer extends Object
SceneRenderer is a class which has the sole responsibility of referencing a single SortMethod and hence drawing every single Pure wrapped in a RenderState which is provided to it.

The "methods" which in reality are just plain ArrayList with special sorting done when things are added. Examples include:

  • CamDistSort sorts by Euclidean distance to the camera
  • CamDepthSort sorts by camera's depth value
  • DDUUIDSort attempts to sort by Distance, then Depth, and finally falls back to UUID

Author:
Lehlogonolo Poole
See Also:
  • Field Details

    • queue

      private SortMethod queue
      A list used for sorting RenderState objects based on whichever method SceneRenderer uses. The list is cleared after each render cycle.
  • Constructor Details

    • SceneRenderer

      public SceneRenderer()
  • Method Details