| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) |
| 7 |
#ifndef WIN32_LEAN_AND_MEAN |
| 8 |
#define WIN32_LEAN_AND_MEAN 1 |
| 9 |
#endif |
| 10 |
#include <windows.h> |
| 11 |
#endif |
| 12 |
|
| 13 |
#ifndef APIENTRY |
| 14 |
#define APIENTRY |
| 15 |
#endif |
| 16 |
#ifndef APIENTRYP |
| 17 |
#define APIENTRYP APIENTRY* |
| 18 |
#endif |
| 19 |
#ifndef GLAPI |
| 20 |
#define GLAPI extern |
| 21 |
#endif |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
#include <stddef.h> |
| 27 |
typedef unsigned int GLenum; |
| 28 |
typedef unsigned char GLboolean; |
| 29 |
typedef unsigned int GLbitfield; |
| 30 |
typedef void GLvoid; |
| 31 |
typedef signed char GLbyte; |
| 32 |
typedef short GLshort; |
| 33 |
typedef int GLint; |
| 34 |
typedef unsigned char GLubyte; |
| 35 |
typedef unsigned short GLushort; |
| 36 |
typedef unsigned int GLuint; |
| 37 |
typedef int GLsizei; |
| 38 |
typedef float GLfloat; |
| 39 |
typedef float GLclampf; |
| 40 |
typedef double GLdouble; |
| 41 |
typedef double GLclampd; |
| 42 |
typedef char GLchar; |
| 43 |
typedef unsigned short GLhalf; |
| 44 |
typedef ptrdiff_t GLsizeiptr; |
| 45 |
typedef ptrdiff_t GLintptr; |
| 46 |
|
| 47 |
typedef struct __GLsync* GLsync; |
| 48 |
#ifndef GLEXT_64_TYPES_DEFINED |
| 49 |
|
| 50 |
#define GLEXT_64_TYPES_DEFINED |
| 51 |
|
| 52 |
|
| 53 |
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L |
| 54 |
#include <inttypes.h> |
| 55 |
#elif defined(__sun__) || defined(__digital__) |
| 56 |
#include <inttypes.h> |
| 57 |
#if defined(__STDC__) |
| 58 |
#if defined(__arch64__) || defined(_LP64) |
| 59 |
typedef long int int64_t; |
| 60 |
typedef unsigned long int uint64_t; |
| 61 |
#else |
| 62 |
typedef long long int int64_t; |
| 63 |
typedef unsigned long long int uint64_t; |
| 64 |
#endif |
| 65 |
#endif |
| 66 |
#elif defined(__VMS) || defined(__sgi) |
| 67 |
#include <inttypes.h> |
| 68 |
#elif defined(__SCO__) || defined(__USLC__) |
| 69 |
#include <stdint.h> |
| 70 |
#elif defined(__UNIXOS2__) || defined(__SOL64__) |
| 71 |
typedef long int int32_t; |
| 72 |
typedef long long int int64_t; |
| 73 |
typedef unsigned long long int uint64_t; |
| 74 |
#elif defined(_WIN32) && defined(__GNUC__) |
| 75 |
#include <stdint.h> |
| 76 |
#elif defined(_WIN32) |
| 77 |
typedef __int32 int32_t; |
| 78 |
typedef __int64 int64_t; |
| 79 |
typedef unsigned __int64 uint64_t; |
| 80 |
#else |
| 81 |
|
| 82 |
#include <inttypes.h> |
| 83 |
#endif |
| 84 |
#endif |
| 85 |
typedef uint64_t GLuint64; |
| 86 |
typedef int64_t GLint64; |