Mali OpenGL ES SDK
2.0.0
A simple framework to aid development of OpenGL ES applications targeting ARM Mali platforms.
Main Page
Classes
Files
File List
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
DesktopLinuxPlatform.h
1
/*
2
* This confidential and proprietary software may be used only as
3
* authorised by a licensing agreement from ARM Limited
4
* (C) COPYRIGHT 2012 ARM Limited
5
* ALL RIGHTS RESERVED
6
* The entire notice above must be reproduced on all authorised
7
* copies and copies may only be made to the extent permitted
8
* by a licensing agreement from ARM Limited.
9
*/
10
11
#ifndef DESKTOPLINUXPLATFORM_H
12
#define DESKTOPLINUXPLATFORM_H
13
14
#include <cstdlib>
15
#include <EGL/egl.h>
16
17
#include "Platform.h"
18
19
namespace
MaliSDK
20
{
24
class
DesktopLinuxPlatform
:
public
Platform
25
{
26
private
:
30
int
windowWidth
;
31
35
int
windowHeight
;
36
42
Colormap
colormap
;
43
49
XVisualInfo *
visual
;
50
54
static
Platform
*
instance
;
55
59
DesktopLinuxPlatform
(
void
);
60
66
static
Bool
wait_for_map
(Display *display, XEvent *event,
char
*windowPointer);
67
public
:
74
static
Platform
*
getInstance
(
void
);
75
76
virtual
void
createWindow
(
int
width,
int
height);
77
virtual
void
destroyWindow
(
void
);
78
virtual
WindowStatus
checkWindow
(
void
);
79
86
bool
createX11Window
(
void
);
87
};
88
}
89
#endif
/* DESKTOPLINUXPLATFORM_H */
simple-framework
inc
DesktopLinuxPlatform.h
(C) ARM Ltd. 2012