diff options
Diffstat (limited to 'libEGL_POWERVR/egl.h')
-rw-r--r-- | libEGL_POWERVR/egl.h | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/libEGL_POWERVR/egl.h b/libEGL_POWERVR/egl.h index b8f5fd3..ec693c7 100644 --- a/libEGL_POWERVR/egl.h +++ b/libEGL_POWERVR/egl.h @@ -1,16 +1,31 @@ #ifndef __PVREGL_H__ #define __PVREGL_H__ +#include <string.h> #include <stdint.h> #include <stdbool.h> +#include <cutils/compiler.h> #ifdef __cplusplus extern "C" { #endif +typedef int32_t EGLint; +typedef unsigned int EGLBoolean; +typedef unsigned int EGLenum; +typedef void *EGLConfig; +typedef void *EGLContext; +typedef void *EGLDisplay; +typedef void *EGLSurface; +typedef void *EGLClientBuffer; +typedef int EGLNativeDisplayType; +typedef void *EGLNativeWindowType; +typedef void *EGLNativePixmapType; + #define EGL_FALSE 0 #define EGL_TRUE 1 +#define EGL_DONT_CARE ((EGLint)-1) #define EGL_SURFACE_TYPE 0x3033 #define EGL_NONE 0x3038 @@ -20,17 +35,6 @@ extern "C" { #define EGL_PBUFFER_BIT 0x0001 #define EGL_OPENGL_ES2_BIT 0x0004 -typedef int32_t EGLint; -typedef unsigned int EGLBoolean; -typedef unsigned int EGLenum; -typedef void *EGLConfig; -typedef void *EGLContext; -typedef void *EGLDisplay; -typedef void *EGLSurface; -typedef void *EGLClientBuffer; -typedef int EGLNativeDisplayType; -typedef void *EGLNativeWindowType; -typedef void *EGLNativePixmapType; EGLint IMGeglGetError(void); EGLDisplay IMGeglGetDisplay(EGLNativeDisplayType display_id); |