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. |
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.
Copyright © 2011. All Rights Reserved.