Platform specific functions for a Desktop Linux platform.
More...
#include <DesktopLinuxPlatform.h>
List of all members.
Static Public Member Functions |
static Platform * | getInstance (void) |
| Get the singleton instance of this class.
|
static void | log (const char *format,...) |
| Print a log message to the terminal.
|
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 Platform * | instance = NULL |
| The only instance of this class.
|
Detailed Description
Platform specific functions for a Desktop Linux platform.
Member Function Documentation
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: