|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsdljavax.gfx.FPSmanager
public final class FPSmanager
Full java version of the framerate manager from SDL_gfx library.
| Field Summary | |
|---|---|
static int |
FPS_DEFAULT
|
static int |
FPS_LOWER_LIMIT
|
static int |
FPS_UPPER_LIMIT
|
(package private) int |
framecount
|
(package private) long |
lastticks
|
(package private) int |
rate
|
(package private) float |
rateticks
|
| Constructor Summary | |
|---|---|
FPSmanager()
framerate manager |
|
| Method Summary | |
|---|---|
void |
framerateDelay()
Delay execution to maintain a constant framerate. |
int |
getFramerate()
Return the current target framerate in Hz |
void |
initFramerate()
Initialize the framerate manager |
int |
setFramerate(int new_rate)
Set the framerate in Hz |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FPS_UPPER_LIMIT
public static final int FPS_LOWER_LIMIT
public static final int FPS_DEFAULT
int framecount
float rateticks
long lastticks
int rate
| Constructor Detail |
|---|
public FPSmanager()
| Method Detail |
|---|
public void initFramerate()
public void framerateDelay()
public int setFramerate(int new_rate)
public int getFramerate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||