#include <JGE.h>
Public Member Functions | |
int | GetTime (void) |
float | GetDelta () |
float | GetFPS () |
bool | GetButtonState (u32 button) |
bool | GetButtonClick (u32 button) |
u8 | GetAnalogX () |
u8 | GetAnalogY () |
bool | IsDone () |
void | SetApp (JApp *app) |
void | printf (const char *format,...) |
Static Public Member Functions | |
static JGE * | GetInstance () |
int JGE::GetTime | ( | void | ) |
Return system timer in milliseconds.
float JGE::GetDelta | ( | ) |
Return elapsed time since last frame update.
float JGE::GetFPS | ( | ) |
Return frame rate.
bool JGE::GetButtonState | ( | u32 | button | ) |
Check the current state of a button.
button | - Button id. |
bool JGE::GetButtonClick | ( | u32 | button | ) |
Check if a button is down the first time.
button | - Button id. |
u8 JGE::GetAnalogX | ( | ) |
Get x value of the analog pad.
u8 JGE::GetAnalogY | ( | ) |
Get y value of the analog pad.
bool JGE::IsDone | ( | ) | [inline] |
Get if the system is ended or not.
void JGE::SetApp | ( | JApp * | app | ) |
Set the user's core application class.
app | - User defined application class. |
void JGE::printf | ( | const char * | format, | |
... | ||||
) |
Print debug message.