Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow gles+gles2 linking at the same time (v3)
Compile both GLESv1 and GLESv2 hooks at the same time, load symbols that intersect between GLESv1 and GLESv2 dynamically on GLESv2 side from correct lib. There is still possibility to compile GLESv1 or GLESv2-only version by modifying the makefile. Osmos is linked to both libGLESv1_CM.so and libGLESv2.so and uses symbols from both, so old GLES=x way was not enough.
- Loading branch information
Showing
15 changed files
with
226 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#ifndef __apkenv_gl_types_h_ | ||
#define __apkenv_gl_types_h_ | ||
|
||
#include <GLES/glplatform.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/* | ||
* This document is licensed under the SGI Free Software B License Version | ||
* 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . | ||
*/ | ||
|
||
typedef void GLvoid; | ||
typedef unsigned int GLenum; | ||
typedef unsigned char GLboolean; | ||
typedef unsigned int GLbitfield; | ||
typedef khronos_int8_t GLbyte; | ||
typedef short GLshort; | ||
typedef int GLint; | ||
typedef int GLsizei; | ||
typedef khronos_uint8_t GLubyte; | ||
typedef unsigned short GLushort; | ||
typedef unsigned int GLuint; | ||
typedef khronos_float_t GLfloat; | ||
typedef khronos_float_t GLclampf; | ||
typedef khronos_int32_t GLfixed; | ||
typedef khronos_int32_t GLclampx; | ||
|
||
typedef khronos_intptr_t GLintptr; | ||
typedef khronos_ssize_t GLsizeiptr; | ||
|
||
/* GL_OES_EGL_image */ | ||
#ifndef GL_OES_EGL_image | ||
typedef void* GLeglImageOES; | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* __apkenv_gl_types_h_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.