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::DesktopLinuxPlatform Class Reference

Platform specific functions for a Desktop Linux platform. More...

#include <DesktopLinuxPlatform.h>

Inheritance diagram for MaliSDK::DesktopLinuxPlatform:
MaliSDK::Platform

List of all members.

Public Member Functions

virtual void createWindow (int width, int height)
virtual void destroyWindow (void)
 Close and clean-up the native window.
virtual WindowStatus checkWindow (void)
 Check status of the window.
bool createX11Window (void)
 Create an X11 window.

Static Public Member Functions

static PlatformgetInstance (void)
 Get the singleton instance of this class.
- Static Public Member Functions inherited from MaliSDK::Platform
static void log (const char *format,...)
 Print a log message to the terminal.

Private Member Functions

 DesktopLinuxPlatform (void)
 Default constructor.

Static Private Member Functions

static Bool wait_for_map (Display *display, XEvent *event, char *windowPointer)
 Callback for X11 events.

Private Attributes

int windowWidth
 The width of the window (in pixels).
int windowHeight
 The height of the window (in pixels).
Colormap colormap
 An X11 ColorMap.
XVisualInfo * visual
 An X11 XVisualInfo.

Static Private Attributes

static Platforminstance = NULL
 The only instance of this class.

Additional Inherited Members

- Public Types inherited from MaliSDK::Platform
enum  WindowStatus { WINDOW_IDLE, WINDOW_EXIT, WINDOW_CLICK }
 An enum to define the status of a window. More...
- Public Attributes inherited from MaliSDK::Platform
Vec2 mouseClick

Detailed Description

Platform specific functions for a Desktop Linux platform.


Member Function Documentation

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

Check status of the window.

Returns:
The status of the window.

Implements MaliSDK::Platform.

void MaliSDK::DesktopLinuxPlatform::createWindow ( int  width,
int  height 
)
virtual

A window is not actually created by this function. Call createX11Window after the EGL display has been initialized to get a window.

Implements MaliSDK::Platform.

bool MaliSDK::DesktopLinuxPlatform::createX11Window ( void  )

Create an X11 window.

It is used by EGLRuntime::initializeEGL, and can be called only after having initialized the EGL display.

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

Get the singleton instance of this class.

If the instance does not exist, it is created.

Returns:
The only instance of this class.

Reimplemented from MaliSDK::Platform.

Bool MaliSDK::DesktopLinuxPlatform::wait_for_map ( Display *  display,
XEvent *  event,
char *  windowPointer 
)
staticprivate

Callback for X11 events.

Waits for map notification.


Member Data Documentation

Colormap MaliSDK::DesktopLinuxPlatform::colormap
private

An X11 ColorMap.

See X11 documentation for more details.

XVisualInfo* MaliSDK::DesktopLinuxPlatform::visual
private

An X11 XVisualInfo.

See X11 documentation for more details.


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