Mali OpenGL ES SDK  2.0.0
A simple framework to aid development of OpenGL ES applications targeting ARM Mali platforms.
 All Classes Files Functions Variables Enumerations Enumerator
MaliSDK::Platform Class Reference

Abstract class to hide the complexity of multiple build targets. More...

#include <Platform.h>

Inheritance diagram for MaliSDK::Platform:
MaliSDK::DesktopLinuxPlatform MaliSDK::LinuxOnARMPlatform MaliSDK::WindowsPlatform

List of all members.

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.
virtual WindowStatus checkWindow (void)=0
 Check status of the window.
virtual void destroyWindow (void)=0
 Close and clean-up the native window.

Static Public Member Functions

static void log (const char *format,...)
 Print a log message to the terminal.
static PlatformgetInstance (void)

Public Attributes

Vec2 mouseClick

Detailed Description

Abstract class to hide the complexity of multiple build targets.


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


Member Function Documentation

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

Check status of the window.

Returns:
The status of the window.

Implemented in MaliSDK::DesktopLinuxPlatform, MaliSDK::WindowsPlatform, and MaliSDK::LinuxOnARMPlatform.

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.

Implemented in MaliSDK::DesktopLinuxPlatform, MaliSDK::WindowsPlatform, and MaliSDK::LinuxOnARMPlatform.

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.

Reimplemented in MaliSDK::DesktopLinuxPlatform, MaliSDK::WindowsPlatform, and MaliSDK::LinuxOnARMPlatform.

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.

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