|
|
|
|
@ -94,66 +94,27 @@ void flextGLInit();
|
|
|
|
|
|
|
|
|
|
/* Data types */ |
|
|
|
|
|
|
|
|
|
#include <stddef.h> |
|
|
|
|
#ifndef GLEXT_64_TYPES_DEFINED |
|
|
|
|
/* This code block is duplicated in glxext.h, so must be protected */ |
|
|
|
|
#define GLEXT_64_TYPES_DEFINED |
|
|
|
|
/* Define int32_t, int64_t, and uint64_t types for UST/MSC */ |
|
|
|
|
/* (as used in the GL_EXT_timer_query extension). */ |
|
|
|
|
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L |
|
|
|
|
#include <inttypes.h> |
|
|
|
|
#elif defined(__sun__) || defined(__digital__) |
|
|
|
|
#include <inttypes.h> |
|
|
|
|
#if defined(__STDC__) |
|
|
|
|
#if defined(__arch64__) || defined(_LP64) |
|
|
|
|
typedef long int int64_t; |
|
|
|
|
typedef unsigned long int uint64_t; |
|
|
|
|
#else |
|
|
|
|
typedef long long int int64_t; |
|
|
|
|
typedef unsigned long long int uint64_t; |
|
|
|
|
#endif /* __arch64__ */ |
|
|
|
|
#endif /* __STDC__ */ |
|
|
|
|
#elif defined( __VMS ) || defined(__sgi) |
|
|
|
|
#include <inttypes.h> |
|
|
|
|
#elif defined(__SCO__) || defined(__USLC__) |
|
|
|
|
#include <stdint.h> |
|
|
|
|
#elif defined(__UNIXOS2__) || defined(__SOL64__) |
|
|
|
|
typedef long int int32_t; |
|
|
|
|
typedef long long int int64_t; |
|
|
|
|
typedef unsigned long long int uint64_t; |
|
|
|
|
#elif defined(_WIN32) && defined(__GNUC__) |
|
|
|
|
#include <stdint.h> |
|
|
|
|
#elif defined(_WIN32) |
|
|
|
|
typedef __int32 int32_t; |
|
|
|
|
typedef __int64 int64_t; |
|
|
|
|
typedef unsigned __int64 uint64_t; |
|
|
|
|
#else |
|
|
|
|
/* Fallback if nothing above works */ |
|
|
|
|
#include <inttypes.h> |
|
|
|
|
#endif |
|
|
|
|
#endif |
|
|
|
|
#include <KHR/khrplatform.h> |
|
|
|
|
typedef unsigned int GLenum; |
|
|
|
|
typedef unsigned char GLboolean; |
|
|
|
|
typedef unsigned int GLbitfield; |
|
|
|
|
typedef void GLvoid; |
|
|
|
|
typedef signed char GLbyte; |
|
|
|
|
typedef short GLshort; |
|
|
|
|
typedef khronos_int8_t GLbyte; |
|
|
|
|
typedef khronos_uint8_t GLubyte; |
|
|
|
|
typedef khronos_int16_t GLshort; |
|
|
|
|
typedef khronos_uint16_t GLushort; |
|
|
|
|
typedef int GLint; |
|
|
|
|
typedef unsigned char GLubyte; |
|
|
|
|
typedef unsigned short GLushort; |
|
|
|
|
typedef unsigned int GLuint; |
|
|
|
|
typedef int GLsizei; |
|
|
|
|
typedef float GLfloat; |
|
|
|
|
typedef float GLclampf; |
|
|
|
|
typedef khronos_float_t GLfloat; |
|
|
|
|
typedef double GLdouble; |
|
|
|
|
typedef double GLclampd; |
|
|
|
|
typedef char GLchar; |
|
|
|
|
typedef unsigned short GLhalf; |
|
|
|
|
typedef ptrdiff_t GLintptr; |
|
|
|
|
typedef ptrdiff_t GLsizeiptr; |
|
|
|
|
typedef int64_t GLint64; |
|
|
|
|
typedef uint64_t GLuint64; |
|
|
|
|
typedef uint64_t GLuint64EXT; |
|
|
|
|
typedef khronos_uint16_t GLhalf; |
|
|
|
|
typedef khronos_intptr_t GLintptr; |
|
|
|
|
typedef khronos_ssize_t GLsizeiptr; |
|
|
|
|
typedef khronos_int64_t GLint64; |
|
|
|
|
typedef khronos_uint64_t GLuint64; |
|
|
|
|
typedef khronos_uint64_t GLuint64EXT; |
|
|
|
|
typedef struct __GLsync *GLsync; |
|
|
|
|
typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); |
|
|
|
|
|
|
|
|
|
|