|
|||||||||
| 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.Stats
public class Stats
Displays rendering statistics.
| Field Summary | |
|---|---|
protected int |
_frameCount
The number of frames rendered since the last update. |
protected long |
_lastUpdate
The time at which we last updated the stats. |
protected Text |
_stats
The stats display text. |
protected CharacterTextFactory |
_textFactory
Used to create text objects. |
protected static long |
REPORT_INTERVAL
The interval at which we update the stats. |
| Fields inherited from class com.threerings.opengl.util.SimpleRenderable |
|---|
_batch, _ctx, _priority, _queue |
| Constructor Summary | |
|---|---|
Stats(GlContext ctx)
Creates a new stats display. |
|
| Method Summary | |
|---|---|
void |
composite()
Adds this object's Dependencys and Enqueueables to the compositor in
preparation for rendering. |
protected void |
draw()
Draws the geometry in immediate mode. |
protected int |
getY()
Returns the y coordinate at which to render the stats. |
| Methods inherited from class com.threerings.opengl.util.SimpleOverlay |
|---|
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 CharacterTextFactory _textFactory
protected Text _stats
protected long _lastUpdate
protected int _frameCount
protected static final long REPORT_INTERVAL
| Constructor Detail |
|---|
public Stats(GlContext ctx)
| Method Detail |
|---|
public void composite()
CompositableDependencys and Enqueueables to the compositor in
preparation for rendering.
composite in interface Compositablecomposite in class SimpleOverlayprotected void draw()
SimpleRenderable
draw in class SimpleRenderableprotected int getY()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||