com.threerings.opengl.util
Class Grid
java.lang.Object
com.threerings.opengl.util.SimpleRenderable
com.threerings.opengl.util.SimpleTransformable
com.threerings.opengl.util.Grid
- All Implemented Interfaces:
- Compositable, Enqueueable
- Direct Known Subclasses:
- EditorGrid
public class Grid
- extends SimpleTransformable
Renders an unlit reference grid on the XY plane, centered about the origin.
|
Constructor Summary |
Grid(GlContext ctx,
int lines,
float spacing)
Creates a new grid with the specified number of lines in each direction and the given
spacing between the lines. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Grid
public Grid(GlContext ctx,
int lines,
float spacing)
- Creates a new grid with the specified number of lines in each direction and the given
spacing between the lines.
getColor
public Color4f getColor()
- Returns a reference to the grid color.
createStates
protected RenderState[] createStates()
- Description copied from class:
SimpleRenderable
- Creates the state set for this object.
- Overrides:
createStates in class SimpleTransformable