com.threerings.opengl.util
Class SimpleTransformable

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

public abstract class SimpleTransformable
extends SimpleRenderable

Extends SimpleRenderable to include a world space transform so that subclasses can render themselves in model space.


Constructor Summary
SimpleTransformable(GlContext ctx)
          Creates a new simple transformable.
SimpleTransformable(GlContext ctx, String queue)
          Creates a new simple transformable.
SimpleTransformable(GlContext ctx, String queue, int priority)
          Creates a new simple transformable.
SimpleTransformable(GlContext ctx, String queue, int priority, boolean modifiesColorState, int primitiveCount)
          Creates a new simple transformable.
 
Method Summary
 void enqueue()
          Enqueues this object for rendering.
 Transform3D getTransform()
          Returns a reference to the world space transform.
 
Methods inherited from class com.threerings.opengl.util.SimpleRenderable
composite, getStates
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTransformable

public SimpleTransformable(GlContext ctx)
Creates a new simple transformable.


SimpleTransformable

public SimpleTransformable(GlContext ctx,
                           String queue)
Creates a new simple transformable.

Parameters:
queue - the name of the queue into which we place the batch.

SimpleTransformable

public SimpleTransformable(GlContext ctx,
                           String queue,
                           int priority)
Creates a new simple transformable.

Parameters:
queue - the name of the queue into which we place the batch.
priority - the priority level at which to enqueue the batch.

SimpleTransformable

public SimpleTransformable(GlContext ctx,
                           String queue,
                           int priority,
                           boolean modifiesColorState,
                           int primitiveCount)
Creates a new simple transformable.

Parameters:
queue - the name of the queue into which we place the batch.
priority - the priority level at which to enqueue the batch.
modifiesColorState - if true, invalidate the color state after calling the SimpleRenderable.draw() method.
primitiveCount - the primitive count to report to the renderer.
Method Detail

getTransform

public Transform3D getTransform()
Returns a reference to the world space transform.


enqueue

public void enqueue()
Description copied from interface: Enqueueable
Enqueues this object for rendering.

Specified by:
enqueue in interface Enqueueable
Overrides:
enqueue in class SimpleRenderable


Copyright © 2011. All Rights Reserved.