OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MaliSDK::Platform Class Referenceabstract

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 PlatformgetInstance (void)
 

Public Attributes

Vec2 mouseClick
 

Detailed Description

Abstract class to hide the complexity of multiple build targets.

Definition at line 36 of file Platform.h.

Member Enumeration Documentation

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.

Member Function Documentation

virtual WindowStatus MaliSDK::Platform::checkWindow ( void  )
pure virtual

Check status of the window.

Returns
The status of the window.
virtual void MaliSDK::Platform::createWindow ( int  width,
int  height 
)
pure virtual

Create a native window on the target device.

Parameters
[in]widthThe required width of the window.
[in]heightThe required height of the window.
virtual void MaliSDK::Platform::destroyWindow ( void  )
pure virtual

Close and clean-up the native window.

Platform * MaliSDK::Platform::getInstance ( void  )
static

Get the instance of Platform specific to the target.

Returns
An instance of a subclass of Platform which will work on the target platform.

Definition at line 28 of file Platform.cpp.

void MaliSDK::Platform::log ( const char *  format,
  ... 
)
static

Print a log message to the terminal.

Parameters
[in]formatThe 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.

Member Data Documentation

Vec2 MaliSDK::Platform::mouseClick

Definition at line 48 of file Platform.h.


The documentation for this class was generated from the following files: