|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.opengl.util.SimpleRenderable
com.threerings.opengl.util.SimpleOverlay
com.threerings.opengl.util.Compass
public class Compass
A compass that displays the coordinate system axes.
| Field Summary | |
|---|---|
protected Vector3f |
_vector
Temporary vector used to determine where the axes lie. |
protected Text |
_x
The axis labels. |
protected Text |
_y
The axis labels. |
protected Text |
_z
The axis labels. |
| Fields inherited from class com.threerings.opengl.util.SimpleRenderable |
|---|
_batch, _ctx, _priority, _queue |
| Constructor Summary | |
|---|---|
Compass(GlContext ctx)
Creates a new compass. |
|
| Method Summary | |
|---|---|
protected void |
draw()
Draws the geometry in immediate mode. |
protected void |
drawAxis(Renderer renderer,
Text label,
float x,
float y)
Draws one of the compass axes. |
| Methods inherited from class com.threerings.opengl.util.SimpleOverlay |
|---|
composite, createStates |
| Methods inherited from class com.threerings.opengl.util.SimpleRenderable |
|---|
createBatch, enqueue, getStates |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Text _x
protected Text _y
protected Text _z
protected Vector3f _vector
| Constructor Detail |
|---|
public Compass(GlContext ctx)
| Method Detail |
|---|
protected void draw()
SimpleRenderable
draw in class SimpleRenderable
protected void drawAxis(Renderer renderer,
Text label,
float x,
float y)
x - the x component of the rotated axis.y - the y component of the rotated axis.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||