com.threerings.opengl.renderer
Class SimpleBatch.DrawCommand
java.lang.Object
com.threerings.opengl.renderer.SimpleBatch.DrawCommand
- Direct Known Subclasses:
- SimpleBatch.CallList, SimpleBatch.DrawArrays, SimpleBatch.DrawElements
- Enclosing class:
- SimpleBatch
public abstract static class SimpleBatch.DrawCommand
- extends Object
The superclass for the stateless draw commands that actually draw the primitives.
|
Method Summary |
abstract boolean |
call()
Calls the draw command, causing the batch's primitives to be rendered. |
abstract int |
getPrimitiveCount()
Returns the number of primitives rendered by this command. |
SimpleBatch.DrawCommand
public SimpleBatch.DrawCommand()
call
public abstract boolean call()
- Calls the draw command, causing the batch's primitives to be rendered.
- Returns:
- true if the command affected the color state, in which case it should be
invalidated.
getPrimitiveCount
public abstract int getPrimitiveCount()
- Returns the number of primitives rendered by this command.
Copyright © 2011. All Rights Reserved.