com.threerings.opengl.util
Class DebugBounds

java.lang.Object
  extended by com.threerings.opengl.util.SimpleRenderable
      extended by com.threerings.opengl.util.SimpleTransformable
          extended by com.threerings.opengl.util.DebugBounds
All Implemented Interfaces:
Compositable, Enqueueable

public abstract class DebugBounds
extends SimpleTransformable

Renders bounding boxes for debugging purposes.


Field Summary
 
Fields inherited from class com.threerings.opengl.util.SimpleTransformable
_transform
 
Fields inherited from class com.threerings.opengl.util.SimpleRenderable
_batch, _ctx, _priority, _queue
 
Constructor Summary
DebugBounds(GlContext ctx)
          Creates a new set of debug bounds.
 
Method Summary
protected  RenderState[] createStates()
          Creates the state set for this object.
static void draw(Box bounds, Color4f color)
          Draws a single bounding box in the specified color.
 
Methods inherited from class com.threerings.opengl.util.SimpleTransformable
enqueue, getCenter, getTransform
 
Methods inherited from class com.threerings.opengl.util.SimpleRenderable
composite, createBatch, draw, getStates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugBounds

public DebugBounds(GlContext ctx)
Creates a new set of debug bounds.

Method Detail

draw

public static void draw(Box bounds,
                        Color4f color)
Draws a single bounding box in the specified color.


createStates

protected RenderState[] createStates()
Description copied from class: SimpleRenderable
Creates the state set for this object.

Overrides:
createStates in class SimpleTransformable