|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.opengl.util.SimpleRenderable
public abstract class SimpleRenderable
A base class for renderable objects based on SimpleBatches.
| Field Summary | |
|---|---|
protected SimpleBatch |
_batch
The batch that we submit to the renderer. |
protected GlContext |
_ctx
The renderer context. |
protected int |
_priority
The priority level of the batch. |
protected RenderQueue |
_queue
The queue into which we place our batch. |
| Constructor Summary | |
|---|---|
protected |
SimpleRenderable()
Creates an uninitialized renderable. |
|
SimpleRenderable(GlContext ctx)
Creates a new simple renderable. |
|
SimpleRenderable(GlContext ctx,
String queue)
Creates a new simple renderable. |
|
SimpleRenderable(GlContext ctx,
String queue,
int priority)
Creates a new simple renderable. |
|
SimpleRenderable(GlContext ctx,
String queue,
int priority,
boolean modifiesColorState,
int primitiveCount)
Creates a new simple renderable. |
| Method Summary | |
|---|---|
void |
composite()
Adds this object's Dependencys and Enqueueables to the compositor in
preparation for rendering. |
protected SimpleBatch |
createBatch(boolean modifiesColorState,
int primitiveCount)
Creates the batch to draw. |
protected RenderState[] |
createStates()
Creates the state set for this object. |
protected void |
draw()
Draws the geometry in immediate mode. |
void |
enqueue()
Enqueues this object for rendering. |
RenderState[] |
getStates()
Returns a reference to the state set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GlContext _ctx
protected RenderQueue _queue
protected SimpleBatch _batch
protected int _priority
| Constructor Detail |
|---|
public SimpleRenderable(GlContext ctx)
public SimpleRenderable(GlContext ctx,
String queue)
queue - the name of the queue into which we place the batch.
public SimpleRenderable(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 SimpleRenderable(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
draw() method.primitiveCount - the primitive count to report to the renderer.protected SimpleRenderable()
| Method Detail |
|---|
public RenderState[] getStates()
public void composite()
CompositableDependencys and Enqueueables to the compositor in
preparation for rendering.
composite in interface Compositablepublic void enqueue()
Enqueueable
enqueue in interface Enqueueable
protected SimpleBatch createBatch(boolean modifiesColorState,
int primitiveCount)
protected RenderState[] createStates()
protected void draw()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||