]> git.cworth.org Git - fips/blob - fips-dispatch-gl.h
fips-dispatch: Fix misspelled glGetPerfMonitorGroupStringAMD
[fips] / fips-dispatch-gl.h
1 /* Copyright © 2012, Intel Corporation
2  *
3  * Permission is hereby granted, free of charge, to any person obtaining a copy
4  * of this software and associated documentation files (the "Software"), to deal
5  * in the Software without restriction, including without limitation the rights
6  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7  * copies of the Software, and to permit persons to whom the Software is
8  * furnished to do so, subject to the following conditions:
9  *
10  * The above copyright notice and this permission notice shall be included in
11  * all copies or substantial portions of the Software.
12  *
13  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19  * THE SOFTWARE.
20  */
21
22 /* This header file provides an interface to (the fips-dispatch subset
23  * of) OpenGL through dynamic dispatch as an alternative to including
24  * <GL/gl.h>.
25  *
26  * No file in fips should include both <GL/gl.h> and
27  * "fips-dispatch-gl.h" (whether directly or indirectly).
28  */
29
30 #ifndef FIPS_DISPATCH_GL_H
31 #define FIPS_DISPATCH_GL_H
32
33 #include "fips-dispatch.h"
34
35 #include <stdint.h>
36 #include <stddef.h>
37
38 #define GL_FALSE 0
39 #define GL_TRUE  1
40
41 #define GL_BYTE                                 0x1400
42 #define GL_UNSIGNED_BYTE                        0x1401
43 #define GL_SHORT                                0x1402
44 #define GL_UNSIGNED_SHORT                       0x1403
45 #define GL_INT                                  0x1404
46 #define GL_UNSIGNED_INT                         0x1405
47 #define GL_FLOAT                                0x1406
48 #define GL_2_BYTES                              0x1407
49 #define GL_3_BYTES                              0x1408
50 #define GL_4_BYTES                              0x1409
51 #define GL_DOUBLE                               0x140A
52
53 typedef unsigned int GLenum;
54 typedef unsigned int GLbitfield;
55 typedef unsigned int GLuint;
56 typedef int GLint;
57 typedef int GLsizei;
58 typedef unsigned char GLboolean;
59 typedef signed char GLbyte;
60 typedef short GLshort;
61 typedef unsigned char GLubyte;
62 typedef unsigned short GLushort;
63 typedef unsigned long GLulong;
64 typedef float GLfloat;
65 typedef float GLclampf;
66 typedef double GLdouble;
67 typedef double GLclampd;
68 typedef void GLvoid;
69 typedef int64_t GLint64EXT;
70 typedef uint64_t GLuint64EXT;
71 typedef GLint64EXT  GLint64;
72 typedef GLuint64EXT GLuint64;
73 typedef char GLchar;
74 typedef ptrdiff_t GLintptr;
75 typedef ptrdiff_t GLsizeiptr;
76 typedef ptrdiff_t GLintptrARB;
77 typedef ptrdiff_t GLsizeiptrARB;
78 typedef char GLcharARB;
79 typedef unsigned int GLhandleARB;
80
81 typedef void (*PFNGLGENQUERIESPROC)(GLsizei, GLuint *);
82 typedef void (*PFNGLDELETEQUERIESPROC)(GLsizei, const GLuint *);
83 typedef void (*PFNGLBEGINQUERYPROC)(GLenum, GLuint);
84 typedef void (*PFNGLENDQUERYPROC)(GLenum);
85 typedef void (*PFNGLGETQUERYOBJECTUIVPROC)(GLuint, GLenum, GLuint *);
86
87 typedef void (*PFNGLGETPERFMONITORGROUPSAMDPROC)(GLint *, GLsizei, GLuint *);
88 typedef void (*PFNGLGETPERFMONITORCOUNTERSAMDPROC)(GLuint, GLint *, GLint *,
89                                                    GLsizei, GLuint *);
90 typedef void (*PFNGLGETPERFMONITORGROUPSTRINGAMDPROC)(GLuint, GLsizei,
91                                                       GLsizei *, GLchar *);
92 typedef void (*PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC)(GLuint, GLuint,
93                                               GLsizei, GLsizei *, GLchar *);
94 typedef void (*PFNGLGETPERFMONITORCOUNTERINFOAMDPROC)(GLuint, GLuint,
95                                                       GLenum, GLvoid *);
96 typedef void (*PFNGLGENPERFMONITORSAMDPROC)(GLsizei, GLuint *);
97 typedef void (*PFNGLDELETEPERFMONITORSAMDPROC)(GLsizei, GLuint *);
98 typedef void (*PFNGLSELECTPERFMONITORCOUNTERSAMDPROC)(GLuint, GLboolean,
99                                                       GLuint, GLint, GLuint *);
100 typedef void (*PFNGLBEGINPERFMONITORAMDPROC)(GLuint);
101 typedef void (*PFNGLENDPERFMONITORAMDPROC)(GLuint);
102 typedef void (*PFNGLGETPERFMONITORCOUNTERDATAAMDPROC)(GLuint, GLenum,
103                                                       GLsizei, GLuint *, GLint *);
104
105 #define GL_QUERY_RESULT 0x8866
106 #define GL_QUERY_RESULT_AVAILABLE 0x8867
107 #define GL_TIME_ELAPSED 0x88BF
108
109 extern PFNGLGENQUERIESPROC fips_dispatch_glGenQueries;
110 #define glGenQueries fips_dispatch_glGenQueries
111
112 extern PFNGLDELETEQUERIESPROC fips_dispatch_glDeleteQueries;
113 #define glDeleteQueries fips_dispatch_glDeleteQueries
114
115 extern PFNGLBEGINQUERYPROC fips_dispatch_glBeginQuery;
116 #define glBeginQuery fips_dispatch_glBeginQuery
117
118 extern PFNGLENDQUERYPROC fips_dispatch_glEndQuery;
119 #define glEndQuery fips_dispatch_glEndQuery
120
121 extern PFNGLGETQUERYOBJECTUIVPROC fips_dispatch_glGetQueryObjectuiv;
122 #define glGetQueryObjectuiv fips_dispatch_glGetQueryObjectuiv
123
124 #define GL_COUNTER_TYPE_AMD               0x8BC0
125 #define GL_COUNTER_RANGE_AMD              0x8BC1
126 #define GL_UNSIGNED_INT64_AMD             0x8BC2
127 #define GL_PERCENTAGE_AMD                 0x8BC3
128 #define GL_PERFMON_RESULT_AVAILABLE_AMD   0x8BC4
129 #define GL_PERFMON_RESULT_SIZE_AMD        0x8BC5
130 #define GL_PERFMON_RESULT_AMD             0x8BC6
131
132 extern PFNGLGETPERFMONITORGROUPSAMDPROC fips_dispatch_glGetPerfMonitorGroupsAMD;
133 #define glGetPerfMonitorGroupsAMD fips_dispatch_glGetPerfMonitorGroupsAMD
134
135 extern PFNGLGETPERFMONITORCOUNTERSAMDPROC fips_dispatch_glGetPerfMonitorCountersAMD;
136 #define glGetPerfMonitorCountersAMD fips_dispatch_glGetPerfMonitorCountersAMD
137
138 extern PFNGLGETPERFMONITORGROUPSTRINGAMDPROC fips_dispatch_glGetPerfMonitorGroupStringAMD;
139 #define glGetPerfMonitorGroupStringAMD fips_dispatch_glGetPerfMonitorGroupStringAMD
140
141 extern PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC fips_dispatch_glGetPerfMonitorCounterStringAMD;
142 #define glGetPerfMonitorCounterStringAMD fips_dispatch_glGetPerfMonitorCounterStringAMD
143
144 extern PFNGLGETPERFMONITORCOUNTERINFOAMDPROC fips_dispatch_glGetPerfMonitorCounterInfoAMD;
145 #define glGetPerfMonitorCounterInfoAMD fips_dispatch_glGetPerfMonitorCounterInfoAMD
146
147 extern PFNGLGENPERFMONITORSAMDPROC fips_dispatch_glGenPerfMonitorsAMD;
148 #define glGenPerfMonitorsAMD fips_dispatch_glGenPerfMonitorsAMD
149
150 extern PFNGLDELETEPERFMONITORSAMDPROC fips_dispatch_glDeletePerfMonitorsAMD;
151 #define glDeletePerfMonitorsAMD fips_dispatch_glDeletePerfMonitorsAMD
152
153 extern PFNGLSELECTPERFMONITORCOUNTERSAMDPROC fips_dispatch_glSelectPerfMonitorCountersAMD;
154 #define glSelectPerfMonitorCountersAMD fips_dispatch_glSelectPerfMonitorCountersAMD
155
156 extern PFNGLBEGINPERFMONITORAMDPROC fips_dispatch_glBeginPerfMonitorAMD;
157 #define glBeginPerfMonitorAMD fips_dispatch_glBeginPerfMonitorAMD
158
159 extern PFNGLENDPERFMONITORAMDPROC fips_dispatch_glEndPerfMonitorAMD;
160 #define glEndPerfMonitorAMD fips_dispatch_glEndPerfMonitorAMD
161
162 extern PFNGLGETPERFMONITORCOUNTERDATAAMDPROC fips_dispatch_glGetPerfMonitorCounterDataAMD;
163 #define glGetPerfMonitorCounterDataAMD fips_dispatch_glGetPerfMonitorCounterDataAMD
164
165 #endif /* FIPS_DISPATCH_GL_H */