|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.opengl.util.SimpleRenderable
com.threerings.opengl.util.SimpleTransformable
public abstract class SimpleTransformable
Extends SimpleRenderable to include a world space transform so that subclasses can
render themselves in model space.
| Field Summary | |
|---|---|
protected Transform3D |
_transform
The world space transform. |
| Fields inherited from class com.threerings.opengl.util.SimpleRenderable |
|---|
_batch, _ctx, _priority, _queue |
| Constructor Summary | |
|---|---|
protected |
SimpleTransformable()
Creates an uninitialized transformable. |
|
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 | |
|---|---|
protected RenderState[] |
createStates()
Creates the state set for this object. |
void |
enqueue()
Enqueues this object for rendering. |
protected Vector3f |
getCenter()
Returns the transformable's model space center. |
Transform3D |
getTransform()
Returns a reference to the world space transform. |
| 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 |
| Field Detail |
|---|
protected Transform3D _transform
| Constructor Detail |
|---|
public SimpleTransformable(GlContext ctx)
public SimpleTransformable(GlContext ctx,
String queue)
queue - the name of the queue into which we place the batch.
public SimpleTransformable(GlContext ctx,
String queue,
int priority)
queue - the name of the queue into which we place the batch.priority - the priority level at which to enqueue the batch.
public SimpleTransformable(GlContext ctx,
String queue,
int priority,
boolean modifiesColorState,
int primitiveCount)
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.protected SimpleTransformable()
| Method Detail |
|---|
public Transform3D getTransform()
public void enqueue()
Enqueueable
enqueue in interface Enqueueableenqueue in class SimpleRenderableprotected RenderState[] createStates()
SimpleRenderable
createStates in class SimpleRenderableprotected Vector3f getCenter()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||