com.threerings.opengl.util
Class SimpleRenderable

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

public abstract class SimpleRenderable
extends Object
implements Compositable, Enqueueable

A base class for renderable objects based on SimpleBatches.


Constructor Summary
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.
 void enqueue()
          Enqueues this object for rendering.
 RenderState[] getStates()
          Returns a reference to the state set.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRenderable

public SimpleRenderable(GlContext ctx)
Creates a new simple renderable.


SimpleRenderable

public SimpleRenderable(GlContext ctx,
                        String queue)
Creates a new simple renderable.

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

SimpleRenderable

public SimpleRenderable(GlContext ctx,
                        String queue,
                        int priority)
Creates a new simple renderable.

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

SimpleRenderable

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

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 draw() method.
primitiveCount - the primitive count to report to the renderer.
Method Detail

getStates

public RenderState[] getStates()
Returns a reference to the state set.


composite

public void composite()
Description copied from interface: Compositable
Adds this object's Dependencys and Enqueueables to the compositor in preparation for rendering.

Specified by:
composite in interface Compositable

enqueue

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

Specified by:
enqueue in interface Enqueueable


Copyright © 2011. All Rights Reserved.