zenilib: zenilib/jni/external/glew/auto/src/glew_tail.h Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
glew_tail.h
Go to the documentation of this file.
1 /* ------------------------------------------------------------------------- */
2
3 /* error codes */
4 #define GLEW_OK 0
5 #define GLEW_NO_ERROR 0
6 #define GLEW_ERROR_NO_GL_VERSION 1 /* missing GL version */
7 #define GLEW_ERROR_GL_VERSION_10_ONLY 2 /* Need at least OpenGL 1.1 */
8 #define GLEW_ERROR_GLX_VERSION_11_ONLY 3 /* Need at least GLX 1.2 */
9
10 /* string codes */
11 #define GLEW_VERSION 1
12 #define GLEW_VERSION_MAJOR 2
13 #define GLEW_VERSION_MINOR 3
14 #define GLEW_VERSION_MICRO 4
15
16 /* API */
17 #ifdef GLEW_MX
18
19 typedef struct GLEWContextStruct GLEWContext;
20 GLEWAPI GLenum GLEWAPIENTRY glewContextInit (GLEWContext *ctx);
21 GLEWAPI GLboolean GLEWAPIENTRY glewContextIsSupported (const GLEWContext *ctx, const char *name);
22
23 #define glewInit() glewContextInit(glewGetContext())
24 #define glewIsSupported(x) glewContextIsSupported(glewGetContext(), x)
25 #define glewIsExtensionSupported(x) glewIsSupported(x)
26
27 #define GLEW_GET_VAR(x) (*(const GLboolean*)&(glewGetContext()->x))
28 #ifdef _WIN32
29 # define GLEW_GET_FUN(x) glewGetContext()->x
30 #else
31 # define GLEW_GET_FUN(x) x
32 #endif
33
34 #else /* GLEW_MX */
35
36 GLEWAPI GLenum GLEWAPIENTRY glewInit (void);
37 GLEWAPI GLboolean GLEWAPIENTRY glewIsSupported (const char *name);
38 #define glewIsExtensionSupported(x) glewIsSupported(x)
39
40 #define GLEW_GET_VAR(x) (*(const GLboolean*)&x)
41 #define GLEW_GET_FUN(x) x
42
43 #endif /* GLEW_MX */
44
45 GLEWAPI GLboolean glewExperimental;
46 GLEWAPI GLboolean GLEWAPIENTRY glewGetExtension (const char *name);
47 GLEWAPI const GLubyte * GLEWAPIENTRY glewGetErrorString (GLenum error);
48 GLEWAPI const GLubyte * GLEWAPIENTRY glewGetString (GLenum name);
49
50 #ifdef __cplusplus
51 }
52 #endif
53
54 #ifdef GLEW_APIENTRY_DEFINED
55 #undef GLEW_APIENTRY_DEFINED
56 #undef APIENTRY
57 #undef GLAPIENTRY
58 #define GLAPIENTRY
59 #endif
60
61 #ifdef GLEW_CALLBACK_DEFINED
62 #undef GLEW_CALLBACK_DEFINED
63 #undef CALLBACK
64 #endif
65
66 #ifdef GLEW_WINGDIAPI_DEFINED
67 #undef GLEW_WINGDIAPI_DEFINED
68 #undef WINGDIAPI
69 #endif
70
71 #undef GLAPI
72 /* #undef GLEWAPI */
73
74 #endif /* __glew_h__ */
GLenum
unsigned int GLenum
Definition: gl2.h:23
glewExperimental
GLboolean glewExperimental
Definition: glew_init_tail.c:33
GLboolean
unsigned char GLboolean
Definition: gl2.h:24
name
EGLImageKHR EGLint * name
Definition: eglext.h:284
glewContextInit
static GLenum GLEWAPIENTRY glewContextInit(GLEW_CONTEXT_ARG_DEF_LIST)
Definition: glew_init_gl.c:19
GLubyte
khronos_uint8_t GLubyte
Definition: gl2.h:30
glewGetExtension
GLboolean GLEWAPIENTRY glewGetExtension(const char *name)
Definition: glew_init_gl.c:3
error
FT_Error error
Definition: cffdrivr.c:407
GLEWAPIENTRY
#define GLEWAPIENTRY
Definition: glew_head.h:178
GLEWAPI
#define GLEWAPI
Definition: glew_head.h:164
glewIsSupported
GLboolean GLEWAPIENTRY glewIsSupported(const char *name)
Definition: glew_str_head.c:4
glewGetErrorString
const GLubyte *GLEWAPIENTRY glewGetErrorString(GLenum error)
Definition: glew_init_tail.c:3
glewGetString
const GLubyte *GLEWAPIENTRY glewGetString(GLenum name)
Definition: glew_init_tail.c:17
glewInit
GLenum GLEWAPIENTRY glewInit(void)
Definition: glew_init_tail.c:43
ctx
EGLContext ctx
Definition: eglext.h:87