Debian Codegraph @

Source/Core/Common/GL/GLExtensions/gl_common.h

raw symbols SCIP
1 /*
2 ** Copyright (c) 2013-2015 The Khronos Group Inc.
3 ** SPDX-License-Identifier: MIT
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 * Datatypes
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; /* 1-byte signed */
32 typedef short GLshort; /* 2-byte signed */
33 typedef int GLint; /* 4-byte signed */
34 typedef unsigned char GLubyte; /* 1-byte unsigned */
35 typedef unsigned short GLushort; /* 2-byte unsigned */
36 typedef unsigned int GLuint; /* 4-byte unsigned */
37 typedef int GLsizei; /* 4-byte signed */
38 typedef float GLfloat; /* single precision float */
39 typedef float GLclampf; /* single precision float in [0,1] */
40 typedef double GLdouble; /* double precision float */
41 typedef double GLclampd; /* double precision float in [0,1] */
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 /* This code block is duplicated in glxext.h, so must be protected */
50 #define GLEXT_64_TYPES_DEFINED
51 /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
52 /* (as used in the GL_EXT_timer_query extension). */
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 /* __arch64__ */
65 #endif /* __STDC__ */
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 /* Fallback if nothing above works */
82 #include <inttypes.h>
83 #endif
84 #endif
85 typedef uint64_t GLuint64;
86 typedef int64_t GLint64;