![]() |
OpenGL ES SDK for Android
ARM Developer Center
|
Abstract class to hide the complexity of multiple build targets. More...
#include <Platform.h>
Public Types | |
| enum | WindowStatus { WINDOW_IDLE, WINDOW_EXIT, WINDOW_CLICK } |
| An enum to define the status of a window. More... | |
Public Member Functions | |
| virtual void | createWindow (int width, int height)=0 |
| Create a native window on the target device. More... | |
| virtual WindowStatus | checkWindow (void)=0 |
| Check status of the window. More... | |
| virtual void | destroyWindow (void)=0 |
| Close and clean-up the native window. More... | |
Static Public Member Functions | |
| static void | log (const char *format,...) |
| Print a log message to the terminal. More... | |
| static Platform * | getInstance (void) |
Public Attributes | |
| Vec2 | mouseClick |
Abstract class to hide the complexity of multiple build targets.
Definition at line 36 of file Platform.h.
An enum to define the status of a window.
| Enumerator | |
|---|---|
| WINDOW_IDLE |
Window has nothing to report |
| WINDOW_EXIT |
The window has been closed by the user |
| WINDOW_CLICK |
The user has clicked on the window |
Definition at line 42 of file Platform.h.
|
pure virtual |
Check status of the window.
Create a native window on the target device.
| [in] | width | The required width of the window. |
| [in] | height | The required height of the window. |
Close and clean-up the native window.
Get the instance of Platform specific to the target.
Definition at line 28 of file Platform.cpp.
|
static |
Print a log message to the terminal.
| [in] | format | The format the log message should take. Equivilent to printf. |
| [in] | ... | Variable length input to specify variables to print. They will be formatted as specified in format. |
Definition at line 39 of file Platform.cpp.
| Vec2 MaliSDK::Platform::mouseClick |
Definition at line 48 of file Platform.h.