aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/api_gen/glapi.conf
blob: f9ed7a1065e418dab6087034e2547797a9e36a0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
%%	-*- erlang -*-
% general options

{skip,    %% Skip these functions
 [
  %%% GLU 
  "glu",  %% The ones we want is specified in keep
  "gluQuad",
  "gluBegin",
  "gluEnd", 
  "gluNew",
  "gluDelete",
%%  "gluTess",
%%  "gluGetNurbs",
%%  "gluGetTess",
  
  %%% GL 
  "glProgramCallbackMESA",
  "glGetProgramRegisterfvMESA",
  "glGetPointerv",
  "glGetBufferPointerv", 
  "glGetVertexAttribPointerv",
  "glGetSeparableFilter",
  "glMultiDrawElements",
  "glMapBuffer",
  "glUnmapBuffer",
  "glEdgeFlagPointerEXT",
  "glWeightPointerARB",
  "glMatrixIndexPointerARB",
  "glPixelTransformParameter", 
  %% OpengGL 3.0 
  %"glGetTransformFeedbackVarying",  %% Jobbiga
  %"glTransformFeedbackVaryings",

  %% EXT
  %% By default skip these extensions
  "SGIX","SGIS","NV","ATI","AMD","SUN","SUNX","GREMEDY",
  "HP","IBM","INTEL","APPLE","3DFX","PGI","EXT"]}.

%% Exceptions to the above
{keep, 
 [
  %% GL_EXT_framebuffer_object
  "glIsRenderbufferEXT",
  "glBindRenderbufferEXT",
  "glDeleteRenderbuffersEXT",
  "glGenRenderbuffersEXT",
  "glRenderbufferStorageEXT",
  "glGetRenderbufferParameterivEXT",
  "glIsFramebufferEXT",
  "glBindFramebufferEXT",
  "glDeleteFramebuffersEXT",
  "glGenFramebuffersEXT",
  "glCheckFramebufferStatusEXT",
  "glFramebufferTexture1DEXT",
  "glFramebufferTexture2DEXT",
  "glFramebufferTexture3DEXT",
  "glFramebufferRenderbufferEXT",
  "glGetFramebufferAttachmentParameterivEXT",
  "glGenerateMipmapEXT",
  %% GL_ATI_separate_stencil
  "glStencilOpSeparateATI",
  "glStencilFuncSeparateATI",
  %% GL_EXT_depth_bounds_test
  "glDepthBoundsEXT",
  %% GL_EXT_blend_equation_separate
  "glBlendEquationSeparateEXT",
  %%  GL_EXT_stencil_clear_tag
  "glStencilClearTagEXT",
  %%  GL_EXT_framebuffer_blit
  "glBlitFramebufferEXT",
  %% GL_EXT_framebuffer_multisample
  "glRenderbufferStorageMultisampleEXT",
    
  "gluBuild", % mipmaps*
  "gluCheckExtension", "gluErrorString", "gluGetString",
  "gluLookAt", "gluOrtho2D", "gluPerspective", "gluPickMatrix", 
  "gluScaleImage",

  "gluNewQuadric", "gluDeleteQuadric",
  "gluQuadricTexture", "gluQuadricOrientation", "gluQuadricNormals", "gluQuadricDrawStyle",
  "gluDisk", "gluCylinder", "gluPartialDisk", "gluSphere",

  "gluProject",  "gluUnProject"
 ]}.

{vector, [{"glMultiTexCoord",1}, {"glConvolutionParameter",2},{"glVertexAttrib",1}, {"glVertexAttribI",1}]}.

%% function specific information

{"glBitmap", {"bitmap", {base,idx_binary}}}.
{"glPolygonStipple", {"mask", binary}}.
{"glGetPolygonStipple", [{"mask", [{binary, 128},out, {single,true}]}]}.
{"glClipPlane",    {"equation", {single,{tuple,4}}}}.
{"glGetClipPlane", {"equation", {single,{tuple,4}}}}.
{"glLoadMatrix", {"m", {single,{tuple,matrix}}}}.
{"glMultMatrix", {"m", {single,{tuple,matrix}}}}.
{"glCallLists",   [{"n",     {c_only, {length, "lists"}}}, 
		   {"type",  {c_only, {constant, "GL_UNSIGNED_INT"}}},
		   {"lists", [{single,list},{type,"GLuint"}, {base,int}]}]}.
{"glLight",    {"params", {single,{tuple,undefined}}}}.
{"glGetLight", {"params", {single, {tuple, 4}}}}.
{"glMaterial", {"params", {single,{tuple,undefined}}}}.
{"glGetMaterial", {"params", {single, {tuple, 4}}}}.
{"glPixelMap", {"values", binary}}.
{"glGetPixelMap", {"values", [{base,memory}, in]}}.
{"glTexGen",    {"params",{single,{tuple,undefined}}}}.
{"glGetTexGen", {"params",{single,{tuple,4}}}}.
{"glTexEnv",    {"params",{single,{tuple,undefined}}}}.
{"glGetTexEnv", {"params",{single,{tuple,4}}}}.
{"glTexParameter", {"params",{single,{tuple,undefined}}}}.
{"glGetTexParameter", {"params",{single,{tuple,4}}}}.
{"glGetTexLevelParameter", {"params", {single,{tuple,1}}}}.
{"glGenTextures", [{"textures", {single,{list,"n","n"}}}]}.
{"glDeleteTextures", [{"n",     {c_only, {length, "textures"}}}, 
		      {"textures", [{single,list}]}]}.
{"glPrioritizeTextures", [{"n",     {c_only, {length, "textures"}}},
			  {"textures", [{single,list}]},
			  {"priorities", [{single,list}]}]}.
{"glAreTexturesResident", [{"n", {c_only,{length,"textures"}}},
			   {"textures", [{single,list}]},
			   {"residences", [{single,{list,"texturesLen","texturesLen"}}]}]}.
{"glMap", {"points", binary}}.
{"glGetMap", {"v", [{base,memory},in]}}.
{"glFog", {"params", {single,{tuple,undefined}}}}.
{"glColorTableParameter", {"params",{single,{tuple,4}}}}.
{"glGetColorTable", {"table", [{base,memory},in]}}.
{"glGetColorTableParameter", {"params", {single,{tuple,4}}}}.
{"glGetHistogram", {"values", [{base,memory}, in]}}.
{"glGetHistogramParameter", {"params", {single,{tuple,1}}}}.
{"glGetMinmax", {"values", [{base,memory}, in]}}.
{"glGetMinmaxParameter", {"params", {single,{tuple,1}}}}.
{"glGetConvolutionFilter", {"image", [{base,memory}, in]}}.
{"glConvolutionParameter", {"params", {single,{tuple,undefined}} }}.
{"glGetConvolutionParameter", {"params", {single,{tuple,4}}}}.

{"glRect", [{"v1", {single,{tuple,2}}},{"v2", {single,{tuple,2}}}]}.

{"glGetString",   {"result", {single,{list,null}}}}.
{"glGetBooleanv", {"params", {single,{list,16}}}}.
{"glGetDoublev",  {"params", {single,{list,16}}}}.
{"glGetFloatv",   {"params", {single,{list,16}}}}.
{"glGetIntegerv", {"params", {single,{list,16}}}}.

{"glFeedbackBuffer", {"buffer", [{base,memory}, in]}}.
{"glSelectBuffer",   {"buffer", [{base,memory}, in]}}.
{"glReadPixels",     {"pixels", [{base,memory}, in]}}.
{"glGetTexImage",    {"pixels", [{base,memory}, in]}}.
{"glGetCompressedTexImage", {"img", [{base,memory}, in]}}.

{"glLoadTransposeMatrix", {"m", {single,{tuple,matrix}}}}.
{"glMultTransposeMatrix", {"m",{single,{tuple,matrix}}}}.

{"glMultiDrawArrays", [{"first", [in,{single,list}]}, 
		       {"count", [in,{single,list}]}, 
		       {"primcount", {c_only, {length,"first"}}}]}.

{"glGenQueries", {"ids", {single,{list, "n", "n"}}}}.
{"glGetQueryiv", {"params", {single, true}}}.
{"glGetQueryObject", {"params", {single, true}}}.

{"glPointParameter", {"params", {single,{tuple,undefined}} }}.
{"glDeleteQueries", [{"n",{c_only,{length,"ids"}}},{"ids",[{single,list}]}]}.
{"glGenBuffers", {"buffers",[{single,{list,"n","n"}}]}}.
{"glGetBufferSubData", {"data", [{base,memory}, in]}}.
{"glGetBufferParameteriv", {"params", {single,true}}}.
{"glDeleteBuffers", [{"n",{c_only,{length,"buffers"}}},{"buffers",[{single,list}]}]}.
{"glDrawBuffers",   [{"n",{c_only,{length,"bufs"}}},{"bufs",[{single,list}]}]}.

{"glShaderSource", [{"length", {c_only,{constant,"NULL"}}},
		    {"count",  {c_only,{length,"string"}}},
		    {"string", {single,list}}]}.

{"glGetActiveAttribARB", [{"length",[skip,{single, true}]},
			  {"size",  {single, true}},
			  {"type",  {single, true}},
			  {"name",  {single, {list,"maxLength","length"}}}
			 ]}.

{"glGetActiveAttrib", [{"length",[skip,{single, true}]},
		       {"size",  {single, true}},
		       {"type",  {single, true}},
		       {"name",  {single, {list,"bufSize","length"}}}
		      ]}.

{"glGetActiveUniformARB", [{"length",[skip,{single, true}]},
			   {"size",  {single, true}},
			   {"type",  {single, true}},
			   {"name",  {single, {list,"maxLength","length"}}}
			  ]}.
{"glGetActiveUniform", [{"length",[skip,{single, true}]},
			{"size",  {single, true}},
			{"type",  {single, true}},
			{"name",  {single, {list,"bufSize","length"}}}
		       ]}.

{"glGetAttachedShaders", [{"count", [skip,{single,true}]},
			  {"obj", {single, {list,"maxCount","count"}}}
			 ]}.

{"glGetProgramiv", {"params", {single,true}}}.

{"glGetProgramInfoLog", [{"length", [skip,{single,true}]},
			 {"infoLog", {single, {list,"bufSize","length"}}}
			]}.
{"glGetShaderiv", {"params", {single,true}}}.
{"glGetShaderInfoLog", [{"length", [skip,{single,true}]},
			{"infoLog", {single, {list,"bufSize","length"}}}
		       ]}.

{"glGetShaderSourceARB", [{"length", [skip,{single,true}]},
			  {"source", {single, {list,"maxLength","length"}}}
			 ]}.
{"glGetShaderSource", [{"length", [skip,{single,true}]},
		       {"source", {single, {list,"bufSize","length"}}}
		      ]}.


{"glGetUniform", {"params", {single,{tuple,16}}}}.
{"glGetVertexAttrib", {"params", {single,{tuple,4}}}}.

{"glUniform1", [{"count",{c_only,{length,"value"}}}, {"value", [{single,list}]}]}.
{"glUniform2", [{"count",{c_only,{length,"value"}}}, {"value", [{single,{tuple_list,2}}]}]}.
{"glUniform3", [{"count",{c_only,{length,"value"}}}, {"value", [{single,{tuple_list,3}}]}]}.
{"glUniform4", [{"count",{c_only,{length,"value"}}}, {"value", [{single,{tuple_list,4}}]}]}.
{"glUniformMatrix2fv",   [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,4}}]}]}.
{"glUniformMatrix3fv",   [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,9}}]}]}.
{"glUniformMatrix4fv",   [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,16}}]}]}.
{"glUniformMatrix2x3fv", [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,6}}]}]}.
{"glUniformMatrix3x2fv", [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,6}}]}]}.
{"glUniformMatrix2x4fv", [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,8}}]}]}.
{"glUniformMatrix4x2fv", [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,8}}]}]}.
{"glUniformMatrix3x4fv", [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,12}}]}]}.
{"glUniformMatrix4x3fv", [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,12}}]}]}.
{"glVertexAttrib4", {"v", {single, {tuple,4}}}}.


{"glWeight", [{"size",{c_only,{length,"weights"}}}, {"weights", {single,list}}]}.
{"glMatrixIndex", [{"size",{c_only,{length,"indices"}}}, {"indices", {single,list}}]}.


{"glProgramStringARB", [{"len",{c_only,{constant,"stringLen"}}},
			{"string",[{base,string},{single,true}]}]}.
{"glGetProgramStringARB", {"string", [in,{base,memory}]}}.
{"glGenProgramsARB", {"programs", {single,{list,"n","n"}}}}.
{"glDeleteProgramsARB", [{"n",{c_only,{length,"programs"}}},{"programs",{single,list}}]}.
{"glProgramEnvParameter4", {"params", {single,{tuple,4}}}}.
{"glGetProgramEnvParameter", {"params", {single,{tuple,4}}}}.
{"glProgramLocalParameter", {"params", {single,{tuple,4}}}}.
{"glGetProgramLocalParameter", {"params", {single,{tuple,4}}}}.
{"glGetObjectParameter", {"params", {single,true}}}.
{"glGetInfoLogARB", [{"length", [skip,{single,true}]},
		     {"infoLog", {single, {list,"maxLength","length"}}}
		    ]}.
{"glGetAttachedObjectsARB", [{"count", [skip,{single,true}]},
			     {"obj", {single, {list,"maxCount","count"}}}
			    ]}.

{"glGenRenderbuffersEXT", {"renderbuffers", {single,{list,"n","n"}}}}.
{"glDeleteRenderbuffersEXT",[{"n",{c_only,{length,"renderbuffers"}}},{"renderbuffers",{single,list}}]}.
{"glDeleteFramebuffersEXT", [{"n",{c_only,{length,"framebuffers"}}},{"framebuffers",{single,list}}]}.
{"glGetRenderbufferParameterivEXT", {"params", {single,true}}}.

{"glGetFramebufferAttachmentParameterivEXT", {"params",{single,true}}}.
{"glGenFramebuffersEXT", {"framebuffers",{single,{list,"n","n"}}}}.

{"gluPickMatrix", {"viewport", [in, {single, {tuple, 4}}]}}.
{"gluProject",   [{"model", {single, {tuple, matrix}}},
		  {"proj", {single, {tuple, matrix}}},
		  {"view", {single, {tuple, 4}}},
		  {"winX", [{single,true},out]},
		  {"winY", [{single,true},out]},
		  {"winZ", [{single,true},out]}]}.
{"gluUnProject", [{"model", {single, {tuple, matrix}}},
		  {"proj", {single, {tuple, matrix}}},
		  {"view", {single, {tuple, 4}}},
		  {"objX",[{single,true},out]},
		  {"objY",[{single,true},out]},
		  {"objZ",[{single,true},out]},
		  {"objW",[{single,true},out]}]}. 
{"gluBuild", {"data", [binary]}}.
{"gluScaleImage", [{"dataIn", [in, binary]}, {"dataOut", [in, {base, memory}]}]}.
{"gluCheckExtension", [{"extName", {single, list}}, {"extString", {single, list}}]}.
{"gluErrorString", {"result", {single, {list,null}}}}.
{"gluGetString", {"result", {single, {list,null}}}}.

{"gluDeleteQuadric", {"quad", in}}.
{"gluQuadric",     {"quad", in}}.
{"gluSphere",      {"quad", in}}.
{"gluPartialDisk", {"quad", in}}.
{"gluDisk",        {"quad", in}}.
{"gluCylinder",    {"quad", in}}.

%% OpenGL 3.0 
{"glGetBooleani_v", {"data", {single,{list,16}}}}.
{"glGetIntegeri_v", {"data", {single,{list,16}}}}.

{"glTransformFeedbackVaryings", [{"count", {c_only,{length,"varyings"}}},
				 {"varyings", [{base,string}, {single,list}]}]}.
{"glGetTransformFeedbackVarying", [{"size", {single, true}},{"type", {single, true}},				   
				   {"length", [skip, {single, true}]},
				   {"name", {single, {list,"bufSize","length"}}}]}.


{"glGenRenderbuffers", {"renderbuffers", {single,{list,"n","n"}}}}.
{"glGenFramebuffers", {"framebuffers",{single,{list,"n","n"}}}}.
{"glGetRenderbufferParameteriv", {"params", {single,true}}}.
{"glGetFramebufferAttachmentParameteriv", {"params",{single,true}}}.
{"glGenVertexArrays", {"arrays", {single, {list,"n","n"}}}}.
{"glGenRenderbuffers", {"renderbuffers", {single,{list,"n","n"}}}}.
{"glDeleteRenderbuffers",[{"n",{c_only,{length,"renderbuffers"}}},
			  {"renderbuffers",{single,list}}]}.
{"glDeleteFramebuffers", [{"n",{c_only,{length,"framebuffers"}}},
			  {"framebuffers",{single,list}}]}.
{"glVertexAttribI4", {"v", {single, {tuple,4}}}}.
%% {"glVertexAttribI4", {"v", }}.
%% {"glVertexAttribI4ubv", {"v", }}.
%% {"glVertexAttribI4usv", {"v", }}.
{"glClearBuffer", {"value", {single, {tuple, undefined}}}}.
{"glDeleteVertexArrays", [{"n",{c_only,{length,"arrays"}}},{"arrays", {single, list}}]}.

{"glGetUniformIndices", [{"uniformCount", {c_only, {length, "uniformNames"}}},
			 {"uniformNames", [{base,string}, {single,list}]},
			 {"uniformIndices", [out, {single,{list, "uniformNamesLen", "uniformNamesLen"}}]}]}.
{"glGetActiveUniformsiv", [{"uniformCount", {c_only, {length, "uniformIndices"}}},
			   {"uniformIndices", {single,list}},
			   {"params", [out, {single, {list, "uniformIndicesLen", "uniformIndicesLen"}}]}]}.

{"glGetActiveUniformName", [{"length",[skip,{single, true}]},
			    {"uniformName", {single, {list,"bufSize","length"}}}]}.
{"glGetActiveUniformBlockName", [{"length",[skip,{single, true}]},
				 {"uniformBlockName", {single, {list,"bufSize","length"}}}]}.
{"glGetActiveUniformBlockiv", {"params", [in, {base,memory}]}}.