Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
c67e5f7b
Commit
c67e5f7b
authored
Jun 17, 2010
by
Paul Hunkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed old video subsystem, along with (now-unncessary) egl files.
parent
2adfec26
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
691 deletions
+18
-691
SDL_androidgl.c
src/video/android/SDL_androidgl.c
+16
-79
SDL_androidvideo.c
src/video/android/SDL_androidvideo.c
+2
-2
egl.h
src/video/android/egl.h
+0
-330
eglext.h
src/video/android/eglext.h
+0
-162
eglplatform.h
src/video/android/eglplatform.h
+0
-118
No files found.
src/video/android/SDL_androidgl.c
View file @
c67e5f7b
...
@@ -34,125 +34,62 @@
...
@@ -34,125 +34,62 @@
#include "SDL_androidevents.h"
#include "SDL_androidevents.h"
#include "SDL_androidrender.h"
#include "SDL_androidrender.h"
/* Android header */
#include <android/log.h>
#include "egl.h"
//EGL globals
static
EGLDisplay
iEglDisplay
;
static
EGLConfig
iEglConfig
;
static
EGLContext
iEglContext
;
static
EGLSurface
iEglSurface
;
EGLint
attribList
[]
=
{
EGL_BUFFER_SIZE
,
16
,
//16 bit color
EGL_DEPTH_SIZE
,
15
,
EGL_NONE
};
/*
These things are in the JNI android support
*/
/* GL functions */
/* GL functions */
int
Android_GL_LoadLibrary
(
_THIS
,
const
char
*
path
){
int
Android_GL_LoadLibrary
(
_THIS
,
const
char
*
path
){
printf
(
"[STUB] GL_LoadLibrary
\n
"
);
__android_log_print
(
ANDROID_LOG_INFO
,
"SDL"
,
"[STUB] GL_LoadLibrary
\n
"
);
return
0
;
return
0
;
}
}
void
*
Android_GL_GetProcAddress
(
_THIS
,
const
char
*
proc
){
void
*
Android_GL_GetProcAddress
(
_THIS
,
const
char
*
proc
){
printf
(
"[STUB] GL_GetProcAddress
\n
"
);
__android_log_print
(
ANDROID_LOG_INFO
,
"SDL"
,
"[STUB] GL_GetProcAddress
\n
"
);
return
0
;
return
0
;
}
}
void
Android_GL_UnloadLibrary
(
_THIS
){
void
Android_GL_UnloadLibrary
(
_THIS
){
printf
(
"[STUB] GL_UnloadLibrary
\n
"
);
__android_log_print
(
ANDROID_LOG_INFO
,
"SDL"
,
"[STUB] GL_UnloadLibrary
\n
"
);
}
}
/*
/*
int *Android_GL_GetVisual(_THIS, Display * display, int screen){
int *Android_GL_GetVisual(_THIS, Display * display, int screen){
printf(
"[STUB] GL_GetVisual\n");
__android_log_print(ANDROID_LOG_INFO, "SDL",
"[STUB] GL_GetVisual\n");
return 0;
return 0;
}
}
*/
*/
SDL_GLContext
Android_GL_CreateContext
(
_THIS
,
SDL_Window
*
window
){
SDL_GLContext
Android_GL_CreateContext
(
_THIS
,
SDL_Window
*
window
){
printf
(
"[STUB] GL_CreateContext
\n
"
);
__android_log_print
(
ANDROID_LOG_INFO
,
"SDL"
,
"[STUB] GL_CreateContext
\n
"
);
return
NULL
;
//Start up the display
iEglDisplay
=
eglGetDisplay
(
EGL_DEFAULT_DISPLAY
);
if
(
iEglDisplay
==
EGL_NO_DISPLAY
){
printf
(
"Unable to find a suitable EGLDisplay
\n
"
);
return
NULL
;
}
printf
(
"1
\n
"
);
if
(
!
eglInitialize
(
iEglDisplay
,
0
,
0
)){
printf
(
"Couldn't init display
\n
"
);
return
NULL
;
}
printf
(
"2
\n
"
);
EGLint
numConfigs
;
if
(
!
eglChooseConfig
(
iEglDisplay
,
attribList
,
&
iEglConfig
,
1
,
&
numConfigs
)){
printf
(
"Couldn't choose config
\n
"
);
return
NULL
;
}
printf
(
"3
\n
"
);
iEglContext
=
eglCreateContext
(
iEglDisplay
,
iEglConfig
,
EGL_NO_CONTEXT
,
0
);
if
(
iEglContext
==
0
){
printf
(
"Couldn't create context
\n
"
);
return
NULL
;
}
printf
(
"4
\n
"
);
NativeWindowType
iWindow
=
1
;
//android_createDisplaySurface();
iEglSurface
=
eglCreateWindowSurface
(
iEglDisplay
,
iEglConfig
,
iWindow
,
0
);
printf
(
"5
\n
"
);
if
(
iEglSurface
==
NULL
){
printf
(
"Couldn't create surface
\n
"
);
return
NULL
;
}
printf
(
"6
\n
"
);
eglMakeCurrent
(
iEglDisplay
,
iEglSurface
,
iEglSurface
,
iEglContext
);
printf
(
"fininshed making context
\n
"
);
return
iEglSurface
;
}
}
int
Android_GL_MakeCurrent
(
_THIS
,
SDL_Window
*
window
,
int
Android_GL_MakeCurrent
(
_THIS
,
SDL_Window
*
window
,
SDL_GLContext
context
){
SDL_GLContext
context
){
printf
(
"[STUB] GL_MakeCurrent
\n
"
);
__android_log_print
(
ANDROID_LOG_INFO
,
"SDL"
,
"[STUB] GL_MakeCurrent
\n
"
);
return
0
;
return
0
;
}
}
int
Android_GL_SetSwapInterval
(
_THIS
,
int
interval
){
int
Android_GL_SetSwapInterval
(
_THIS
,
int
interval
){
printf
(
"[STUB] GL_SetSwapInterval
\n
"
);
__android_log_print
(
ANDROID_LOG_INFO
,
"SDL"
,
"[STUB] GL_SetSwapInterval
\n
"
);
return
0
;
return
0
;
}
}
int
Android_GL_GetSwapInterval
(
_THIS
){
int
Android_GL_GetSwapInterval
(
_THIS
){
printf
(
"[STUB] GL_GetSwapInterval
\n
"
);
__android_log_print
(
ANDROID_LOG_INFO
,
"SDL"
,
"[STUB] GL_GetSwapInterval
\n
"
);
return
0
;
return
0
;
}
}
void
Android_GL_SwapWindow
(
_THIS
,
SDL_Window
*
window
){
void
Android_GL_SwapWindow
(
_THIS
,
SDL_Window
*
window
){
printf
(
"[STUB] GL_SwapWindow
\n
"
);
__android_log_print
(
ANDROID_LOG_INFO
,
"SDL"
,
"[STUB] GL_SwapWindow
\n
"
);
}
}
void
Android_GL_DeleteContext
(
_THIS
,
SDL_GLContext
context
){
void
Android_GL_DeleteContext
(
_THIS
,
SDL_GLContext
context
){
printf
(
"[STUB] GL_DeleteContext
\n
"
);
__android_log_print
(
ANDROID_LOG_INFO
,
"SDL"
,
"[STUB] GL_DeleteContext
\n
"
);
}
}
src/video/android/SDL_androidvideo.c
View file @
c67e5f7b
...
@@ -120,8 +120,8 @@ Android_VideoInit(_THIS)
...
@@ -120,8 +120,8 @@ Android_VideoInit(_THIS)
/* Use a fake 32-bpp desktop mode */
/* Use a fake 32-bpp desktop mode */
mode
.
format
=
SDL_PIXELFORMAT_RGB888
;
mode
.
format
=
SDL_PIXELFORMAT_RGB888
;
mode
.
w
=
1024
;
mode
.
w
=
320
;
mode
.
h
=
768
;
mode
.
h
=
480
;
mode
.
refresh_rate
=
0
;
mode
.
refresh_rate
=
0
;
mode
.
driverdata
=
NULL
;
mode
.
driverdata
=
NULL
;
if
(
SDL_AddBasicVideoDisplay
(
&
mode
)
<
0
)
{
if
(
SDL_AddBasicVideoDisplay
(
&
mode
)
<
0
)
{
...
...
src/video/android/egl.h
deleted
100644 → 0
View file @
2adfec26
This diff is collapsed.
Click to expand it.
src/video/android/eglext.h
deleted
100644 → 0
View file @
2adfec26
#ifndef __eglext_h_
#define __eglext_h_
#ifdef __cplusplus
extern
"C"
{
#endif
/*
** Copyright (c) 2007-2009 The Khronos Group Inc.
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and/or associated documentation files (the
** "Materials"), to deal in the Materials without restriction, including
** without limitation the rights to use, copy, modify, merge, publish,
** distribute, sublicense, and/or sell copies of the Materials, and to
** permit persons to whom the Materials are furnished to do so, subject to
** the following conditions:
**
** The above copyright notice and this permission notice shall be included
** in all copies or substantial portions of the Materials.
**
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
*/
#include <EGL/eglplatform.h>
/*************************************************************/
/* Header file version number */
/* Current version at http://www.khronos.org/registry/egl/ */
/* $Revision: 7244 $ on $Date: 2009-01-20 17:06:59 -0800 (Tue, 20 Jan 2009) $ */
#define EGL_EGLEXT_VERSION 3
#ifndef EGL_KHR_config_attribs
#define EGL_KHR_config_attribs 1
#define EGL_CONFORMANT_KHR 0x3042
/* EGLConfig attribute */
#define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020
/* EGL_SURFACE_TYPE bitfield */
#define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040
/* EGL_SURFACE_TYPE bitfield */
#endif
#ifndef EGL_KHR_lock_surface
#define EGL_KHR_lock_surface 1
#define EGL_READ_SURFACE_BIT_KHR 0x0001
/* EGL_LOCK_USAGE_HINT_KHR bitfield */
#define EGL_WRITE_SURFACE_BIT_KHR 0x0002
/* EGL_LOCK_USAGE_HINT_KHR bitfield */
#define EGL_LOCK_SURFACE_BIT_KHR 0x0080
/* EGL_SURFACE_TYPE bitfield */
#define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
/* EGL_SURFACE_TYPE bitfield */
#define EGL_MATCH_FORMAT_KHR 0x3043
/* EGLConfig attribute */
#define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
/* EGL_MATCH_FORMAT_KHR value */
#define EGL_FORMAT_RGB_565_KHR 0x30C1
/* EGL_MATCH_FORMAT_KHR value */
#define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
/* EGL_MATCH_FORMAT_KHR value */
#define EGL_FORMAT_RGBA_8888_KHR 0x30C3
/* EGL_MATCH_FORMAT_KHR value */
#define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
/* eglLockSurfaceKHR attribute */
#define EGL_LOCK_USAGE_HINT_KHR 0x30C5
/* eglLockSurfaceKHR attribute */
#define EGL_BITMAP_POINTER_KHR 0x30C6
/* eglQuerySurface attribute */
#define EGL_BITMAP_PITCH_KHR 0x30C7
/* eglQuerySurface attribute */
#define EGL_BITMAP_ORIGIN_KHR 0x30C8
/* eglQuerySurface attribute */
#define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
/* eglQuerySurface attribute */
#define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
/* eglQuerySurface attribute */
#define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
/* eglQuerySurface attribute */
#define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
/* eglQuerySurface attribute */
#define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
/* eglQuerySurface attribute */
#define EGL_LOWER_LEFT_KHR 0x30CE
/* EGL_BITMAP_ORIGIN_KHR value */
#define EGL_UPPER_LEFT_KHR 0x30CF
/* EGL_BITMAP_ORIGIN_KHR value */
#ifdef EGL_EGLEXT_PROTOTYPES
EGLAPI
EGLBoolean
EGLAPIENTRY
eglLockSurfaceKHR
(
EGLDisplay
display
,
EGLSurface
surface
,
const
EGLint
*
attrib_list
);
EGLAPI
EGLBoolean
EGLAPIENTRY
eglUnlockSurfaceKHR
(
EGLDisplay
display
,
EGLSurface
surface
);
#endif
/* EGL_EGLEXT_PROTOTYPES */
typedef
EGLBoolean
(
EGLAPIENTRYP
PFNEGLLOCKSURFACEKHRPROC
)
(
EGLDisplay
display
,
EGLSurface
surface
,
const
EGLint
*
attrib_list
);
typedef
EGLBoolean
(
EGLAPIENTRYP
PFNEGLUNLOCKSURFACEKHRPROC
)
(
EGLDisplay
display
,
EGLSurface
surface
);
#endif
#ifndef EGL_KHR_image
#define EGL_KHR_image 1
#define EGL_NATIVE_PIXMAP_KHR 0x30B0
/* eglCreateImageKHR target */
typedef
void
*
EGLImageKHR
;
#define EGL_NO_IMAGE_KHR ((EGLImageKHR)0)
#ifdef EGL_EGLEXT_PROTOTYPES
EGLAPI
EGLImageKHR
EGLAPIENTRY
eglCreateImageKHR
(
EGLDisplay
dpy
,
EGLContext
ctx
,
EGLenum
target
,
EGLClientBuffer
buffer
,
const
EGLint
*
attrib_list
);
EGLAPI
EGLBoolean
EGLAPIENTRY
eglDestroyImageKHR
(
EGLDisplay
dpy
,
EGLImageKHR
image
);
#endif
/* EGL_EGLEXT_PROTOTYPES */
typedef
EGLImageKHR
(
EGLAPIENTRYP
PFNEGLCREATEIMAGEKHRPROC
)
(
EGLDisplay
dpy
,
EGLContext
ctx
,
EGLenum
target
,
EGLClientBuffer
buffer
,
const
EGLint
*
attrib_list
);
typedef
EGLBoolean
(
EGLAPIENTRYP
PFNEGLDESTROYIMAGEKHRPROC
)
(
EGLDisplay
dpy
,
EGLImageKHR
image
);
#endif
#ifndef EGL_KHR_vg_parent_image
#define EGL_KHR_vg_parent_image 1
#define EGL_VG_PARENT_IMAGE_KHR 0x30BA
/* eglCreateImageKHR target */
#endif
#ifndef EGL_KHR_gl_texture_2D_image
#define EGL_KHR_gl_texture_2D_image 1
#define EGL_GL_TEXTURE_2D_KHR 0x30B1
/* eglCreateImageKHR target */
#define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC
/* eglCreateImageKHR attribute */
#endif
#ifndef EGL_KHR_gl_texture_cubemap_image
#define EGL_KHR_gl_texture_cubemap_image 1
#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
/* eglCreateImageKHR target */
#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
/* eglCreateImageKHR target */
#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
/* eglCreateImageKHR target */
#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
/* eglCreateImageKHR target */
#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
/* eglCreateImageKHR target */
#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
/* eglCreateImageKHR target */
#endif
#ifndef EGL_KHR_gl_texture_3D_image
#define EGL_KHR_gl_texture_3D_image 1
#define EGL_GL_TEXTURE_3D_KHR 0x30B2
/* eglCreateImageKHR target */
#define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD
/* eglCreateImageKHR attribute */
#endif
#ifndef EGL_KHR_gl_renderbuffer_image
#define EGL_KHR_gl_renderbuffer_image 1
#define EGL_GL_RENDERBUFFER_KHR 0x30B9
/* eglCreateImageKHR target */
#endif
#ifndef EGL_KHR_image_base
#define EGL_KHR_image_base 1
/* Most interfaces defined by EGL_KHR_image_pixmap above */
#define EGL_IMAGE_PRESERVED_KHR 0x30D2
/* eglCreateImageKHR attribute */
#endif
#ifndef EGL_KHR_image_pixmap
#define EGL_KHR_image_pixmap 1
/* Interfaces defined by EGL_KHR_image above */
#endif
#ifndef EGL_ANDROID_image_native_buffer
#define EGL_ANDROID_image_native_buffer 1
struct
android_native_buffer_t
;
#define EGL_NATIVE_BUFFER_ANDROID 0x3140
/* eglCreateImageKHR target */
#endif
#ifndef EGL_ANDROID_get_render_buffer
#define EGL_ANDROID_get_render_buffer 1
#ifdef EGL_EGLEXT_PROTOTYPES
EGLAPI
EGLClientBuffer
EGLAPIENTRY
eglGetRenderBufferANDROID
(
EGLDisplay
dpy
,
EGLSurface
draw
);
#endif
typedef
EGLClientBuffer
(
EGLAPIENTRYP
PFNEGLGETRENDERBUFFERANDROIDPROC
)
(
EGLDisplay
dpy
,
EGLSurface
draw
);
#endif
#ifndef EGL_ANDROID_swap_rectangle
#define EGL_ANDROID_swap_rectangle 1
#ifdef EGL_EGLEXT_PROTOTYPES
EGLAPI
EGLBoolean
EGLAPIENTRY
eglSetSwapRectangleANDROID
(
EGLDisplay
dpy
,
EGLSurface
draw
,
EGLint
left
,
EGLint
top
,
EGLint
width
,
EGLint
height
);
#endif
/* EGL_EGLEXT_PROTOTYPES */
typedef
EGLBoolean
(
EGLAPIENTRYP
PFNEGLSETSWAPRECTANGLEANDROIDPROC
)
(
EGLDisplay
dpy
,
EGLSurface
draw
,
EGLint
left
,
EGLint
top
,
EGLint
width
,
EGLint
height
);
#endif
#ifdef __cplusplus
}
#endif
#endif
src/video/android/eglplatform.h
deleted
100644 → 0
View file @
2adfec26
#ifndef __eglplatform_h_
#define __eglplatform_h_
/*
** Copyright (c) 2007-2009 The Khronos Group Inc.
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and/or associated documentation files (the
** "Materials"), to deal in the Materials without restriction, including
** without limitation the rights to use, copy, modify, merge, publish,
** distribute, sublicense, and/or sell copies of the Materials, and to
** permit persons to whom the Materials are furnished to do so, subject to
** the following conditions:
**
** The above copyright notice and this permission notice shall be included
** in all copies or substantial portions of the Materials.
**
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
*/
/* Platform-specific types and definitions for egl.h
* $Revision: 7244 $ on $Date: 2009-01-20 17:06:59 -0800 (Tue, 20 Jan 2009) $
*
* Adopters may modify khrplatform.h and this file to suit their platform.
* You are encouraged to submit all modifications to the Khronos group so that
* they can be included in future versions of this file. Please submit changes
* by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
* by filing a bug against product "EGL" component "Registry".
*/
#include <KHR/khrplatform.h>
/* Macros used in EGL function prototype declarations.
*
* EGL functions should be prototyped as:
*
* EGLAPI return-type EGLAPIENTRY eglFunction(arguments);
* typedef return-type (EXPAPIENTRYP PFNEGLFUNCTIONPROC) (arguments);
*
* KHRONOS_APICALL and KHRONOS_APIENTRY are defined in KHR/khrplatform.h
*/
#ifndef EGLAPI
#define EGLAPI KHRONOS_APICALL
#endif
#define EGLAPIENTRY KHRONOS_APIENTRY
#define EGLAPIENTRYP KHRONOS_APIENTRY*
/* The types NativeDisplayType, NativeWindowType, and NativePixmapType
* are aliases of window-system-dependent types, such as X Display * or
* Windows Device Context. They must be defined in platform-specific
* code below. The EGL-prefixed versions of Native*Type are the same
* types, renamed in EGL 1.3 so all types in the API start with "EGL".
*/
#if defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
/* Win32 and WinCE */
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
#endif
#include <windows.h>
typedef
HDC
EGLNativeDisplayType
;
typedef
HBITMAP
EGLNativePixmapType
;
typedef
HWND
EGLNativeWindowType
;
#elif defined(__WINSCW__) || defined(__SYMBIAN32__)
/* Symbian */
typedef
int
EGLNativeDisplayType
;
typedef
void
*
EGLNativeWindowType
;
typedef
void
*
EGLNativePixmapType
;
#elif defined(__unix__) && !defined(ANDROID)
/* X11 (tentative) */
#include <X11/Xlib.h>
#include <X11/Xutil.h>
typedef
Display
*
EGLNativeDisplayType
;
typedef
Pixmap
EGLNativePixmapType
;
typedef
Window
EGLNativeWindowType
;
#elif defined(ANDROID)
struct
android_native_window_t
;
struct
egl_native_pixmap_t
;
typedef
struct
android_native_window_t
*
EGLNativeWindowType
;
typedef
struct
egl_native_pixmap_t
*
EGLNativePixmapType
;
typedef
void
*
EGLNativeDisplayType
;
#else
#error "Platform not recognized"
#endif
/* EGL 1.2 types, renamed for consistency in EGL 1.3 */
typedef
EGLNativeDisplayType
NativeDisplayType
;
typedef
EGLNativePixmapType
NativePixmapType
;
typedef
EGLNativeWindowType
NativeWindowType
;
/* Define EGLint. This must be a signed integral type large enough to contain
* all legal attribute names and values passed into and out of EGL, whether
* their type is boolean, bitmask, enumerant (symbolic constant), integer,
* handle, or other. While in general a 32-bit integer will suffice, if
* handles are 64 bit types, then EGLint should be defined as a signed 64-bit
* integer type.
*/
typedef
khronos_int32_t
EGLint
;
#endif
/* __eglplatform_h */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment