~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to lib/wx/src/gen/gl.erl

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
%%
2
2
%% %CopyrightBegin%
3
 
%% 
4
 
%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
5
 
%% 
 
3
%%
 
4
%% Copyright Ericsson AB 2008-2010. All Rights Reserved.
 
5
%%
6
6
%% The contents of this file are subject to the Erlang Public License,
7
7
%% Version 1.1, (the "License"); you may not use this file except in
8
8
%% compliance with the License. You should have received a copy of the
9
9
%% Erlang Public License along with this software. If not, it can be
10
10
%% retrieved online at http://www.erlang.org/.
11
 
%% 
 
11
%%
12
12
%% Software distributed under the License is distributed on an "AS IS"
13
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
14
%% the License for the specific language governing rights and limitations
15
15
%% under the License.
16
 
%% 
 
16
%%
17
17
%% %CopyrightEnd%
18
18
 
19
19
%% OPENGL API
20
20
 
21
21
%% This file is generated DO NOT EDIT
22
22
 
23
 
%% @doc  Standard OpenGL api. 
 
23
%% @doc  Standard OpenGL api.
24
24
%% See <a href="http://www.opengl.org/sdk/docs/man/">www.opengl.org</a>
25
25
%%
26
 
%% Booleans are represented by integers 0 and 1. 
 
26
%% Booleans are represented by integers 0 and 1.
27
27
 
28
 
%% @type wx_mem(). see wx.erl on memory allocation functions
 
28
%% @type mem().    memory block
29
29
%% @type enum().   An integer defined in gl.hrl
30
30
%% @type offset(). An integer which is an offset in an array
31
 
%% @type clamp().  A float clamped between 0.0 - 1.0 
 
31
%% @type clamp().  A float clamped between 0.0 - 1.0
32
32
-module(gl).
33
33
 
34
34
-compile(inline).
35
 
-include("wxe.hrl").
36
35
-define(GLenum,32/native-unsigned).
37
36
-define(GLboolean,8/native-unsigned).
38
37
-define(GLbitfield,32/native-unsigned).
51
50
-define(GLintptr,64/native-unsigned).
52
51
-define(GLUquadric,64/native-unsigned).
53
52
-define(GLhandleARB,64/native-unsigned).
 
53
-define(GLsync,64/native-unsigned).
 
54
-define(GLuint64,64/native-unsigned).
 
55
-define(GLint64,64/native-signed).
 
56
-type clamp() :: float().
 
57
-type offset() :: non_neg_integer().
 
58
-type enum() :: non_neg_integer().
 
59
-type mem() :: binary() | tuple().
54
60
 
55
61
-export([accum/2,alphaFunc/2,areTexturesResident/1,arrayElement/1,'begin'/1,
56
62
  bindTexture/2,bitmap/7,blendFunc/2,callList/1,callLists/1,clear/1,clearAccum/4,
173
179
  enablei/2,disablei/2,isEnabledi/2,beginTransformFeedback/1,endTransformFeedback/0,
174
180
  bindBufferRange/5,bindBufferBase/3,transformFeedbackVaryings/3,getTransformFeedbackVarying/3,
175
181
  clampColor/2,beginConditionalRender/2,endConditionalRender/0,vertexAttribIPointer/5,
176
 
  getVertexAttribIiv/2,getVertexAttribIuiv/2,getUniformuiv/2,bindFragDataLocation/3,
 
182
  getVertexAttribIiv/2,getVertexAttribIuiv/2,vertexAttribI1i/2,vertexAttribI2i/3,
 
183
  vertexAttribI3i/4,vertexAttribI4i/5,vertexAttribI1ui/2,vertexAttribI2ui/3,
 
184
  vertexAttribI3ui/4,vertexAttribI4ui/5,vertexAttribI1iv/2,vertexAttribI2iv/2,
 
185
  vertexAttribI3iv/2,vertexAttribI4iv/2,vertexAttribI1uiv/2,vertexAttribI2uiv/2,
 
186
  vertexAttribI3uiv/2,vertexAttribI4uiv/2,vertexAttribI4bv/2,vertexAttribI4sv/2,
 
187
  vertexAttribI4ubv/2,vertexAttribI4usv/2,getUniformuiv/2,bindFragDataLocation/3,
177
188
  getFragDataLocation/2,uniform1ui/2,uniform2ui/3,uniform3ui/4,uniform4ui/5,
178
189
  uniform1uiv/2,uniform2uiv/2,uniform3uiv/2,uniform4uiv/2,texParameterIiv/3,
179
190
  texParameterIuiv/3,getTexParameterIiv/2,getTexParameterIuiv/2,clearBufferiv/3,
180
 
  clearBufferuiv/3,clearBufferfv/3,clearBufferfi/4,getStringi/2,vertexAttribI1i/2,
181
 
  vertexAttribI2i/3,vertexAttribI3i/4,vertexAttribI4i/5,vertexAttribI1ui/2,
182
 
  vertexAttribI2ui/3,vertexAttribI3ui/4,vertexAttribI4ui/5,vertexAttribI1iv/2,
183
 
  vertexAttribI2iv/2,vertexAttribI3iv/2,vertexAttribI4iv/2,vertexAttribI1uiv/2,
184
 
  vertexAttribI2uiv/2,vertexAttribI3uiv/2,vertexAttribI4uiv/2,vertexAttribI4bv/2,
185
 
  vertexAttribI4sv/2,vertexAttribI4ubv/2,vertexAttribI4usv/2,drawArraysInstanced/4,
186
 
  drawElementsInstanced/5,texBuffer/3,primitiveRestartIndex/1,loadTransposeMatrixfARB/1,
187
 
  loadTransposeMatrixdARB/1,multTransposeMatrixfARB/1,multTransposeMatrixdARB/1,
188
 
  weightbvARB/1,weightsvARB/1,weightivARB/1,weightfvARB/1,weightdvARB/1,
189
 
  weightubvARB/1,weightusvARB/1,weightuivARB/1,vertexBlendARB/1,currentPaletteMatrixARB/1,
 
191
  clearBufferuiv/3,clearBufferfv/3,clearBufferfi/4,getStringi/2,drawArraysInstanced/4,
 
192
  drawElementsInstanced/5,texBuffer/3,primitiveRestartIndex/1,getInteger64i_v/2,
 
193
  getBufferParameteri64v/2,framebufferTexture/4,vertexAttribDivisor/2,
 
194
  minSampleShading/1,blendEquationi/2,blendEquationSeparatei/3,blendFunci/3,
 
195
  blendFuncSeparatei/5,loadTransposeMatrixfARB/1,loadTransposeMatrixdARB/1,
 
196
  multTransposeMatrixfARB/1,multTransposeMatrixdARB/1,weightbvARB/1,
 
197
  weightsvARB/1,weightivARB/1,weightfvARB/1,weightdvARB/1,weightubvARB/1,
 
198
  weightusvARB/1,weightuivARB/1,vertexBlendARB/1,currentPaletteMatrixARB/1,
190
199
  matrixIndexubvARB/1,matrixIndexusvARB/1,matrixIndexuivARB/1,programStringARB/3,
191
200
  bindProgramARB/2,deleteProgramsARB/1,genProgramsARB/1,programEnvParameter4dARB/6,
192
201
  programEnvParameter4dvARB/3,programEnvParameter4fARB/6,programEnvParameter4fvARB/3,
193
202
  programLocalParameter4dARB/6,programLocalParameter4dvARB/3,programLocalParameter4fARB/6,
194
203
  programLocalParameter4fvARB/3,getProgramEnvParameterdvARB/2,getProgramEnvParameterfvARB/2,
195
204
  getProgramLocalParameterdvARB/2,getProgramLocalParameterfvARB/2,
196
 
  getProgramStringARB/3,deleteObjectARB/1,getHandleARB/1,detachObjectARB/2,
197
 
  createShaderObjectARB/1,shaderSourceARB/2,compileShaderARB/1,createProgramObjectARB/0,
198
 
  attachObjectARB/2,linkProgramARB/1,useProgramObjectARB/1,validateProgramARB/1,
199
 
  getObjectParameterfvARB/2,getObjectParameterivARB/2,getInfoLogARB/2,
200
 
  getAttachedObjectsARB/2,getUniformLocationARB/2,getActiveUniformARB/3,
201
 
  getUniformfvARB/2,getUniformivARB/2,getShaderSourceARB/2,bindAttribLocationARB/3,
202
 
  getActiveAttribARB/3,getAttribLocationARB/2,isRenderbuffer/1,bindRenderbuffer/2,
203
 
  deleteRenderbuffers/1,genRenderbuffers/1,renderbufferStorage/4,getRenderbufferParameteriv/2,
 
205
  getProgramStringARB/3,getBufferParameterivARB/2,deleteObjectARB/1,
 
206
  getHandleARB/1,detachObjectARB/2,createShaderObjectARB/1,shaderSourceARB/2,
 
207
  compileShaderARB/1,createProgramObjectARB/0,attachObjectARB/2,linkProgramARB/1,
 
208
  useProgramObjectARB/1,validateProgramARB/1,getObjectParameterfvARB/2,
 
209
  getObjectParameterivARB/2,getInfoLogARB/2,getAttachedObjectsARB/2,
 
210
  getUniformLocationARB/2,getActiveUniformARB/3,getUniformfvARB/2,
 
211
  getUniformivARB/2,getShaderSourceARB/2,bindAttribLocationARB/3,getActiveAttribARB/3,
 
212
  getAttribLocationARB/2,isRenderbuffer/1,bindRenderbuffer/2,deleteRenderbuffers/1,
 
213
  genRenderbuffers/1,renderbufferStorage/4,getRenderbufferParameteriv/2,
204
214
  isFramebuffer/1,bindFramebuffer/2,deleteFramebuffers/1,genFramebuffers/1,
205
215
  checkFramebufferStatus/1,framebufferTexture1D/5,framebufferTexture2D/5,
206
216
  framebufferTexture3D/6,framebufferRenderbuffer/4,getFramebufferAttachmentParameteriv/3,
207
217
  generateMipmap/1,blitFramebuffer/10,renderbufferStorageMultisample/5,
208
 
  framebufferTextureLayer/5,programParameteriARB/3,framebufferTextureARB/4,
209
 
  framebufferTextureFaceARB/5,vertexAttribDivisorARB/2,flushMappedBufferRange/3,
 
218
  framebufferTextureLayer/5,framebufferTextureFaceARB/5,flushMappedBufferRange/3,
210
219
  bindVertexArray/1,deleteVertexArrays/1,genVertexArrays/1,isVertexArray/1,
211
220
  getUniformIndices/2,getActiveUniformsiv/3,getActiveUniformName/3,
212
221
  getUniformBlockIndex/2,getActiveUniformBlockiv/4,getActiveUniformBlockName/3,
213
 
  uniformBlockBinding/3,copyBufferSubData/5,resizeBuffersMESA/0,windowPos4dMESA/4,
 
222
  uniformBlockBinding/3,copyBufferSubData/5,drawElementsBaseVertex/5,
 
223
  drawRangeElementsBaseVertex/7,drawElementsInstancedBaseVertex/6,
 
224
  provokingVertex/1,fenceSync/2,isSync/1,deleteSync/1,clientWaitSync/3,
 
225
  waitSync/3,getInteger64v/1,getSynciv/3,texImage2DMultisample/6,texImage3DMultisample/7,
 
226
  getMultisamplefv/2,sampleMaski/2,namedStringARB/3,deleteNamedStringARB/1,
 
227
  compileShaderIncludeARB/2,isNamedStringARB/1,getNamedStringARB/2,
 
228
  getNamedStringivARB/2,bindFragDataLocationIndexed/4,getFragDataIndex/2,
 
229
  genSamplers/1,deleteSamplers/1,isSampler/1,bindSampler/2,samplerParameteri/3,
 
230
  samplerParameteriv/3,samplerParameterf/3,samplerParameterfv/3,samplerParameterIiv/3,
 
231
  samplerParameterIuiv/3,getSamplerParameteriv/2,getSamplerParameterIiv/2,
 
232
  getSamplerParameterfv/2,getSamplerParameterIuiv/2,queryCounter/2,
 
233
  getQueryObjecti64v/2,getQueryObjectui64v/2,drawArraysIndirect/2,
 
234
  drawElementsIndirect/3,uniform1d/2,uniform2d/3,uniform3d/4,uniform4d/5,
 
235
  uniform1dv/2,uniform2dv/2,uniform3dv/2,uniform4dv/2,uniformMatrix2dv/3,
 
236
  uniformMatrix3dv/3,uniformMatrix4dv/3,uniformMatrix2x3dv/3,uniformMatrix2x4dv/3,
 
237
  uniformMatrix3x2dv/3,uniformMatrix3x4dv/3,uniformMatrix4x2dv/3,uniformMatrix4x3dv/3,
 
238
  getUniformdv/2,getSubroutineUniformLocation/3,getSubroutineIndex/3,
 
239
  getActiveSubroutineUniformName/4,getActiveSubroutineName/4,uniformSubroutinesuiv/2,
 
240
  getUniformSubroutineuiv/2,getProgramStageiv/3,patchParameteri/2,
 
241
  patchParameterfv/2,bindTransformFeedback/2,deleteTransformFeedbacks/1,
 
242
  genTransformFeedbacks/1,isTransformFeedback/1,pauseTransformFeedback/0,
 
243
  resumeTransformFeedback/0,drawTransformFeedback/2,drawTransformFeedbackStream/3,
 
244
  beginQueryIndexed/3,endQueryIndexed/2,getQueryIndexediv/3,releaseShaderCompiler/0,
 
245
  shaderBinary/3,getShaderPrecisionFormat/2,depthRangef/2,clearDepthf/1,
 
246
  getProgramBinary/2,programBinary/3,programParameteri/3,useProgramStages/3,
 
247
  activeShaderProgram/2,createShaderProgramv/2,bindProgramPipeline/1,
 
248
  deleteProgramPipelines/1,genProgramPipelines/1,isProgramPipeline/1,
 
249
  getProgramPipelineiv/2,programUniform1i/3,programUniform1iv/3,programUniform1f/3,
 
250
  programUniform1fv/3,programUniform1d/3,programUniform1dv/3,programUniform1ui/3,
 
251
  programUniform1uiv/3,programUniform2i/4,programUniform2iv/3,programUniform2f/4,
 
252
  programUniform2fv/3,programUniform2d/4,programUniform2dv/3,programUniform2ui/4,
 
253
  programUniform2uiv/3,programUniform3i/5,programUniform3iv/3,programUniform3f/5,
 
254
  programUniform3fv/3,programUniform3d/5,programUniform3dv/3,programUniform3ui/5,
 
255
  programUniform3uiv/3,programUniform4i/6,programUniform4iv/3,programUniform4f/6,
 
256
  programUniform4fv/3,programUniform4d/6,programUniform4dv/3,programUniform4ui/6,
 
257
  programUniform4uiv/3,programUniformMatrix2fv/4,programUniformMatrix3fv/4,
 
258
  programUniformMatrix4fv/4,programUniformMatrix2dv/4,programUniformMatrix3dv/4,
 
259
  programUniformMatrix4dv/4,programUniformMatrix2x3fv/4,programUniformMatrix3x2fv/4,
 
260
  programUniformMatrix2x4fv/4,programUniformMatrix4x2fv/4,programUniformMatrix3x4fv/4,
 
261
  programUniformMatrix4x3fv/4,programUniformMatrix2x3dv/4,programUniformMatrix3x2dv/4,
 
262
  programUniformMatrix2x4dv/4,programUniformMatrix4x2dv/4,programUniformMatrix3x4dv/4,
 
263
  programUniformMatrix4x3dv/4,validateProgramPipeline/1,getProgramPipelineInfoLog/2,
 
264
  vertexAttribL1d/2,vertexAttribL2d/3,vertexAttribL3d/4,vertexAttribL4d/5,
 
265
  vertexAttribL1dv/2,vertexAttribL2dv/2,vertexAttribL3dv/2,vertexAttribL4dv/2,
 
266
  vertexAttribLPointer/5,getVertexAttribLdv/2,viewportArrayv/2,viewportIndexedf/5,
 
267
  viewportIndexedfv/2,scissorArrayv/2,scissorIndexed/5,scissorIndexedv/2,
 
268
  depthRangeArrayv/2,depthRangeIndexed/3,getFloati_v/2,getDoublei_v/2,
 
269
  debugMessageControlARB/5,debugMessageInsertARB/5,getDebugMessageLogARB/2,
 
270
  getGraphicsResetStatusARB/0,resizeBuffersMESA/0,windowPos4dMESA/4,
214
271
  windowPos4dvMESA/1,windowPos4fMESA/4,windowPos4fvMESA/1,windowPos4iMESA/4,
215
272
  windowPos4ivMESA/1,windowPos4sMESA/4,windowPos4svMESA/1,depthBoundsEXT/2,
216
273
  stencilClearTagEXT/2]).
217
274
 
218
 
 
219
 
%% API 
 
275
-export([call/2, cast/2, send_bin/1]).
 
276
%% @hidden
 
277
call(Op, Args) ->
 
278
    Port = get(opengl_port), 
 
279
    _ = erlang:port_control(Port,Op,Args),
 
280
    rec().
 
281
    
 
282
%% @hidden
 
283
cast(Op, Args) ->
 
284
    Port = get(opengl_port), 
 
285
    _ = erlang:port_control(Port,Op,Args),
 
286
    ok.
 
287
    
 
288
%% @hidden
 
289
rec() ->
 
290
    receive 
 
291
        {'_egl_result_', Res} -> Res;
 
292
        {'_egl_error_',  Op, Res} -> error({error,Res,Op})
 
293
    end. 
 
294
 
 
295
%% @hidden
 
296
send_bin(Bin) when is_binary(Bin) ->
 
297
    Port = get(opengl_port), 
 
298
    erlang:port_command(Port,Bin);
 
299
send_bin(Tuple) when is_tuple(Tuple) ->
 
300
    Port = get(opengl_port), 
 
301
    case element(2, Tuple) of
 
302
        Bin when is_binary(Bin) ->
 
303
            erlang:port_command(Port,Bin)
 
304
    end.
 
305
 
 
306
 
 
307
%% API
220
308
 
221
309
%% @spec (Op::enum(),Value::float()) -> ok
222
310
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glAccum.xml">external</a> documentation.
 
311
-spec accum(enum(),float()) -> ok.
223
312
accum(Op,Value) ->
224
 
  wxe_util:cast(5037, <<Op:?GLenum,Value:?GLfloat>>).
 
313
  cast(5037, <<Op:?GLenum,Value:?GLfloat>>).
225
314
 
226
315
%% @spec (Func::enum(),Ref::clamp()) -> ok
227
316
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glAlphaFunc.xml">external</a> documentation.
 
317
-spec alphaFunc(enum(),clamp()) -> ok.
228
318
alphaFunc(Func,Ref) ->
229
 
  wxe_util:cast(5038, <<Func:?GLenum,Ref:?GLclampf>>).
 
319
  cast(5038, <<Func:?GLenum,Ref:?GLclampf>>).
230
320
 
231
321
%% @spec (Textures::[integer()]) -> {0|1,Residences::[0|1]}
232
322
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glAreTexturesResident.xml">external</a> documentation.
 
323
-spec areTexturesResident([integer()]) -> {0|1,[0|1]}.
233
324
areTexturesResident(Textures) ->
234
 
  wxe_util:call(5039, <<(length(Textures)):?GLuint,
 
325
  call(5039, <<(length(Textures)):?GLuint,
235
326
        (<< <<C:?GLuint>> || C <- Textures>>)/binary,0:(((1+length(Textures)) rem 2)*32)>>).
236
327
 
237
328
%% @spec (I::integer()) -> ok
238
329
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glArrayElement.xml">external</a> documentation.
 
330
-spec arrayElement(integer()) -> ok.
239
331
arrayElement(I) ->
240
 
  wxe_util:cast(5040, <<I:?GLint>>).
 
332
  cast(5040, <<I:?GLint>>).
241
333
 
242
334
%% @spec (Mode::enum()) -> ok
243
335
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBegin.xml">external</a> documentation.
 
336
-spec 'begin'(enum()) -> ok.
244
337
'begin'(Mode) ->
245
 
  wxe_util:cast(5041, <<Mode:?GLenum>>).
 
338
  cast(5041, <<Mode:?GLenum>>).
246
339
 
247
340
%% @spec (Target::enum(),Texture::integer()) -> ok
248
341
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindTexture.xml">external</a> documentation.
 
342
-spec bindTexture(enum(),integer()) -> ok.
249
343
bindTexture(Target,Texture) ->
250
 
  wxe_util:cast(5042, <<Target:?GLenum,Texture:?GLuint>>).
 
344
  cast(5042, <<Target:?GLenum,Texture:?GLuint>>).
251
345
 
252
 
%% @spec (Width::integer(),Height::integer(),Xorig::float(),Yorig::float(),Xmove::float(),Ymove::float(),Bitmap::offset()|binary()) -> ok
 
346
%% @spec (Width::integer(),Height::integer(),Xorig::float(),Yorig::float(),Xmove::float(),Ymove::float(),Bitmap::offset()|mem()) -> ok
253
347
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBitmap.xml">external</a> documentation.
 
348
-spec bitmap(integer(),integer(),float(),float(),float(),float(),offset()|mem()) -> ok.
254
349
bitmap(Width,Height,Xorig,Yorig,Xmove,Ymove,Bitmap) when  is_integer(Bitmap) ->
255
 
  wxe_util:cast(5043, <<Width:?GLsizei,Height:?GLsizei,Xorig:?GLfloat,Yorig:?GLfloat,Xmove:?GLfloat,Ymove:?GLfloat,Bitmap:?GLuint>>);
 
350
  cast(5043, <<Width:?GLsizei,Height:?GLsizei,Xorig:?GLfloat,Yorig:?GLfloat,Xmove:?GLfloat,Ymove:?GLfloat,Bitmap:?GLuint>>);
256
351
bitmap(Width,Height,Xorig,Yorig,Xmove,Ymove,Bitmap) ->
257
 
  wxe_util:send_bin(Bitmap),
258
 
  wxe_util:cast(5044, <<Width:?GLsizei,Height:?GLsizei,Xorig:?GLfloat,Yorig:?GLfloat,Xmove:?GLfloat,Ymove:?GLfloat>>).
 
352
  send_bin(Bitmap),
 
353
  cast(5044, <<Width:?GLsizei,Height:?GLsizei,Xorig:?GLfloat,Yorig:?GLfloat,Xmove:?GLfloat,Ymove:?GLfloat>>).
259
354
 
260
355
%% @spec (Sfactor::enum(),Dfactor::enum()) -> ok
261
356
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlendFunc.xml">external</a> documentation.
 
357
-spec blendFunc(enum(),enum()) -> ok.
262
358
blendFunc(Sfactor,Dfactor) ->
263
 
  wxe_util:cast(5045, <<Sfactor:?GLenum,Dfactor:?GLenum>>).
 
359
  cast(5045, <<Sfactor:?GLenum,Dfactor:?GLenum>>).
264
360
 
265
361
%% @spec (List::integer()) -> ok
266
362
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCallList.xml">external</a> documentation.
 
363
-spec callList(integer()) -> ok.
267
364
callList(List) ->
268
 
  wxe_util:cast(5046, <<List:?GLuint>>).
 
365
  cast(5046, <<List:?GLuint>>).
269
366
 
270
367
%% @spec (Lists::[integer()]) -> ok
271
368
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCallLists.xml">external</a> documentation.
 
369
-spec callLists([integer()]) -> ok.
272
370
callLists(Lists) ->
273
 
  wxe_util:cast(5047, <<(length(Lists)):?GLuint,
 
371
  cast(5047, <<(length(Lists)):?GLuint,
274
372
        (<< <<C:?GLuint>> || C <- Lists>>)/binary,0:(((1+length(Lists)) rem 2)*32)>>).
275
373
 
276
374
%% @spec (Mask::integer()) -> ok
277
375
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClear.xml">external</a> documentation.
 
376
-spec clear(integer()) -> ok.
278
377
clear(Mask) ->
279
 
  wxe_util:cast(5048, <<Mask:?GLbitfield>>).
 
378
  cast(5048, <<Mask:?GLbitfield>>).
280
379
 
281
380
%% @spec (Red::float(),Green::float(),Blue::float(),Alpha::float()) -> ok
282
381
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearAccum.xml">external</a> documentation.
 
382
-spec clearAccum(float(),float(),float(),float()) -> ok.
283
383
clearAccum(Red,Green,Blue,Alpha) ->
284
 
  wxe_util:cast(5049, <<Red:?GLfloat,Green:?GLfloat,Blue:?GLfloat,Alpha:?GLfloat>>).
 
384
  cast(5049, <<Red:?GLfloat,Green:?GLfloat,Blue:?GLfloat,Alpha:?GLfloat>>).
285
385
 
286
386
%% @spec (Red::clamp(),Green::clamp(),Blue::clamp(),Alpha::clamp()) -> ok
287
387
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearColor.xml">external</a> documentation.
 
388
-spec clearColor(clamp(),clamp(),clamp(),clamp()) -> ok.
288
389
clearColor(Red,Green,Blue,Alpha) ->
289
 
  wxe_util:cast(5050, <<Red:?GLclampf,Green:?GLclampf,Blue:?GLclampf,Alpha:?GLclampf>>).
 
390
  cast(5050, <<Red:?GLclampf,Green:?GLclampf,Blue:?GLclampf,Alpha:?GLclampf>>).
290
391
 
291
392
%% @spec (Depth::clamp()) -> ok
292
393
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearDepth.xml">external</a> documentation.
 
394
-spec clearDepth(clamp()) -> ok.
293
395
clearDepth(Depth) ->
294
 
  wxe_util:cast(5051, <<Depth:?GLclampd>>).
 
396
  cast(5051, <<Depth:?GLclampd>>).
295
397
 
296
398
%% @spec (C::float()) -> ok
297
399
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearIndex.xml">external</a> documentation.
 
400
-spec clearIndex(float()) -> ok.
298
401
clearIndex(C) ->
299
 
  wxe_util:cast(5052, <<C:?GLfloat>>).
 
402
  cast(5052, <<C:?GLfloat>>).
300
403
 
301
404
%% @spec (S::integer()) -> ok
302
405
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearStencil.xml">external</a> documentation.
 
406
-spec clearStencil(integer()) -> ok.
303
407
clearStencil(S) ->
304
 
  wxe_util:cast(5053, <<S:?GLint>>).
 
408
  cast(5053, <<S:?GLint>>).
305
409
 
306
 
%% @spec (Plane::enum(),Equation::{float()}) -> ok
 
410
%% @spec (Plane::enum(),Equation::{float(),float(),float(),float()}) -> ok
307
411
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClipPlane.xml">external</a> documentation.
 
412
-spec clipPlane(enum(),{float(),float(),float(),float()}) -> ok.
308
413
clipPlane(Plane,{E1,E2,E3,E4}) ->
309
 
  wxe_util:cast(5054, <<Plane:?GLenum,0:32,E1:?GLdouble,E2:?GLdouble,E3:?GLdouble,E4:?GLdouble>>).
 
414
  cast(5054, <<Plane:?GLenum,0:32,E1:?GLdouble,E2:?GLdouble,E3:?GLdouble,E4:?GLdouble>>).
310
415
 
311
416
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
312
417
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
 
418
-spec color3b(integer(),integer(),integer()) -> ok.
313
419
color3b(Red,Green,Blue) ->
314
 
  wxe_util:cast(5055, <<Red:?GLbyte,Green:?GLbyte,Blue:?GLbyte>>).
 
420
  cast(5055, <<Red:?GLbyte,Green:?GLbyte,Blue:?GLbyte>>).
315
421
 
316
422
%% @spec ({Red,Green,Blue}) -> ok
317
423
%% @equiv color3b(Red,Green,Blue)
 
424
-spec color3bv({integer(),integer(),integer()}) -> ok.
318
425
color3bv({Red,Green,Blue}) ->  color3b(Red,Green,Blue).
319
426
 
320
427
%% @spec (Red::float(),Green::float(),Blue::float()) -> ok
321
428
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
 
429
-spec color3d(float(),float(),float()) -> ok.
322
430
color3d(Red,Green,Blue) ->
323
 
  wxe_util:cast(5056, <<Red:?GLdouble,Green:?GLdouble,Blue:?GLdouble>>).
 
431
  cast(5056, <<Red:?GLdouble,Green:?GLdouble,Blue:?GLdouble>>).
324
432
 
325
433
%% @spec ({Red,Green,Blue}) -> ok
326
434
%% @equiv color3d(Red,Green,Blue)
 
435
-spec color3dv({float(),float(),float()}) -> ok.
327
436
color3dv({Red,Green,Blue}) ->  color3d(Red,Green,Blue).
328
437
 
329
438
%% @spec (Red::float(),Green::float(),Blue::float()) -> ok
330
439
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
 
440
-spec color3f(float(),float(),float()) -> ok.
331
441
color3f(Red,Green,Blue) ->
332
 
  wxe_util:cast(5057, <<Red:?GLfloat,Green:?GLfloat,Blue:?GLfloat>>).
 
442
  cast(5057, <<Red:?GLfloat,Green:?GLfloat,Blue:?GLfloat>>).
333
443
 
334
444
%% @spec ({Red,Green,Blue}) -> ok
335
445
%% @equiv color3f(Red,Green,Blue)
 
446
-spec color3fv({float(),float(),float()}) -> ok.
336
447
color3fv({Red,Green,Blue}) ->  color3f(Red,Green,Blue).
337
448
 
338
449
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
339
450
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
 
451
-spec color3i(integer(),integer(),integer()) -> ok.
340
452
color3i(Red,Green,Blue) ->
341
 
  wxe_util:cast(5058, <<Red:?GLint,Green:?GLint,Blue:?GLint>>).
 
453
  cast(5058, <<Red:?GLint,Green:?GLint,Blue:?GLint>>).
342
454
 
343
455
%% @spec ({Red,Green,Blue}) -> ok
344
456
%% @equiv color3i(Red,Green,Blue)
 
457
-spec color3iv({integer(),integer(),integer()}) -> ok.
345
458
color3iv({Red,Green,Blue}) ->  color3i(Red,Green,Blue).
346
459
 
347
460
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
348
461
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
 
462
-spec color3s(integer(),integer(),integer()) -> ok.
349
463
color3s(Red,Green,Blue) ->
350
 
  wxe_util:cast(5059, <<Red:?GLshort,Green:?GLshort,Blue:?GLshort>>).
 
464
  cast(5059, <<Red:?GLshort,Green:?GLshort,Blue:?GLshort>>).
351
465
 
352
466
%% @spec ({Red,Green,Blue}) -> ok
353
467
%% @equiv color3s(Red,Green,Blue)
 
468
-spec color3sv({integer(),integer(),integer()}) -> ok.
354
469
color3sv({Red,Green,Blue}) ->  color3s(Red,Green,Blue).
355
470
 
356
471
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
357
472
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
 
473
-spec color3ub(integer(),integer(),integer()) -> ok.
358
474
color3ub(Red,Green,Blue) ->
359
 
  wxe_util:cast(5060, <<Red:?GLubyte,Green:?GLubyte,Blue:?GLubyte>>).
 
475
  cast(5060, <<Red:?GLubyte,Green:?GLubyte,Blue:?GLubyte>>).
360
476
 
361
477
%% @spec ({Red,Green,Blue}) -> ok
362
478
%% @equiv color3ub(Red,Green,Blue)
 
479
-spec color3ubv({integer(),integer(),integer()}) -> ok.
363
480
color3ubv({Red,Green,Blue}) ->  color3ub(Red,Green,Blue).
364
481
 
365
482
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
366
483
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
 
484
-spec color3ui(integer(),integer(),integer()) -> ok.
367
485
color3ui(Red,Green,Blue) ->
368
 
  wxe_util:cast(5061, <<Red:?GLuint,Green:?GLuint,Blue:?GLuint>>).
 
486
  cast(5061, <<Red:?GLuint,Green:?GLuint,Blue:?GLuint>>).
369
487
 
370
488
%% @spec ({Red,Green,Blue}) -> ok
371
489
%% @equiv color3ui(Red,Green,Blue)
 
490
-spec color3uiv({integer(),integer(),integer()}) -> ok.
372
491
color3uiv({Red,Green,Blue}) ->  color3ui(Red,Green,Blue).
373
492
 
374
493
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
375
494
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
 
495
-spec color3us(integer(),integer(),integer()) -> ok.
376
496
color3us(Red,Green,Blue) ->
377
 
  wxe_util:cast(5062, <<Red:?GLushort,Green:?GLushort,Blue:?GLushort>>).
 
497
  cast(5062, <<Red:?GLushort,Green:?GLushort,Blue:?GLushort>>).
378
498
 
379
499
%% @spec ({Red,Green,Blue}) -> ok
380
500
%% @equiv color3us(Red,Green,Blue)
 
501
-spec color3usv({integer(),integer(),integer()}) -> ok.
381
502
color3usv({Red,Green,Blue}) ->  color3us(Red,Green,Blue).
382
503
 
383
504
%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
384
505
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
 
506
-spec color4b(integer(),integer(),integer(),integer()) -> ok.
385
507
color4b(Red,Green,Blue,Alpha) ->
386
 
  wxe_util:cast(5063, <<Red:?GLbyte,Green:?GLbyte,Blue:?GLbyte,Alpha:?GLbyte>>).
 
508
  cast(5063, <<Red:?GLbyte,Green:?GLbyte,Blue:?GLbyte,Alpha:?GLbyte>>).
387
509
 
388
510
%% @spec ({Red,Green,Blue,Alpha}) -> ok
389
511
%% @equiv color4b(Red,Green,Blue,Alpha)
 
512
-spec color4bv({integer(),integer(),integer(),integer()}) -> ok.
390
513
color4bv({Red,Green,Blue,Alpha}) ->  color4b(Red,Green,Blue,Alpha).
391
514
 
392
515
%% @spec (Red::float(),Green::float(),Blue::float(),Alpha::float()) -> ok
393
516
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
 
517
-spec color4d(float(),float(),float(),float()) -> ok.
394
518
color4d(Red,Green,Blue,Alpha) ->
395
 
  wxe_util:cast(5064, <<Red:?GLdouble,Green:?GLdouble,Blue:?GLdouble,Alpha:?GLdouble>>).
 
519
  cast(5064, <<Red:?GLdouble,Green:?GLdouble,Blue:?GLdouble,Alpha:?GLdouble>>).
396
520
 
397
521
%% @spec ({Red,Green,Blue,Alpha}) -> ok
398
522
%% @equiv color4d(Red,Green,Blue,Alpha)
 
523
-spec color4dv({float(),float(),float(),float()}) -> ok.
399
524
color4dv({Red,Green,Blue,Alpha}) ->  color4d(Red,Green,Blue,Alpha).
400
525
 
401
526
%% @spec (Red::float(),Green::float(),Blue::float(),Alpha::float()) -> ok
402
527
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
 
528
-spec color4f(float(),float(),float(),float()) -> ok.
403
529
color4f(Red,Green,Blue,Alpha) ->
404
 
  wxe_util:cast(5065, <<Red:?GLfloat,Green:?GLfloat,Blue:?GLfloat,Alpha:?GLfloat>>).
 
530
  cast(5065, <<Red:?GLfloat,Green:?GLfloat,Blue:?GLfloat,Alpha:?GLfloat>>).
405
531
 
406
532
%% @spec ({Red,Green,Blue,Alpha}) -> ok
407
533
%% @equiv color4f(Red,Green,Blue,Alpha)
 
534
-spec color4fv({float(),float(),float(),float()}) -> ok.
408
535
color4fv({Red,Green,Blue,Alpha}) ->  color4f(Red,Green,Blue,Alpha).
409
536
 
410
537
%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
411
538
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
 
539
-spec color4i(integer(),integer(),integer(),integer()) -> ok.
412
540
color4i(Red,Green,Blue,Alpha) ->
413
 
  wxe_util:cast(5066, <<Red:?GLint,Green:?GLint,Blue:?GLint,Alpha:?GLint>>).
 
541
  cast(5066, <<Red:?GLint,Green:?GLint,Blue:?GLint,Alpha:?GLint>>).
414
542
 
415
543
%% @spec ({Red,Green,Blue,Alpha}) -> ok
416
544
%% @equiv color4i(Red,Green,Blue,Alpha)
 
545
-spec color4iv({integer(),integer(),integer(),integer()}) -> ok.
417
546
color4iv({Red,Green,Blue,Alpha}) ->  color4i(Red,Green,Blue,Alpha).
418
547
 
419
548
%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
420
549
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
 
550
-spec color4s(integer(),integer(),integer(),integer()) -> ok.
421
551
color4s(Red,Green,Blue,Alpha) ->
422
 
  wxe_util:cast(5067, <<Red:?GLshort,Green:?GLshort,Blue:?GLshort,Alpha:?GLshort>>).
 
552
  cast(5067, <<Red:?GLshort,Green:?GLshort,Blue:?GLshort,Alpha:?GLshort>>).
423
553
 
424
554
%% @spec ({Red,Green,Blue,Alpha}) -> ok
425
555
%% @equiv color4s(Red,Green,Blue,Alpha)
 
556
-spec color4sv({integer(),integer(),integer(),integer()}) -> ok.
426
557
color4sv({Red,Green,Blue,Alpha}) ->  color4s(Red,Green,Blue,Alpha).
427
558
 
428
559
%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
429
560
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
 
561
-spec color4ub(integer(),integer(),integer(),integer()) -> ok.
430
562
color4ub(Red,Green,Blue,Alpha) ->
431
 
  wxe_util:cast(5068, <<Red:?GLubyte,Green:?GLubyte,Blue:?GLubyte,Alpha:?GLubyte>>).
 
563
  cast(5068, <<Red:?GLubyte,Green:?GLubyte,Blue:?GLubyte,Alpha:?GLubyte>>).
432
564
 
433
565
%% @spec ({Red,Green,Blue,Alpha}) -> ok
434
566
%% @equiv color4ub(Red,Green,Blue,Alpha)
 
567
-spec color4ubv({integer(),integer(),integer(),integer()}) -> ok.
435
568
color4ubv({Red,Green,Blue,Alpha}) ->  color4ub(Red,Green,Blue,Alpha).
436
569
 
437
570
%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
438
571
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
 
572
-spec color4ui(integer(),integer(),integer(),integer()) -> ok.
439
573
color4ui(Red,Green,Blue,Alpha) ->
440
 
  wxe_util:cast(5069, <<Red:?GLuint,Green:?GLuint,Blue:?GLuint,Alpha:?GLuint>>).
 
574
  cast(5069, <<Red:?GLuint,Green:?GLuint,Blue:?GLuint,Alpha:?GLuint>>).
441
575
 
442
576
%% @spec ({Red,Green,Blue,Alpha}) -> ok
443
577
%% @equiv color4ui(Red,Green,Blue,Alpha)
 
578
-spec color4uiv({integer(),integer(),integer(),integer()}) -> ok.
444
579
color4uiv({Red,Green,Blue,Alpha}) ->  color4ui(Red,Green,Blue,Alpha).
445
580
 
446
581
%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
447
582
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
 
583
-spec color4us(integer(),integer(),integer(),integer()) -> ok.
448
584
color4us(Red,Green,Blue,Alpha) ->
449
 
  wxe_util:cast(5070, <<Red:?GLushort,Green:?GLushort,Blue:?GLushort,Alpha:?GLushort>>).
 
585
  cast(5070, <<Red:?GLushort,Green:?GLushort,Blue:?GLushort,Alpha:?GLushort>>).
450
586
 
451
587
%% @spec ({Red,Green,Blue,Alpha}) -> ok
452
588
%% @equiv color4us(Red,Green,Blue,Alpha)
 
589
-spec color4usv({integer(),integer(),integer(),integer()}) -> ok.
453
590
color4usv({Red,Green,Blue,Alpha}) ->  color4us(Red,Green,Blue,Alpha).
454
591
 
455
592
%% @spec (Red::0|1,Green::0|1,Blue::0|1,Alpha::0|1) -> ok
456
593
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorMask.xml">external</a> documentation.
 
594
-spec colorMask(0|1,0|1,0|1,0|1) -> ok.
457
595
colorMask(Red,Green,Blue,Alpha) ->
458
 
  wxe_util:cast(5071, <<Red:?GLboolean,Green:?GLboolean,Blue:?GLboolean,Alpha:?GLboolean>>).
 
596
  cast(5071, <<Red:?GLboolean,Green:?GLboolean,Blue:?GLboolean,Alpha:?GLboolean>>).
459
597
 
460
598
%% @spec (Face::enum(),Mode::enum()) -> ok
461
599
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorMaterial.xml">external</a> documentation.
 
600
-spec colorMaterial(enum(),enum()) -> ok.
462
601
colorMaterial(Face,Mode) ->
463
 
  wxe_util:cast(5072, <<Face:?GLenum,Mode:?GLenum>>).
 
602
  cast(5072, <<Face:?GLenum,Mode:?GLenum>>).
464
603
 
465
 
%% @spec (Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
 
604
%% @spec (Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|mem()) -> ok
466
605
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorPointer.xml">external</a> documentation.
 
606
-spec colorPointer(integer(),enum(),integer(),offset()|mem()) -> ok.
467
607
colorPointer(Size,Type,Stride,Pointer) when  is_integer(Pointer) ->
468
 
  wxe_util:cast(5073, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
 
608
  cast(5073, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
469
609
colorPointer(Size,Type,Stride,Pointer) ->
470
 
  wxe_util:send_bin(Pointer),
471
 
  wxe_util:cast(5074, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei>>).
 
610
  send_bin(Pointer),
 
611
  cast(5074, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei>>).
472
612
 
473
613
%% @spec (X::integer(),Y::integer(),Width::integer(),Height::integer(),Type::enum()) -> ok
474
614
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyPixels.xml">external</a> documentation.
 
615
-spec copyPixels(integer(),integer(),integer(),integer(),enum()) -> ok.
475
616
copyPixels(X,Y,Width,Height,Type) ->
476
 
  wxe_util:cast(5075, <<X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei,Type:?GLenum>>).
 
617
  cast(5075, <<X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei,Type:?GLenum>>).
477
618
 
478
619
%% @spec (Target::enum(),Level::integer(),InternalFormat::enum(),X::integer(),Y::integer(),Width::integer(),Border::integer()) -> ok
479
620
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyTexImage1D.xml">external</a> documentation.
 
621
-spec copyTexImage1D(enum(),integer(),enum(),integer(),integer(),integer(),integer()) -> ok.
480
622
copyTexImage1D(Target,Level,InternalFormat,X,Y,Width,Border) ->
481
 
  wxe_util:cast(5076, <<Target:?GLenum,Level:?GLint,InternalFormat:?GLenum,X:?GLint,Y:?GLint,Width:?GLsizei,Border:?GLint>>).
 
623
  cast(5076, <<Target:?GLenum,Level:?GLint,InternalFormat:?GLenum,X:?GLint,Y:?GLint,Width:?GLsizei,Border:?GLint>>).
482
624
 
483
625
%% @spec (Target::enum(),Level::integer(),InternalFormat::enum(),X::integer(),Y::integer(),Width::integer(),Height::integer(),Border::integer()) -> ok
484
626
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyTexImage2D.xml">external</a> documentation.
 
627
-spec copyTexImage2D(enum(),integer(),enum(),integer(),integer(),integer(),integer(),integer()) -> ok.
485
628
copyTexImage2D(Target,Level,InternalFormat,X,Y,Width,Height,Border) ->
486
 
  wxe_util:cast(5077, <<Target:?GLenum,Level:?GLint,InternalFormat:?GLenum,X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei,Border:?GLint>>).
 
629
  cast(5077, <<Target:?GLenum,Level:?GLint,InternalFormat:?GLenum,X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei,Border:?GLint>>).
487
630
 
488
631
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),X::integer(),Y::integer(),Width::integer()) -> ok
489
632
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyTexSubImage1D.xml">external</a> documentation.
 
633
-spec copyTexSubImage1D(enum(),integer(),integer(),integer(),integer(),integer()) -> ok.
490
634
copyTexSubImage1D(Target,Level,Xoffset,X,Y,Width) ->
491
 
  wxe_util:cast(5078, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,X:?GLint,Y:?GLint,Width:?GLsizei>>).
 
635
  cast(5078, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,X:?GLint,Y:?GLint,Width:?GLsizei>>).
492
636
 
493
637
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),X::integer(),Y::integer(),Width::integer(),Height::integer()) -> ok
494
638
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyTexSubImage2D.xml">external</a> documentation.
 
639
-spec copyTexSubImage2D(enum(),integer(),integer(),integer(),integer(),integer(),integer(),integer()) -> ok.
495
640
copyTexSubImage2D(Target,Level,Xoffset,Yoffset,X,Y,Width,Height) ->
496
 
  wxe_util:cast(5079, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei>>).
 
641
  cast(5079, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei>>).
497
642
 
498
643
%% @spec (Mode::enum()) -> ok
499
644
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCullFace.xml">external</a> documentation.
 
645
-spec cullFace(enum()) -> ok.
500
646
cullFace(Mode) ->
501
 
  wxe_util:cast(5080, <<Mode:?GLenum>>).
 
647
  cast(5080, <<Mode:?GLenum>>).
502
648
 
503
649
%% @spec (List::integer(),Range::integer()) -> ok
504
650
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteLists.xml">external</a> documentation.
 
651
-spec deleteLists(integer(),integer()) -> ok.
505
652
deleteLists(List,Range) ->
506
 
  wxe_util:cast(5081, <<List:?GLuint,Range:?GLsizei>>).
 
653
  cast(5081, <<List:?GLuint,Range:?GLsizei>>).
507
654
 
508
655
%% @spec (Textures::[integer()]) -> ok
509
656
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteTextures.xml">external</a> documentation.
 
657
-spec deleteTextures([integer()]) -> ok.
510
658
deleteTextures(Textures) ->
511
 
  wxe_util:cast(5082, <<(length(Textures)):?GLuint,
 
659
  cast(5082, <<(length(Textures)):?GLuint,
512
660
        (<< <<C:?GLuint>> || C <- Textures>>)/binary,0:(((1+length(Textures)) rem 2)*32)>>).
513
661
 
514
662
%% @spec (Func::enum()) -> ok
515
663
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDepthFunc.xml">external</a> documentation.
 
664
-spec depthFunc(enum()) -> ok.
516
665
depthFunc(Func) ->
517
 
  wxe_util:cast(5083, <<Func:?GLenum>>).
 
666
  cast(5083, <<Func:?GLenum>>).
518
667
 
519
668
%% @spec (Flag::0|1) -> ok
520
669
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDepthMask.xml">external</a> documentation.
 
670
-spec depthMask(0|1) -> ok.
521
671
depthMask(Flag) ->
522
 
  wxe_util:cast(5084, <<Flag:?GLboolean>>).
 
672
  cast(5084, <<Flag:?GLboolean>>).
523
673
 
524
674
%% @spec (ZNear::clamp(),ZFar::clamp()) -> ok
525
675
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDepthRange.xml">external</a> documentation.
 
676
-spec depthRange(clamp(),clamp()) -> ok.
526
677
depthRange(ZNear,ZFar) ->
527
 
  wxe_util:cast(5085, <<ZNear:?GLclampd,ZFar:?GLclampd>>).
 
678
  cast(5085, <<ZNear:?GLclampd,ZFar:?GLclampd>>).
528
679
 
529
680
%% @spec (Cap::enum()) -> ok
530
681
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDisable.xml">external</a> documentation.
 
682
-spec disable(enum()) -> ok.
531
683
disable(Cap) ->
532
 
  wxe_util:cast(5086, <<Cap:?GLenum>>).
 
684
  cast(5086, <<Cap:?GLenum>>).
533
685
 
534
686
%% @spec (Array::enum()) -> ok
535
687
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDisableClientState.xml">external</a> documentation.
 
688
-spec disableClientState(enum()) -> ok.
536
689
disableClientState(Array) ->
537
 
  wxe_util:cast(5087, <<Array:?GLenum>>).
 
690
  cast(5087, <<Array:?GLenum>>).
538
691
 
539
692
%% @spec (Mode::enum(),First::integer(),Count::integer()) -> ok
540
693
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawArrays.xml">external</a> documentation.
 
694
-spec drawArrays(enum(),integer(),integer()) -> ok.
541
695
drawArrays(Mode,First,Count) ->
542
 
  wxe_util:cast(5088, <<Mode:?GLenum,First:?GLint,Count:?GLsizei>>).
 
696
  cast(5088, <<Mode:?GLenum,First:?GLint,Count:?GLsizei>>).
543
697
 
544
698
%% @spec (Mode::enum()) -> ok
545
699
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawBuffer.xml">external</a> documentation.
 
700
-spec drawBuffer(enum()) -> ok.
546
701
drawBuffer(Mode) ->
547
 
  wxe_util:cast(5089, <<Mode:?GLenum>>).
 
702
  cast(5089, <<Mode:?GLenum>>).
548
703
 
549
 
%% @spec (Mode::enum(),Count::integer(),Type::enum(),Indices::offset()|binary()) -> ok
 
704
%% @spec (Mode::enum(),Count::integer(),Type::enum(),Indices::offset()|mem()) -> ok
550
705
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawElements.xml">external</a> documentation.
 
706
-spec drawElements(enum(),integer(),enum(),offset()|mem()) -> ok.
551
707
drawElements(Mode,Count,Type,Indices) when  is_integer(Indices) ->
552
 
  wxe_util:cast(5090, <<Mode:?GLenum,Count:?GLsizei,Type:?GLenum,Indices:?GLuint>>);
 
708
  cast(5090, <<Mode:?GLenum,Count:?GLsizei,Type:?GLenum,Indices:?GLuint>>);
553
709
drawElements(Mode,Count,Type,Indices) ->
554
 
  wxe_util:send_bin(Indices),
555
 
  wxe_util:cast(5091, <<Mode:?GLenum,Count:?GLsizei,Type:?GLenum>>).
 
710
  send_bin(Indices),
 
711
  cast(5091, <<Mode:?GLenum,Count:?GLsizei,Type:?GLenum>>).
556
712
 
557
 
%% @spec (Width::integer(),Height::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
 
713
%% @spec (Width::integer(),Height::integer(),Format::enum(),Type::enum(),Pixels::offset()|mem()) -> ok
558
714
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawPixels.xml">external</a> documentation.
 
715
-spec drawPixels(integer(),integer(),enum(),enum(),offset()|mem()) -> ok.
559
716
drawPixels(Width,Height,Format,Type,Pixels) when  is_integer(Pixels) ->
560
 
  wxe_util:cast(5092, <<Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
 
717
  cast(5092, <<Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
561
718
drawPixels(Width,Height,Format,Type,Pixels) ->
562
 
  wxe_util:send_bin(Pixels),
563
 
  wxe_util:cast(5093, <<Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum>>).
 
719
  send_bin(Pixels),
 
720
  cast(5093, <<Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum>>).
564
721
 
565
722
%% @spec (Flag::0|1) -> ok
566
723
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEdgeFlag.xml">external</a> documentation.
 
724
-spec edgeFlag(0|1) -> ok.
567
725
edgeFlag(Flag) ->
568
 
  wxe_util:cast(5094, <<Flag:?GLboolean>>).
 
726
  cast(5094, <<Flag:?GLboolean>>).
569
727
 
570
 
%% @spec (Stride::integer(),Pointer::offset()|binary()) -> ok
 
728
%% @spec (Stride::integer(),Pointer::offset()|mem()) -> ok
571
729
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEdgeFlagPointer.xml">external</a> documentation.
 
730
-spec edgeFlagPointer(integer(),offset()|mem()) -> ok.
572
731
edgeFlagPointer(Stride,Pointer) when  is_integer(Pointer) ->
573
 
  wxe_util:cast(5095, <<Stride:?GLsizei,Pointer:?GLuint>>);
 
732
  cast(5095, <<Stride:?GLsizei,Pointer:?GLuint>>);
574
733
edgeFlagPointer(Stride,Pointer) ->
575
 
  wxe_util:send_bin(Pointer),
576
 
  wxe_util:cast(5096, <<Stride:?GLsizei>>).
 
734
  send_bin(Pointer),
 
735
  cast(5096, <<Stride:?GLsizei>>).
577
736
 
578
737
%% @spec ({Flag}) -> ok
579
738
%% @equiv edgeFlag(Flag)
 
739
-spec edgeFlagv({0|1}) -> ok.
580
740
edgeFlagv({Flag}) ->  edgeFlag(Flag).
581
741
 
582
742
%% @spec (Cap::enum()) -> ok
583
743
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEnable.xml">external</a> documentation.
 
744
-spec enable(enum()) -> ok.
584
745
enable(Cap) ->
585
 
  wxe_util:cast(5097, <<Cap:?GLenum>>).
 
746
  cast(5097, <<Cap:?GLenum>>).
586
747
 
587
748
%% @spec (Array::enum()) -> ok
588
749
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEnableClientState.xml">external</a> documentation.
 
750
-spec enableClientState(enum()) -> ok.
589
751
enableClientState(Array) ->
590
 
  wxe_util:cast(5098, <<Array:?GLenum>>).
 
752
  cast(5098, <<Array:?GLenum>>).
591
753
 
592
754
%% @spec () -> ok
593
755
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEnd.xml">external</a> documentation.
 
756
-spec 'end'() -> ok.
594
757
'end'() ->
595
 
  wxe_util:cast(5099, <<>>).
 
758
  cast(5099, <<>>).
596
759
 
597
760
%% @spec () -> ok
598
761
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEndList.xml">external</a> documentation.
 
762
-spec endList() -> ok.
599
763
endList() ->
600
 
  wxe_util:cast(5100, <<>>).
 
764
  cast(5100, <<>>).
601
765
 
602
766
%% @spec (U::float()) -> ok
603
767
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalCoord.xml">external</a> documentation.
 
768
-spec evalCoord1d(float()) -> ok.
604
769
evalCoord1d(U) ->
605
 
  wxe_util:cast(5101, <<U:?GLdouble>>).
 
770
  cast(5101, <<U:?GLdouble>>).
606
771
 
607
772
%% @spec ({U}) -> ok
608
773
%% @equiv evalCoord1d(U)
 
774
-spec evalCoord1dv({float()}) -> ok.
609
775
evalCoord1dv({U}) ->  evalCoord1d(U).
610
776
 
611
777
%% @spec (U::float()) -> ok
612
778
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalCoord.xml">external</a> documentation.
 
779
-spec evalCoord1f(float()) -> ok.
613
780
evalCoord1f(U) ->
614
 
  wxe_util:cast(5102, <<U:?GLfloat>>).
 
781
  cast(5102, <<U:?GLfloat>>).
615
782
 
616
783
%% @spec ({U}) -> ok
617
784
%% @equiv evalCoord1f(U)
 
785
-spec evalCoord1fv({float()}) -> ok.
618
786
evalCoord1fv({U}) ->  evalCoord1f(U).
619
787
 
620
788
%% @spec (U::float(),V::float()) -> ok
621
789
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalCoord.xml">external</a> documentation.
 
790
-spec evalCoord2d(float(),float()) -> ok.
622
791
evalCoord2d(U,V) ->
623
 
  wxe_util:cast(5103, <<U:?GLdouble,V:?GLdouble>>).
 
792
  cast(5103, <<U:?GLdouble,V:?GLdouble>>).
624
793
 
625
794
%% @spec ({U,V}) -> ok
626
795
%% @equiv evalCoord2d(U,V)
 
796
-spec evalCoord2dv({float(),float()}) -> ok.
627
797
evalCoord2dv({U,V}) ->  evalCoord2d(U,V).
628
798
 
629
799
%% @spec (U::float(),V::float()) -> ok
630
800
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalCoord.xml">external</a> documentation.
 
801
-spec evalCoord2f(float(),float()) -> ok.
631
802
evalCoord2f(U,V) ->
632
 
  wxe_util:cast(5104, <<U:?GLfloat,V:?GLfloat>>).
 
803
  cast(5104, <<U:?GLfloat,V:?GLfloat>>).
633
804
 
634
805
%% @spec ({U,V}) -> ok
635
806
%% @equiv evalCoord2f(U,V)
 
807
-spec evalCoord2fv({float(),float()}) -> ok.
636
808
evalCoord2fv({U,V}) ->  evalCoord2f(U,V).
637
809
 
638
810
%% @spec (Mode::enum(),I1::integer(),I2::integer()) -> ok
639
811
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalMesh.xml">external</a> documentation.
 
812
-spec evalMesh1(enum(),integer(),integer()) -> ok.
640
813
evalMesh1(Mode,I1,I2) ->
641
 
  wxe_util:cast(5105, <<Mode:?GLenum,I1:?GLint,I2:?GLint>>).
 
814
  cast(5105, <<Mode:?GLenum,I1:?GLint,I2:?GLint>>).
642
815
 
643
816
%% @spec (Mode::enum(),I1::integer(),I2::integer(),J1::integer(),J2::integer()) -> ok
644
817
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalMesh.xml">external</a> documentation.
 
818
-spec evalMesh2(enum(),integer(),integer(),integer(),integer()) -> ok.
645
819
evalMesh2(Mode,I1,I2,J1,J2) ->
646
 
  wxe_util:cast(5106, <<Mode:?GLenum,I1:?GLint,I2:?GLint,J1:?GLint,J2:?GLint>>).
 
820
  cast(5106, <<Mode:?GLenum,I1:?GLint,I2:?GLint,J1:?GLint,J2:?GLint>>).
647
821
 
648
822
%% @spec (I::integer()) -> ok
649
823
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalPoint.xml">external</a> documentation.
 
824
-spec evalPoint1(integer()) -> ok.
650
825
evalPoint1(I) ->
651
 
  wxe_util:cast(5107, <<I:?GLint>>).
 
826
  cast(5107, <<I:?GLint>>).
652
827
 
653
828
%% @spec (I::integer(),J::integer()) -> ok
654
829
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalPoint.xml">external</a> documentation.
 
830
-spec evalPoint2(integer(),integer()) -> ok.
655
831
evalPoint2(I,J) ->
656
 
  wxe_util:cast(5108, <<I:?GLint,J:?GLint>>).
 
832
  cast(5108, <<I:?GLint,J:?GLint>>).
657
833
 
658
 
%% @spec (Size::integer(),Type::enum(),Buffer::wx:wx_mem()) -> ok
 
834
%% @spec (Size::integer(),Type::enum(),Buffer::mem()) -> ok
659
835
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFeedbackBuffer.xml">external</a> documentation.
 
836
-spec feedbackBuffer(integer(),enum(),mem()) -> ok.
660
837
feedbackBuffer(Size,Type,Buffer) ->
661
 
  wxe_util:send_bin(Buffer#wx_mem.bin),
662
 
  wxe_util:call(5109, <<Size:?GLsizei,Type:?GLenum>>).
 
838
  send_bin(Buffer),
 
839
  call(5109, <<Size:?GLsizei,Type:?GLenum>>).
663
840
 
664
841
%% @spec () -> ok
665
842
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFinish.xml">external</a> documentation.
 
843
-spec finish() -> ok.
666
844
finish() ->
667
 
  wxe_util:cast(5110, <<>>).
 
845
  cast(5110, <<>>).
668
846
 
669
847
%% @spec () -> ok
670
848
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFlush.xml">external</a> documentation.
 
849
-spec flush() -> ok.
671
850
flush() ->
672
 
  wxe_util:cast(5111, <<>>).
 
851
  cast(5111, <<>>).
673
852
 
674
853
%% @spec (Pname::enum(),Param::float()) -> ok
675
854
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFog.xml">external</a> documentation.
 
855
-spec fogf(enum(),float()) -> ok.
676
856
fogf(Pname,Param) ->
677
 
  wxe_util:cast(5112, <<Pname:?GLenum,Param:?GLfloat>>).
 
857
  cast(5112, <<Pname:?GLenum,Param:?GLfloat>>).
678
858
 
679
859
%% @spec (Pname::enum(),Params::{float()}) -> ok
680
860
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFog.xml">external</a> documentation.
 
861
-spec fogfv(enum(),{float()}) -> ok.
681
862
fogfv(Pname,Params) ->
682
 
  wxe_util:cast(5113, <<Pname:?GLenum,(size(Params)):?GLuint,
 
863
  cast(5113, <<Pname:?GLenum,(size(Params)):?GLuint,
683
864
      (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>).
684
865
 
685
866
%% @spec (Pname::enum(),Param::integer()) -> ok
686
867
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFog.xml">external</a> documentation.
 
868
-spec fogi(enum(),integer()) -> ok.
687
869
fogi(Pname,Param) ->
688
 
  wxe_util:cast(5114, <<Pname:?GLenum,Param:?GLint>>).
 
870
  cast(5114, <<Pname:?GLenum,Param:?GLint>>).
689
871
 
690
872
%% @spec (Pname::enum(),Params::{integer()}) -> ok
691
873
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFog.xml">external</a> documentation.
 
874
-spec fogiv(enum(),{integer()}) -> ok.
692
875
fogiv(Pname,Params) ->
693
 
  wxe_util:cast(5115, <<Pname:?GLenum,(size(Params)):?GLuint,
 
876
  cast(5115, <<Pname:?GLenum,(size(Params)):?GLuint,
694
877
      (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>).
695
878
 
696
879
%% @spec (Mode::enum()) -> ok
697
880
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFrontFace.xml">external</a> documentation.
 
881
-spec frontFace(enum()) -> ok.
698
882
frontFace(Mode) ->
699
 
  wxe_util:cast(5116, <<Mode:?GLenum>>).
 
883
  cast(5116, <<Mode:?GLenum>>).
700
884
 
701
885
%% @spec (Left::float(),Right::float(),Bottom::float(),Top::float(),ZNear::float(),ZFar::float()) -> ok
702
886
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFrustum.xml">external</a> documentation.
 
887
-spec frustum(float(),float(),float(),float(),float(),float()) -> ok.
703
888
frustum(Left,Right,Bottom,Top,ZNear,ZFar) ->
704
 
  wxe_util:cast(5117, <<Left:?GLdouble,Right:?GLdouble,Bottom:?GLdouble,Top:?GLdouble,ZNear:?GLdouble,ZFar:?GLdouble>>).
 
889
  cast(5117, <<Left:?GLdouble,Right:?GLdouble,Bottom:?GLdouble,Top:?GLdouble,ZNear:?GLdouble,ZFar:?GLdouble>>).
705
890
 
706
891
%% @spec (Range::integer()) -> integer()
707
892
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenLists.xml">external</a> documentation.
 
893
-spec genLists(integer()) -> integer().
708
894
genLists(Range) ->
709
 
  wxe_util:call(5118, <<Range:?GLsizei>>).
 
895
  call(5118, <<Range:?GLsizei>>).
710
896
 
711
897
%% @spec (N::integer()) -> [integer()]
712
898
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenTextures.xml">external</a> documentation.
 
899
-spec genTextures(integer()) -> [integer()].
713
900
genTextures(N) ->
714
 
  wxe_util:call(5119, <<N:?GLsizei>>).
 
901
  call(5119, <<N:?GLsizei>>).
715
902
 
716
903
%% @spec (Pname::enum()) -> [0|1]
717
904
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetBooleanv.xml">external</a> documentation.
 
905
-spec getBooleanv(enum()) -> [0|1].
718
906
getBooleanv(Pname) ->
719
 
  wxe_util:call(5120, <<Pname:?GLenum>>).
 
907
  call(5120, <<Pname:?GLenum>>).
720
908
 
721
 
%% @spec (Plane::enum()) -> {float()}
 
909
%% @spec (Plane::enum()) -> {float(),float(),float(),float()}
722
910
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetClipPlane.xml">external</a> documentation.
 
911
-spec getClipPlane(enum()) -> {float(),float(),float(),float()}.
723
912
getClipPlane(Plane) ->
724
 
  wxe_util:call(5121, <<Plane:?GLenum>>).
 
913
  call(5121, <<Plane:?GLenum>>).
725
914
 
726
915
%% @spec (Pname::enum()) -> [float()]
727
916
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetDoublev.xml">external</a> documentation.
 
917
-spec getDoublev(enum()) -> [float()].
728
918
getDoublev(Pname) ->
729
 
  wxe_util:call(5122, <<Pname:?GLenum>>).
 
919
  call(5122, <<Pname:?GLenum>>).
730
920
 
731
921
%% @spec () -> enum()
732
922
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetError.xml">external</a> documentation.
 
923
-spec getError() -> enum().
733
924
getError() ->
734
 
  wxe_util:call(5123, <<>>).
 
925
  call(5123, <<>>).
735
926
 
736
927
%% @spec (Pname::enum()) -> [float()]
737
928
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetFloatv.xml">external</a> documentation.
 
929
-spec getFloatv(enum()) -> [float()].
738
930
getFloatv(Pname) ->
739
 
  wxe_util:call(5124, <<Pname:?GLenum>>).
 
931
  call(5124, <<Pname:?GLenum>>).
740
932
 
741
933
%% @spec (Pname::enum()) -> [integer()]
742
934
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetIntegerv.xml">external</a> documentation.
 
935
-spec getIntegerv(enum()) -> [integer()].
743
936
getIntegerv(Pname) ->
744
 
  wxe_util:call(5125, <<Pname:?GLenum>>).
 
937
  call(5125, <<Pname:?GLenum>>).
745
938
 
746
 
%% @spec (Light::enum(),Pname::enum()) -> {float()}
 
939
%% @spec (Light::enum(),Pname::enum()) -> {float(),float(),float(),float()}
747
940
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetLight.xml">external</a> documentation.
 
941
-spec getLightfv(enum(),enum()) -> {float(),float(),float(),float()}.
748
942
getLightfv(Light,Pname) ->
749
 
  wxe_util:call(5126, <<Light:?GLenum,Pname:?GLenum>>).
 
943
  call(5126, <<Light:?GLenum,Pname:?GLenum>>).
750
944
 
751
 
%% @spec (Light::enum(),Pname::enum()) -> {integer()}
 
945
%% @spec (Light::enum(),Pname::enum()) -> {integer(),integer(),integer(),integer()}
752
946
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetLight.xml">external</a> documentation.
 
947
-spec getLightiv(enum(),enum()) -> {integer(),integer(),integer(),integer()}.
753
948
getLightiv(Light,Pname) ->
754
 
  wxe_util:call(5127, <<Light:?GLenum,Pname:?GLenum>>).
 
949
  call(5127, <<Light:?GLenum,Pname:?GLenum>>).
755
950
 
756
 
%% @spec (Target::enum(),Query::enum(),V::wx:wx_mem()) -> ok
 
951
%% @spec (Target::enum(),Query::enum(),V::mem()) -> ok
757
952
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMap.xml">external</a> documentation.
 
953
-spec getMapdv(enum(),enum(),mem()) -> ok.
758
954
getMapdv(Target,Query,V) ->
759
 
  wxe_util:send_bin(V#wx_mem.bin),
760
 
  wxe_util:call(5128, <<Target:?GLenum,Query:?GLenum>>).
 
955
  send_bin(V),
 
956
  call(5128, <<Target:?GLenum,Query:?GLenum>>).
761
957
 
762
 
%% @spec (Target::enum(),Query::enum(),V::wx:wx_mem()) -> ok
 
958
%% @spec (Target::enum(),Query::enum(),V::mem()) -> ok
763
959
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMap.xml">external</a> documentation.
 
960
-spec getMapfv(enum(),enum(),mem()) -> ok.
764
961
getMapfv(Target,Query,V) ->
765
 
  wxe_util:send_bin(V#wx_mem.bin),
766
 
  wxe_util:call(5129, <<Target:?GLenum,Query:?GLenum>>).
 
962
  send_bin(V),
 
963
  call(5129, <<Target:?GLenum,Query:?GLenum>>).
767
964
 
768
 
%% @spec (Target::enum(),Query::enum(),V::wx:wx_mem()) -> ok
 
965
%% @spec (Target::enum(),Query::enum(),V::mem()) -> ok
769
966
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMap.xml">external</a> documentation.
 
967
-spec getMapiv(enum(),enum(),mem()) -> ok.
770
968
getMapiv(Target,Query,V) ->
771
 
  wxe_util:send_bin(V#wx_mem.bin),
772
 
  wxe_util:call(5130, <<Target:?GLenum,Query:?GLenum>>).
 
969
  send_bin(V),
 
970
  call(5130, <<Target:?GLenum,Query:?GLenum>>).
773
971
 
774
 
%% @spec (Face::enum(),Pname::enum()) -> {float()}
 
972
%% @spec (Face::enum(),Pname::enum()) -> {float(),float(),float(),float()}
775
973
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMaterial.xml">external</a> documentation.
 
974
-spec getMaterialfv(enum(),enum()) -> {float(),float(),float(),float()}.
776
975
getMaterialfv(Face,Pname) ->
777
 
  wxe_util:call(5131, <<Face:?GLenum,Pname:?GLenum>>).
 
976
  call(5131, <<Face:?GLenum,Pname:?GLenum>>).
778
977
 
779
 
%% @spec (Face::enum(),Pname::enum()) -> {integer()}
 
978
%% @spec (Face::enum(),Pname::enum()) -> {integer(),integer(),integer(),integer()}
780
979
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMaterial.xml">external</a> documentation.
 
980
-spec getMaterialiv(enum(),enum()) -> {integer(),integer(),integer(),integer()}.
781
981
getMaterialiv(Face,Pname) ->
782
 
  wxe_util:call(5132, <<Face:?GLenum,Pname:?GLenum>>).
 
982
  call(5132, <<Face:?GLenum,Pname:?GLenum>>).
783
983
 
784
 
%% @spec (Map::enum(),Values::wx:wx_mem()) -> ok
 
984
%% @spec (Map::enum(),Values::mem()) -> ok
785
985
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetPixelMap.xml">external</a> documentation.
 
986
-spec getPixelMapfv(enum(),mem()) -> ok.
786
987
getPixelMapfv(Map,Values) ->
787
 
  wxe_util:send_bin(Values#wx_mem.bin),
788
 
  wxe_util:call(5133, <<Map:?GLenum>>).
 
988
  send_bin(Values),
 
989
  call(5133, <<Map:?GLenum>>).
789
990
 
790
 
%% @spec (Map::enum(),Values::wx:wx_mem()) -> ok
 
991
%% @spec (Map::enum(),Values::mem()) -> ok
791
992
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetPixelMap.xml">external</a> documentation.
 
993
-spec getPixelMapuiv(enum(),mem()) -> ok.
792
994
getPixelMapuiv(Map,Values) ->
793
 
  wxe_util:send_bin(Values#wx_mem.bin),
794
 
  wxe_util:call(5134, <<Map:?GLenum>>).
 
995
  send_bin(Values),
 
996
  call(5134, <<Map:?GLenum>>).
795
997
 
796
 
%% @spec (Map::enum(),Values::wx:wx_mem()) -> ok
 
998
%% @spec (Map::enum(),Values::mem()) -> ok
797
999
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetPixelMap.xml">external</a> documentation.
 
1000
-spec getPixelMapusv(enum(),mem()) -> ok.
798
1001
getPixelMapusv(Map,Values) ->
799
 
  wxe_util:send_bin(Values#wx_mem.bin),
800
 
  wxe_util:call(5135, <<Map:?GLenum>>).
 
1002
  send_bin(Values),
 
1003
  call(5135, <<Map:?GLenum>>).
801
1004
 
802
1005
%% @spec () -> binary()
803
1006
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetPolygonStipple.xml">external</a> documentation.
 
1007
-spec getPolygonStipple() -> binary().
804
1008
getPolygonStipple() ->
805
 
  wxe_util:call(5136, <<>>).
 
1009
  call(5136, <<>>).
806
1010
 
807
1011
%% @spec (Name::enum()) -> string()
808
1012
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetString.xml">external</a> documentation.
 
1013
-spec getString(enum()) -> string().
809
1014
getString(Name) ->
810
 
  wxe_util:call(5137, <<Name:?GLenum>>).
 
1015
  call(5137, <<Name:?GLenum>>).
811
1016
 
812
 
%% @spec (Target::enum(),Pname::enum()) -> {float()}
 
1017
%% @spec (Target::enum(),Pname::enum()) -> {float(),float(),float(),float()}
813
1018
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexEnv.xml">external</a> documentation.
 
1019
-spec getTexEnvfv(enum(),enum()) -> {float(),float(),float(),float()}.
814
1020
getTexEnvfv(Target,Pname) ->
815
 
  wxe_util:call(5138, <<Target:?GLenum,Pname:?GLenum>>).
 
1021
  call(5138, <<Target:?GLenum,Pname:?GLenum>>).
816
1022
 
817
 
%% @spec (Target::enum(),Pname::enum()) -> {integer()}
 
1023
%% @spec (Target::enum(),Pname::enum()) -> {integer(),integer(),integer(),integer()}
818
1024
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexEnv.xml">external</a> documentation.
 
1025
-spec getTexEnviv(enum(),enum()) -> {integer(),integer(),integer(),integer()}.
819
1026
getTexEnviv(Target,Pname) ->
820
 
  wxe_util:call(5139, <<Target:?GLenum,Pname:?GLenum>>).
 
1027
  call(5139, <<Target:?GLenum,Pname:?GLenum>>).
821
1028
 
822
 
%% @spec (Coord::enum(),Pname::enum()) -> {float()}
 
1029
%% @spec (Coord::enum(),Pname::enum()) -> {float(),float(),float(),float()}
823
1030
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexGen.xml">external</a> documentation.
 
1031
-spec getTexGendv(enum(),enum()) -> {float(),float(),float(),float()}.
824
1032
getTexGendv(Coord,Pname) ->
825
 
  wxe_util:call(5140, <<Coord:?GLenum,Pname:?GLenum>>).
 
1033
  call(5140, <<Coord:?GLenum,Pname:?GLenum>>).
826
1034
 
827
 
%% @spec (Coord::enum(),Pname::enum()) -> {float()}
 
1035
%% @spec (Coord::enum(),Pname::enum()) -> {float(),float(),float(),float()}
828
1036
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexGen.xml">external</a> documentation.
 
1037
-spec getTexGenfv(enum(),enum()) -> {float(),float(),float(),float()}.
829
1038
getTexGenfv(Coord,Pname) ->
830
 
  wxe_util:call(5141, <<Coord:?GLenum,Pname:?GLenum>>).
 
1039
  call(5141, <<Coord:?GLenum,Pname:?GLenum>>).
831
1040
 
832
 
%% @spec (Coord::enum(),Pname::enum()) -> {integer()}
 
1041
%% @spec (Coord::enum(),Pname::enum()) -> {integer(),integer(),integer(),integer()}
833
1042
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexGen.xml">external</a> documentation.
 
1043
-spec getTexGeniv(enum(),enum()) -> {integer(),integer(),integer(),integer()}.
834
1044
getTexGeniv(Coord,Pname) ->
835
 
  wxe_util:call(5142, <<Coord:?GLenum,Pname:?GLenum>>).
 
1045
  call(5142, <<Coord:?GLenum,Pname:?GLenum>>).
836
1046
 
837
 
%% @spec (Target::enum(),Level::integer(),Format::enum(),Type::enum(),Pixels::wx:wx_mem()) -> ok
 
1047
%% @spec (Target::enum(),Level::integer(),Format::enum(),Type::enum(),Pixels::mem()) -> ok
838
1048
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexImage.xml">external</a> documentation.
 
1049
-spec getTexImage(enum(),integer(),enum(),enum(),mem()) -> ok.
839
1050
getTexImage(Target,Level,Format,Type,Pixels) ->
840
 
  wxe_util:send_bin(Pixels#wx_mem.bin),
841
 
  wxe_util:call(5143, <<Target:?GLenum,Level:?GLint,Format:?GLenum,Type:?GLenum>>).
 
1051
  send_bin(Pixels),
 
1052
  call(5143, <<Target:?GLenum,Level:?GLint,Format:?GLenum,Type:?GLenum>>).
842
1053
 
843
1054
%% @spec (Target::enum(),Level::integer(),Pname::enum()) -> {float()}
844
1055
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexLevelParameter.xml">external</a> documentation.
 
1056
-spec getTexLevelParameterfv(enum(),integer(),enum()) -> {float()}.
845
1057
getTexLevelParameterfv(Target,Level,Pname) ->
846
 
  wxe_util:call(5144, <<Target:?GLenum,Level:?GLint,Pname:?GLenum>>).
 
1058
  call(5144, <<Target:?GLenum,Level:?GLint,Pname:?GLenum>>).
847
1059
 
848
1060
%% @spec (Target::enum(),Level::integer(),Pname::enum()) -> {integer()}
849
1061
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexLevelParameter.xml">external</a> documentation.
 
1062
-spec getTexLevelParameteriv(enum(),integer(),enum()) -> {integer()}.
850
1063
getTexLevelParameteriv(Target,Level,Pname) ->
851
 
  wxe_util:call(5145, <<Target:?GLenum,Level:?GLint,Pname:?GLenum>>).
 
1064
  call(5145, <<Target:?GLenum,Level:?GLint,Pname:?GLenum>>).
852
1065
 
853
 
%% @spec (Target::enum(),Pname::enum()) -> {float()}
 
1066
%% @spec (Target::enum(),Pname::enum()) -> {float(),float(),float(),float()}
854
1067
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexParameter.xml">external</a> documentation.
 
1068
-spec getTexParameterfv(enum(),enum()) -> {float(),float(),float(),float()}.
855
1069
getTexParameterfv(Target,Pname) ->
856
 
  wxe_util:call(5146, <<Target:?GLenum,Pname:?GLenum>>).
 
1070
  call(5146, <<Target:?GLenum,Pname:?GLenum>>).
857
1071
 
858
 
%% @spec (Target::enum(),Pname::enum()) -> {integer()}
 
1072
%% @spec (Target::enum(),Pname::enum()) -> {integer(),integer(),integer(),integer()}
859
1073
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexParameter.xml">external</a> documentation.
 
1074
-spec getTexParameteriv(enum(),enum()) -> {integer(),integer(),integer(),integer()}.
860
1075
getTexParameteriv(Target,Pname) ->
861
 
  wxe_util:call(5147, <<Target:?GLenum,Pname:?GLenum>>).
 
1076
  call(5147, <<Target:?GLenum,Pname:?GLenum>>).
862
1077
 
863
1078
%% @spec (Target::enum(),Mode::enum()) -> ok
864
1079
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glHint.xml">external</a> documentation.
 
1080
-spec hint(enum(),enum()) -> ok.
865
1081
hint(Target,Mode) ->
866
 
  wxe_util:cast(5148, <<Target:?GLenum,Mode:?GLenum>>).
 
1082
  cast(5148, <<Target:?GLenum,Mode:?GLenum>>).
867
1083
 
868
1084
%% @spec (Mask::integer()) -> ok
869
1085
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIndexMask.xml">external</a> documentation.
 
1086
-spec indexMask(integer()) -> ok.
870
1087
indexMask(Mask) ->
871
 
  wxe_util:cast(5149, <<Mask:?GLuint>>).
 
1088
  cast(5149, <<Mask:?GLuint>>).
872
1089
 
873
 
%% @spec (Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
 
1090
%% @spec (Type::enum(),Stride::integer(),Pointer::offset()|mem()) -> ok
874
1091
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIndexPointer.xml">external</a> documentation.
 
1092
-spec indexPointer(enum(),integer(),offset()|mem()) -> ok.
875
1093
indexPointer(Type,Stride,Pointer) when  is_integer(Pointer) ->
876
 
  wxe_util:cast(5150, <<Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
 
1094
  cast(5150, <<Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
877
1095
indexPointer(Type,Stride,Pointer) ->
878
 
  wxe_util:send_bin(Pointer),
879
 
  wxe_util:cast(5151, <<Type:?GLenum,Stride:?GLsizei>>).
 
1096
  send_bin(Pointer),
 
1097
  cast(5151, <<Type:?GLenum,Stride:?GLsizei>>).
880
1098
 
881
1099
%% @spec (C::float()) -> ok
882
1100
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIndex.xml">external</a> documentation.
 
1101
-spec indexd(float()) -> ok.
883
1102
indexd(C) ->
884
 
  wxe_util:cast(5152, <<C:?GLdouble>>).
 
1103
  cast(5152, <<C:?GLdouble>>).
885
1104
 
886
1105
%% @spec ({C}) -> ok
887
1106
%% @equiv indexd(C)
 
1107
-spec indexdv({float()}) -> ok.
888
1108
indexdv({C}) ->  indexd(C).
889
1109
 
890
1110
%% @spec (C::float()) -> ok
891
1111
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIndex.xml">external</a> documentation.
 
1112
-spec indexf(float()) -> ok.
892
1113
indexf(C) ->
893
 
  wxe_util:cast(5153, <<C:?GLfloat>>).
 
1114
  cast(5153, <<C:?GLfloat>>).
894
1115
 
895
1116
%% @spec ({C}) -> ok
896
1117
%% @equiv indexf(C)
 
1118
-spec indexfv({float()}) -> ok.
897
1119
indexfv({C}) ->  indexf(C).
898
1120
 
899
1121
%% @spec (C::integer()) -> ok
900
1122
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIndex.xml">external</a> documentation.
 
1123
-spec indexi(integer()) -> ok.
901
1124
indexi(C) ->
902
 
  wxe_util:cast(5154, <<C:?GLint>>).
 
1125
  cast(5154, <<C:?GLint>>).
903
1126
 
904
1127
%% @spec ({C}) -> ok
905
1128
%% @equiv indexi(C)
 
1129
-spec indexiv({integer()}) -> ok.
906
1130
indexiv({C}) ->  indexi(C).
907
1131
 
908
1132
%% @spec (C::integer()) -> ok
909
1133
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIndex.xml">external</a> documentation.
 
1134
-spec indexs(integer()) -> ok.
910
1135
indexs(C) ->
911
 
  wxe_util:cast(5155, <<C:?GLshort>>).
 
1136
  cast(5155, <<C:?GLshort>>).
912
1137
 
913
1138
%% @spec ({C}) -> ok
914
1139
%% @equiv indexs(C)
 
1140
-spec indexsv({integer()}) -> ok.
915
1141
indexsv({C}) ->  indexs(C).
916
1142
 
917
1143
%% @spec (C::integer()) -> ok
918
1144
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIndex.xml">external</a> documentation.
 
1145
-spec indexub(integer()) -> ok.
919
1146
indexub(C) ->
920
 
  wxe_util:cast(5156, <<C:?GLubyte>>).
 
1147
  cast(5156, <<C:?GLubyte>>).
921
1148
 
922
1149
%% @spec ({C}) -> ok
923
1150
%% @equiv indexub(C)
 
1151
-spec indexubv({integer()}) -> ok.
924
1152
indexubv({C}) ->  indexub(C).
925
1153
 
926
1154
%% @spec () -> ok
927
1155
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glInitNames.xml">external</a> documentation.
 
1156
-spec initNames() -> ok.
928
1157
initNames() ->
929
 
  wxe_util:cast(5157, <<>>).
 
1158
  cast(5157, <<>>).
930
1159
 
931
 
%% @spec (Format::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
 
1160
%% @spec (Format::enum(),Stride::integer(),Pointer::offset()|mem()) -> ok
932
1161
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glInterleavedArrays.xml">external</a> documentation.
 
1162
-spec interleavedArrays(enum(),integer(),offset()|mem()) -> ok.
933
1163
interleavedArrays(Format,Stride,Pointer) when  is_integer(Pointer) ->
934
 
  wxe_util:cast(5158, <<Format:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
 
1164
  cast(5158, <<Format:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
935
1165
interleavedArrays(Format,Stride,Pointer) ->
936
 
  wxe_util:send_bin(Pointer),
937
 
  wxe_util:cast(5159, <<Format:?GLenum,Stride:?GLsizei>>).
 
1166
  send_bin(Pointer),
 
1167
  cast(5159, <<Format:?GLenum,Stride:?GLsizei>>).
938
1168
 
939
1169
%% @spec (Cap::enum()) -> 0|1
940
1170
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsEnabled.xml">external</a> documentation.
 
1171
-spec isEnabled(enum()) -> 0|1.
941
1172
isEnabled(Cap) ->
942
 
  wxe_util:call(5160, <<Cap:?GLenum>>).
 
1173
  call(5160, <<Cap:?GLenum>>).
943
1174
 
944
1175
%% @spec (List::integer()) -> 0|1
945
1176
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsList.xml">external</a> documentation.
 
1177
-spec isList(integer()) -> 0|1.
946
1178
isList(List) ->
947
 
  wxe_util:call(5161, <<List:?GLuint>>).
 
1179
  call(5161, <<List:?GLuint>>).
948
1180
 
949
1181
%% @spec (Texture::integer()) -> 0|1
950
1182
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsTexture.xml">external</a> documentation.
 
1183
-spec isTexture(integer()) -> 0|1.
951
1184
isTexture(Texture) ->
952
 
  wxe_util:call(5162, <<Texture:?GLuint>>).
 
1185
  call(5162, <<Texture:?GLuint>>).
953
1186
 
954
1187
%% @spec (Pname::enum(),Param::float()) -> ok
955
1188
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLightModel.xml">external</a> documentation.
 
1189
-spec lightModelf(enum(),float()) -> ok.
956
1190
lightModelf(Pname,Param) ->
957
 
  wxe_util:cast(5163, <<Pname:?GLenum,Param:?GLfloat>>).
 
1191
  cast(5163, <<Pname:?GLenum,Param:?GLfloat>>).
958
1192
 
959
1193
%% @spec (Pname::enum(),Params::{float()}) -> ok
960
1194
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLightModel.xml">external</a> documentation.
 
1195
-spec lightModelfv(enum(),{float()}) -> ok.
961
1196
lightModelfv(Pname,Params) ->
962
 
  wxe_util:cast(5164, <<Pname:?GLenum,(size(Params)):?GLuint,
 
1197
  cast(5164, <<Pname:?GLenum,(size(Params)):?GLuint,
963
1198
      (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>).
964
1199
 
965
1200
%% @spec (Pname::enum(),Param::integer()) -> ok
966
1201
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLightModel.xml">external</a> documentation.
 
1202
-spec lightModeli(enum(),integer()) -> ok.
967
1203
lightModeli(Pname,Param) ->
968
 
  wxe_util:cast(5165, <<Pname:?GLenum,Param:?GLint>>).
 
1204
  cast(5165, <<Pname:?GLenum,Param:?GLint>>).
969
1205
 
970
1206
%% @spec (Pname::enum(),Params::{integer()}) -> ok
971
1207
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLightModel.xml">external</a> documentation.
 
1208
-spec lightModeliv(enum(),{integer()}) -> ok.
972
1209
lightModeliv(Pname,Params) ->
973
 
  wxe_util:cast(5166, <<Pname:?GLenum,(size(Params)):?GLuint,
 
1210
  cast(5166, <<Pname:?GLenum,(size(Params)):?GLuint,
974
1211
      (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>).
975
1212
 
976
1213
%% @spec (Light::enum(),Pname::enum(),Param::float()) -> ok
977
1214
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLight.xml">external</a> documentation.
 
1215
-spec lightf(enum(),enum(),float()) -> ok.
978
1216
lightf(Light,Pname,Param) ->
979
 
  wxe_util:cast(5167, <<Light:?GLenum,Pname:?GLenum,Param:?GLfloat>>).
 
1217
  cast(5167, <<Light:?GLenum,Pname:?GLenum,Param:?GLfloat>>).
980
1218
 
981
1219
%% @spec (Light::enum(),Pname::enum(),Params::{float()}) -> ok
982
1220
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLight.xml">external</a> documentation.
 
1221
-spec lightfv(enum(),enum(),{float()}) -> ok.
983
1222
lightfv(Light,Pname,Params) ->
984
 
  wxe_util:cast(5168, <<Light:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
 
1223
  cast(5168, <<Light:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
985
1224
      (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
986
1225
 
987
1226
%% @spec (Light::enum(),Pname::enum(),Param::integer()) -> ok
988
1227
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLight.xml">external</a> documentation.
 
1228
-spec lighti(enum(),enum(),integer()) -> ok.
989
1229
lighti(Light,Pname,Param) ->
990
 
  wxe_util:cast(5169, <<Light:?GLenum,Pname:?GLenum,Param:?GLint>>).
 
1230
  cast(5169, <<Light:?GLenum,Pname:?GLenum,Param:?GLint>>).
991
1231
 
992
1232
%% @spec (Light::enum(),Pname::enum(),Params::{integer()}) -> ok
993
1233
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLight.xml">external</a> documentation.
 
1234
-spec lightiv(enum(),enum(),{integer()}) -> ok.
994
1235
lightiv(Light,Pname,Params) ->
995
 
  wxe_util:cast(5170, <<Light:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
 
1236
  cast(5170, <<Light:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
996
1237
      (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
997
1238
 
998
1239
%% @spec (Factor::integer(),Pattern::integer()) -> ok
999
1240
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLineStipple.xml">external</a> documentation.
 
1241
-spec lineStipple(integer(),integer()) -> ok.
1000
1242
lineStipple(Factor,Pattern) ->
1001
 
  wxe_util:cast(5171, <<Factor:?GLint,Pattern:?GLushort>>).
 
1243
  cast(5171, <<Factor:?GLint,Pattern:?GLushort>>).
1002
1244
 
1003
1245
%% @spec (Width::float()) -> ok
1004
1246
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLineWidth.xml">external</a> documentation.
 
1247
-spec lineWidth(float()) -> ok.
1005
1248
lineWidth(Width) ->
1006
 
  wxe_util:cast(5172, <<Width:?GLfloat>>).
 
1249
  cast(5172, <<Width:?GLfloat>>).
1007
1250
 
1008
1251
%% @spec (Base::integer()) -> ok
1009
1252
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glListBase.xml">external</a> documentation.
 
1253
-spec listBase(integer()) -> ok.
1010
1254
listBase(Base) ->
1011
 
  wxe_util:cast(5173, <<Base:?GLuint>>).
 
1255
  cast(5173, <<Base:?GLuint>>).
1012
1256
 
1013
1257
%% @spec () -> ok
1014
1258
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadIdentity.xml">external</a> documentation.
 
1259
-spec loadIdentity() -> ok.
1015
1260
loadIdentity() ->
1016
 
  wxe_util:cast(5174, <<>>).
 
1261
  cast(5174, <<>>).
1017
1262
 
1018
 
%% @spec (M::{float()}) -> ok
 
1263
%% @spec (M::{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok
1019
1264
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadMatrix.xml">external</a> documentation.
 
1265
-spec loadMatrixd({float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok.
1020
1266
loadMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
1021
 
  wxe_util:cast(5175, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
 
1267
  cast(5175, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
1022
1268
loadMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
1023
 
  wxe_util:cast(5175, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
 
1269
  cast(5175, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
1024
1270
 
1025
 
%% @spec (M::{float()}) -> ok
 
1271
%% @spec (M::{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok
1026
1272
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadMatrix.xml">external</a> documentation.
 
1273
-spec loadMatrixf({float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok.
1027
1274
loadMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
1028
 
  wxe_util:cast(5176, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
 
1275
  cast(5176, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
1029
1276
loadMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
1030
 
  wxe_util:cast(5176, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
 
1277
  cast(5176, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
1031
1278
 
1032
1279
%% @spec (Name::integer()) -> ok
1033
1280
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadName.xml">external</a> documentation.
 
1281
-spec loadName(integer()) -> ok.
1034
1282
loadName(Name) ->
1035
 
  wxe_util:cast(5177, <<Name:?GLuint>>).
 
1283
  cast(5177, <<Name:?GLuint>>).
1036
1284
 
1037
1285
%% @spec (Opcode::enum()) -> ok
1038
1286
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLogicOp.xml">external</a> documentation.
 
1287
-spec logicOp(enum()) -> ok.
1039
1288
logicOp(Opcode) ->
1040
 
  wxe_util:cast(5178, <<Opcode:?GLenum>>).
 
1289
  cast(5178, <<Opcode:?GLenum>>).
1041
1290
 
1042
1291
%% @spec (Target::enum(),U1::float(),U2::float(),Stride::integer(),Order::integer(),Points::binary()) -> ok
1043
1292
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMap.xml">external</a> documentation.
 
1293
-spec map1d(enum(),float(),float(),integer(),integer(),binary()) -> ok.
1044
1294
map1d(Target,U1,U2,Stride,Order,Points) ->
1045
 
  wxe_util:send_bin(Points),
1046
 
  wxe_util:cast(5179, <<Target:?GLenum,0:32,U1:?GLdouble,U2:?GLdouble,Stride:?GLint,Order:?GLint>>).
 
1295
  send_bin(Points),
 
1296
  cast(5179, <<Target:?GLenum,0:32,U1:?GLdouble,U2:?GLdouble,Stride:?GLint,Order:?GLint>>).
1047
1297
 
1048
1298
%% @spec (Target::enum(),U1::float(),U2::float(),Stride::integer(),Order::integer(),Points::binary()) -> ok
1049
1299
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMap.xml">external</a> documentation.
 
1300
-spec map1f(enum(),float(),float(),integer(),integer(),binary()) -> ok.
1050
1301
map1f(Target,U1,U2,Stride,Order,Points) ->
1051
 
  wxe_util:send_bin(Points),
1052
 
  wxe_util:cast(5180, <<Target:?GLenum,U1:?GLfloat,U2:?GLfloat,Stride:?GLint,Order:?GLint>>).
 
1302
  send_bin(Points),
 
1303
  cast(5180, <<Target:?GLenum,U1:?GLfloat,U2:?GLfloat,Stride:?GLint,Order:?GLint>>).
1053
1304
 
1054
1305
%% @spec (Target::enum(),U1::float(),U2::float(),Ustride::integer(),Uorder::integer(),V1::float(),V2::float(),Vstride::integer(),Vorder::integer(),Points::binary()) -> ok
1055
1306
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMap.xml">external</a> documentation.
 
1307
-spec map2d(enum(),float(),float(),integer(),integer(),float(),float(),integer(),integer(),binary()) -> ok.
1056
1308
map2d(Target,U1,U2,Ustride,Uorder,V1,V2,Vstride,Vorder,Points) ->
1057
 
  wxe_util:send_bin(Points),
1058
 
  wxe_util:cast(5181, <<Target:?GLenum,0:32,U1:?GLdouble,U2:?GLdouble,Ustride:?GLint,Uorder:?GLint,V1:?GLdouble,V2:?GLdouble,Vstride:?GLint,Vorder:?GLint>>).
 
1309
  send_bin(Points),
 
1310
  cast(5181, <<Target:?GLenum,0:32,U1:?GLdouble,U2:?GLdouble,Ustride:?GLint,Uorder:?GLint,V1:?GLdouble,V2:?GLdouble,Vstride:?GLint,Vorder:?GLint>>).
1059
1311
 
1060
1312
%% @spec (Target::enum(),U1::float(),U2::float(),Ustride::integer(),Uorder::integer(),V1::float(),V2::float(),Vstride::integer(),Vorder::integer(),Points::binary()) -> ok
1061
1313
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMap.xml">external</a> documentation.
 
1314
-spec map2f(enum(),float(),float(),integer(),integer(),float(),float(),integer(),integer(),binary()) -> ok.
1062
1315
map2f(Target,U1,U2,Ustride,Uorder,V1,V2,Vstride,Vorder,Points) ->
1063
 
  wxe_util:send_bin(Points),
1064
 
  wxe_util:cast(5182, <<Target:?GLenum,U1:?GLfloat,U2:?GLfloat,Ustride:?GLint,Uorder:?GLint,V1:?GLfloat,V2:?GLfloat,Vstride:?GLint,Vorder:?GLint>>).
 
1316
  send_bin(Points),
 
1317
  cast(5182, <<Target:?GLenum,U1:?GLfloat,U2:?GLfloat,Ustride:?GLint,Uorder:?GLint,V1:?GLfloat,V2:?GLfloat,Vstride:?GLint,Vorder:?GLint>>).
1065
1318
 
1066
1319
%% @spec (Un::integer(),U1::float(),U2::float()) -> ok
1067
1320
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMapGrid.xml">external</a> documentation.
 
1321
-spec mapGrid1d(integer(),float(),float()) -> ok.
1068
1322
mapGrid1d(Un,U1,U2) ->
1069
 
  wxe_util:cast(5183, <<Un:?GLint,0:32,U1:?GLdouble,U2:?GLdouble>>).
 
1323
  cast(5183, <<Un:?GLint,0:32,U1:?GLdouble,U2:?GLdouble>>).
1070
1324
 
1071
1325
%% @spec (Un::integer(),U1::float(),U2::float()) -> ok
1072
1326
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMapGrid.xml">external</a> documentation.
 
1327
-spec mapGrid1f(integer(),float(),float()) -> ok.
1073
1328
mapGrid1f(Un,U1,U2) ->
1074
 
  wxe_util:cast(5184, <<Un:?GLint,U1:?GLfloat,U2:?GLfloat>>).
 
1329
  cast(5184, <<Un:?GLint,U1:?GLfloat,U2:?GLfloat>>).
1075
1330
 
1076
1331
%% @spec (Un::integer(),U1::float(),U2::float(),Vn::integer(),V1::float(),V2::float()) -> ok
1077
1332
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMapGrid.xml">external</a> documentation.
 
1333
-spec mapGrid2d(integer(),float(),float(),integer(),float(),float()) -> ok.
1078
1334
mapGrid2d(Un,U1,U2,Vn,V1,V2) ->
1079
 
  wxe_util:cast(5185, <<Un:?GLint,0:32,U1:?GLdouble,U2:?GLdouble,Vn:?GLint,0:32,V1:?GLdouble,V2:?GLdouble>>).
 
1335
  cast(5185, <<Un:?GLint,0:32,U1:?GLdouble,U2:?GLdouble,Vn:?GLint,0:32,V1:?GLdouble,V2:?GLdouble>>).
1080
1336
 
1081
1337
%% @spec (Un::integer(),U1::float(),U2::float(),Vn::integer(),V1::float(),V2::float()) -> ok
1082
1338
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMapGrid.xml">external</a> documentation.
 
1339
-spec mapGrid2f(integer(),float(),float(),integer(),float(),float()) -> ok.
1083
1340
mapGrid2f(Un,U1,U2,Vn,V1,V2) ->
1084
 
  wxe_util:cast(5186, <<Un:?GLint,U1:?GLfloat,U2:?GLfloat,Vn:?GLint,V1:?GLfloat,V2:?GLfloat>>).
 
1341
  cast(5186, <<Un:?GLint,U1:?GLfloat,U2:?GLfloat,Vn:?GLint,V1:?GLfloat,V2:?GLfloat>>).
1085
1342
 
1086
1343
%% @spec (Face::enum(),Pname::enum(),Param::float()) -> ok
1087
1344
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMaterial.xml">external</a> documentation.
 
1345
-spec materialf(enum(),enum(),float()) -> ok.
1088
1346
materialf(Face,Pname,Param) ->
1089
 
  wxe_util:cast(5187, <<Face:?GLenum,Pname:?GLenum,Param:?GLfloat>>).
 
1347
  cast(5187, <<Face:?GLenum,Pname:?GLenum,Param:?GLfloat>>).
1090
1348
 
1091
1349
%% @spec (Face::enum(),Pname::enum(),Params::{float()}) -> ok
1092
1350
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMaterial.xml">external</a> documentation.
 
1351
-spec materialfv(enum(),enum(),{float()}) -> ok.
1093
1352
materialfv(Face,Pname,Params) ->
1094
 
  wxe_util:cast(5188, <<Face:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
 
1353
  cast(5188, <<Face:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
1095
1354
      (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
1096
1355
 
1097
1356
%% @spec (Face::enum(),Pname::enum(),Param::integer()) -> ok
1098
1357
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMaterial.xml">external</a> documentation.
 
1358
-spec materiali(enum(),enum(),integer()) -> ok.
1099
1359
materiali(Face,Pname,Param) ->
1100
 
  wxe_util:cast(5189, <<Face:?GLenum,Pname:?GLenum,Param:?GLint>>).
 
1360
  cast(5189, <<Face:?GLenum,Pname:?GLenum,Param:?GLint>>).
1101
1361
 
1102
1362
%% @spec (Face::enum(),Pname::enum(),Params::{integer()}) -> ok
1103
1363
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMaterial.xml">external</a> documentation.
 
1364
-spec materialiv(enum(),enum(),{integer()}) -> ok.
1104
1365
materialiv(Face,Pname,Params) ->
1105
 
  wxe_util:cast(5190, <<Face:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
 
1366
  cast(5190, <<Face:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
1106
1367
      (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
1107
1368
 
1108
1369
%% @spec (Mode::enum()) -> ok
1109
1370
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMatrixMode.xml">external</a> documentation.
 
1371
-spec matrixMode(enum()) -> ok.
1110
1372
matrixMode(Mode) ->
1111
 
  wxe_util:cast(5191, <<Mode:?GLenum>>).
 
1373
  cast(5191, <<Mode:?GLenum>>).
1112
1374
 
1113
 
%% @spec (M::{float()}) -> ok
 
1375
%% @spec (M::{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok
1114
1376
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultMatrix.xml">external</a> documentation.
 
1377
-spec multMatrixd({float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok.
1115
1378
multMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
1116
 
  wxe_util:cast(5192, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
 
1379
  cast(5192, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
1117
1380
multMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
1118
 
  wxe_util:cast(5192, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
 
1381
  cast(5192, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
1119
1382
 
1120
 
%% @spec (M::{float()}) -> ok
 
1383
%% @spec (M::{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok
1121
1384
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultMatrix.xml">external</a> documentation.
 
1385
-spec multMatrixf({float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok.
1122
1386
multMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
1123
 
  wxe_util:cast(5193, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
 
1387
  cast(5193, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
1124
1388
multMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
1125
 
  wxe_util:cast(5193, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
 
1389
  cast(5193, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
1126
1390
 
1127
1391
%% @spec (List::integer(),Mode::enum()) -> ok
1128
1392
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glNewList.xml">external</a> documentation.
 
1393
-spec newList(integer(),enum()) -> ok.
1129
1394
newList(List,Mode) ->
1130
 
  wxe_util:cast(5194, <<List:?GLuint,Mode:?GLenum>>).
 
1395
  cast(5194, <<List:?GLuint,Mode:?GLenum>>).
1131
1396
 
1132
1397
%% @spec (Nx::integer(),Ny::integer(),Nz::integer()) -> ok
1133
1398
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glNormal.xml">external</a> documentation.
 
1399
-spec normal3b(integer(),integer(),integer()) -> ok.
1134
1400
normal3b(Nx,Ny,Nz) ->
1135
 
  wxe_util:cast(5195, <<Nx:?GLbyte,Ny:?GLbyte,Nz:?GLbyte>>).
 
1401
  cast(5195, <<Nx:?GLbyte,Ny:?GLbyte,Nz:?GLbyte>>).
1136
1402
 
1137
1403
%% @spec ({Nx,Ny,Nz}) -> ok
1138
1404
%% @equiv normal3b(Nx,Ny,Nz)
 
1405
-spec normal3bv({integer(),integer(),integer()}) -> ok.
1139
1406
normal3bv({Nx,Ny,Nz}) ->  normal3b(Nx,Ny,Nz).
1140
1407
 
1141
1408
%% @spec (Nx::float(),Ny::float(),Nz::float()) -> ok
1142
1409
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glNormal.xml">external</a> documentation.
 
1410
-spec normal3d(float(),float(),float()) -> ok.
1143
1411
normal3d(Nx,Ny,Nz) ->
1144
 
  wxe_util:cast(5196, <<Nx:?GLdouble,Ny:?GLdouble,Nz:?GLdouble>>).
 
1412
  cast(5196, <<Nx:?GLdouble,Ny:?GLdouble,Nz:?GLdouble>>).
1145
1413
 
1146
1414
%% @spec ({Nx,Ny,Nz}) -> ok
1147
1415
%% @equiv normal3d(Nx,Ny,Nz)
 
1416
-spec normal3dv({float(),float(),float()}) -> ok.
1148
1417
normal3dv({Nx,Ny,Nz}) ->  normal3d(Nx,Ny,Nz).
1149
1418
 
1150
1419
%% @spec (Nx::float(),Ny::float(),Nz::float()) -> ok
1151
1420
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glNormal.xml">external</a> documentation.
 
1421
-spec normal3f(float(),float(),float()) -> ok.
1152
1422
normal3f(Nx,Ny,Nz) ->
1153
 
  wxe_util:cast(5197, <<Nx:?GLfloat,Ny:?GLfloat,Nz:?GLfloat>>).
 
1423
  cast(5197, <<Nx:?GLfloat,Ny:?GLfloat,Nz:?GLfloat>>).
1154
1424
 
1155
1425
%% @spec ({Nx,Ny,Nz}) -> ok
1156
1426
%% @equiv normal3f(Nx,Ny,Nz)
 
1427
-spec normal3fv({float(),float(),float()}) -> ok.
1157
1428
normal3fv({Nx,Ny,Nz}) ->  normal3f(Nx,Ny,Nz).
1158
1429
 
1159
1430
%% @spec (Nx::integer(),Ny::integer(),Nz::integer()) -> ok
1160
1431
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glNormal.xml">external</a> documentation.
 
1432
-spec normal3i(integer(),integer(),integer()) -> ok.
1161
1433
normal3i(Nx,Ny,Nz) ->
1162
 
  wxe_util:cast(5198, <<Nx:?GLint,Ny:?GLint,Nz:?GLint>>).
 
1434
  cast(5198, <<Nx:?GLint,Ny:?GLint,Nz:?GLint>>).
1163
1435
 
1164
1436
%% @spec ({Nx,Ny,Nz}) -> ok
1165
1437
%% @equiv normal3i(Nx,Ny,Nz)
 
1438
-spec normal3iv({integer(),integer(),integer()}) -> ok.
1166
1439
normal3iv({Nx,Ny,Nz}) ->  normal3i(Nx,Ny,Nz).
1167
1440
 
1168
1441
%% @spec (Nx::integer(),Ny::integer(),Nz::integer()) -> ok
1169
1442
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glNormal.xml">external</a> documentation.
 
1443
-spec normal3s(integer(),integer(),integer()) -> ok.
1170
1444
normal3s(Nx,Ny,Nz) ->
1171
 
  wxe_util:cast(5199, <<Nx:?GLshort,Ny:?GLshort,Nz:?GLshort>>).
 
1445
  cast(5199, <<Nx:?GLshort,Ny:?GLshort,Nz:?GLshort>>).
1172
1446
 
1173
1447
%% @spec ({Nx,Ny,Nz}) -> ok
1174
1448
%% @equiv normal3s(Nx,Ny,Nz)
 
1449
-spec normal3sv({integer(),integer(),integer()}) -> ok.
1175
1450
normal3sv({Nx,Ny,Nz}) ->  normal3s(Nx,Ny,Nz).
1176
1451
 
1177
 
%% @spec (Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
 
1452
%% @spec (Type::enum(),Stride::integer(),Pointer::offset()|mem()) -> ok
1178
1453
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glNormalPointer.xml">external</a> documentation.
 
1454
-spec normalPointer(enum(),integer(),offset()|mem()) -> ok.
1179
1455
normalPointer(Type,Stride,Pointer) when  is_integer(Pointer) ->
1180
 
  wxe_util:cast(5200, <<Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
 
1456
  cast(5200, <<Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
1181
1457
normalPointer(Type,Stride,Pointer) ->
1182
 
  wxe_util:send_bin(Pointer),
1183
 
  wxe_util:cast(5201, <<Type:?GLenum,Stride:?GLsizei>>).
 
1458
  send_bin(Pointer),
 
1459
  cast(5201, <<Type:?GLenum,Stride:?GLsizei>>).
1184
1460
 
1185
1461
%% @spec (Left::float(),Right::float(),Bottom::float(),Top::float(),ZNear::float(),ZFar::float()) -> ok
1186
1462
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glOrtho.xml">external</a> documentation.
 
1463
-spec ortho(float(),float(),float(),float(),float(),float()) -> ok.
1187
1464
ortho(Left,Right,Bottom,Top,ZNear,ZFar) ->
1188
 
  wxe_util:cast(5202, <<Left:?GLdouble,Right:?GLdouble,Bottom:?GLdouble,Top:?GLdouble,ZNear:?GLdouble,ZFar:?GLdouble>>).
 
1465
  cast(5202, <<Left:?GLdouble,Right:?GLdouble,Bottom:?GLdouble,Top:?GLdouble,ZNear:?GLdouble,ZFar:?GLdouble>>).
1189
1466
 
1190
1467
%% @spec (Token::float()) -> ok
1191
1468
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPassThrough.xml">external</a> documentation.
 
1469
-spec passThrough(float()) -> ok.
1192
1470
passThrough(Token) ->
1193
 
  wxe_util:cast(5203, <<Token:?GLfloat>>).
 
1471
  cast(5203, <<Token:?GLfloat>>).
1194
1472
 
1195
1473
%% @spec (Map::enum(),Mapsize::integer(),Values::binary()) -> ok
1196
1474
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelMap.xml">external</a> documentation.
 
1475
-spec pixelMapfv(enum(),integer(),binary()) -> ok.
1197
1476
pixelMapfv(Map,Mapsize,Values) ->
1198
 
  wxe_util:send_bin(Values),
1199
 
  wxe_util:cast(5204, <<Map:?GLenum,Mapsize:?GLsizei>>).
 
1477
  send_bin(Values),
 
1478
  cast(5204, <<Map:?GLenum,Mapsize:?GLsizei>>).
1200
1479
 
1201
1480
%% @spec (Map::enum(),Mapsize::integer(),Values::binary()) -> ok
1202
1481
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelMap.xml">external</a> documentation.
 
1482
-spec pixelMapuiv(enum(),integer(),binary()) -> ok.
1203
1483
pixelMapuiv(Map,Mapsize,Values) ->
1204
 
  wxe_util:send_bin(Values),
1205
 
  wxe_util:cast(5205, <<Map:?GLenum,Mapsize:?GLsizei>>).
 
1484
  send_bin(Values),
 
1485
  cast(5205, <<Map:?GLenum,Mapsize:?GLsizei>>).
1206
1486
 
1207
1487
%% @spec (Map::enum(),Mapsize::integer(),Values::binary()) -> ok
1208
1488
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelMap.xml">external</a> documentation.
 
1489
-spec pixelMapusv(enum(),integer(),binary()) -> ok.
1209
1490
pixelMapusv(Map,Mapsize,Values) ->
1210
 
  wxe_util:send_bin(Values),
1211
 
  wxe_util:cast(5206, <<Map:?GLenum,Mapsize:?GLsizei>>).
 
1491
  send_bin(Values),
 
1492
  cast(5206, <<Map:?GLenum,Mapsize:?GLsizei>>).
1212
1493
 
1213
1494
%% @spec (Pname::enum(),Param::float()) -> ok
1214
1495
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelStore.xml">external</a> documentation.
 
1496
-spec pixelStoref(enum(),float()) -> ok.
1215
1497
pixelStoref(Pname,Param) ->
1216
 
  wxe_util:cast(5207, <<Pname:?GLenum,Param:?GLfloat>>).
 
1498
  cast(5207, <<Pname:?GLenum,Param:?GLfloat>>).
1217
1499
 
1218
1500
%% @spec (Pname::enum(),Param::integer()) -> ok
1219
1501
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelStore.xml">external</a> documentation.
 
1502
-spec pixelStorei(enum(),integer()) -> ok.
1220
1503
pixelStorei(Pname,Param) ->
1221
 
  wxe_util:cast(5208, <<Pname:?GLenum,Param:?GLint>>).
 
1504
  cast(5208, <<Pname:?GLenum,Param:?GLint>>).
1222
1505
 
1223
1506
%% @spec (Pname::enum(),Param::float()) -> ok
1224
1507
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelTransfer.xml">external</a> documentation.
 
1508
-spec pixelTransferf(enum(),float()) -> ok.
1225
1509
pixelTransferf(Pname,Param) ->
1226
 
  wxe_util:cast(5209, <<Pname:?GLenum,Param:?GLfloat>>).
 
1510
  cast(5209, <<Pname:?GLenum,Param:?GLfloat>>).
1227
1511
 
1228
1512
%% @spec (Pname::enum(),Param::integer()) -> ok
1229
1513
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelTransfer.xml">external</a> documentation.
 
1514
-spec pixelTransferi(enum(),integer()) -> ok.
1230
1515
pixelTransferi(Pname,Param) ->
1231
 
  wxe_util:cast(5210, <<Pname:?GLenum,Param:?GLint>>).
 
1516
  cast(5210, <<Pname:?GLenum,Param:?GLint>>).
1232
1517
 
1233
1518
%% @spec (Xfactor::float(),Yfactor::float()) -> ok
1234
1519
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelZoom.xml">external</a> documentation.
 
1520
-spec pixelZoom(float(),float()) -> ok.
1235
1521
pixelZoom(Xfactor,Yfactor) ->
1236
 
  wxe_util:cast(5211, <<Xfactor:?GLfloat,Yfactor:?GLfloat>>).
 
1522
  cast(5211, <<Xfactor:?GLfloat,Yfactor:?GLfloat>>).
1237
1523
 
1238
1524
%% @spec (Size::float()) -> ok
1239
1525
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPointSize.xml">external</a> documentation.
 
1526
-spec pointSize(float()) -> ok.
1240
1527
pointSize(Size) ->
1241
 
  wxe_util:cast(5212, <<Size:?GLfloat>>).
 
1528
  cast(5212, <<Size:?GLfloat>>).
1242
1529
 
1243
1530
%% @spec (Face::enum(),Mode::enum()) -> ok
1244
1531
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPolygonMode.xml">external</a> documentation.
 
1532
-spec polygonMode(enum(),enum()) -> ok.
1245
1533
polygonMode(Face,Mode) ->
1246
 
  wxe_util:cast(5213, <<Face:?GLenum,Mode:?GLenum>>).
 
1534
  cast(5213, <<Face:?GLenum,Mode:?GLenum>>).
1247
1535
 
1248
1536
%% @spec (Factor::float(),Units::float()) -> ok
1249
1537
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPolygonOffset.xml">external</a> documentation.
 
1538
-spec polygonOffset(float(),float()) -> ok.
1250
1539
polygonOffset(Factor,Units) ->
1251
 
  wxe_util:cast(5214, <<Factor:?GLfloat,Units:?GLfloat>>).
 
1540
  cast(5214, <<Factor:?GLfloat,Units:?GLfloat>>).
1252
1541
 
1253
1542
%% @spec (Mask::binary()) -> ok
1254
1543
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPolygonStipple.xml">external</a> documentation.
 
1544
-spec polygonStipple(binary()) -> ok.
1255
1545
polygonStipple(Mask) ->
1256
 
  wxe_util:send_bin(Mask),
1257
 
  wxe_util:cast(5215, <<>>).
 
1546
  send_bin(Mask),
 
1547
  cast(5215, <<>>).
1258
1548
 
1259
1549
%% @spec () -> ok
1260
1550
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPopAttrib.xml">external</a> documentation.
 
1551
-spec popAttrib() -> ok.
1261
1552
popAttrib() ->
1262
 
  wxe_util:cast(5216, <<>>).
 
1553
  cast(5216, <<>>).
1263
1554
 
1264
1555
%% @spec () -> ok
1265
1556
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPopClientAttrib.xml">external</a> documentation.
 
1557
-spec popClientAttrib() -> ok.
1266
1558
popClientAttrib() ->
1267
 
  wxe_util:cast(5217, <<>>).
 
1559
  cast(5217, <<>>).
1268
1560
 
1269
1561
%% @spec () -> ok
1270
1562
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPopMatrix.xml">external</a> documentation.
 
1563
-spec popMatrix() -> ok.
1271
1564
popMatrix() ->
1272
 
  wxe_util:cast(5218, <<>>).
 
1565
  cast(5218, <<>>).
1273
1566
 
1274
1567
%% @spec () -> ok
1275
1568
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPopName.xml">external</a> documentation.
 
1569
-spec popName() -> ok.
1276
1570
popName() ->
1277
 
  wxe_util:cast(5219, <<>>).
 
1571
  cast(5219, <<>>).
1278
1572
 
1279
1573
%% @spec (Textures::[integer()],Priorities::[clamp()]) -> ok
1280
1574
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPrioritizeTextures.xml">external</a> documentation.
 
1575
-spec prioritizeTextures([integer()],[clamp()]) -> ok.
1281
1576
prioritizeTextures(Textures,Priorities) ->
1282
 
  wxe_util:cast(5220, <<(length(Textures)):?GLuint,
 
1577
  cast(5220, <<(length(Textures)):?GLuint,
1283
1578
        (<< <<C:?GLuint>> || C <- Textures>>)/binary,0:(((1+length(Textures)) rem 2)*32),(length(Priorities)):?GLuint,
1284
1579
        (<< <<C:?GLclampf>> || C <- Priorities>>)/binary,0:(((1+length(Priorities)) rem 2)*32)>>).
1285
1580
 
1286
1581
%% @spec (Mask::integer()) -> ok
1287
1582
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPushAttrib.xml">external</a> documentation.
 
1583
-spec pushAttrib(integer()) -> ok.
1288
1584
pushAttrib(Mask) ->
1289
 
  wxe_util:cast(5221, <<Mask:?GLbitfield>>).
 
1585
  cast(5221, <<Mask:?GLbitfield>>).
1290
1586
 
1291
1587
%% @spec (Mask::integer()) -> ok
1292
1588
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPushClientAttrib.xml">external</a> documentation.
 
1589
-spec pushClientAttrib(integer()) -> ok.
1293
1590
pushClientAttrib(Mask) ->
1294
 
  wxe_util:cast(5222, <<Mask:?GLbitfield>>).
 
1591
  cast(5222, <<Mask:?GLbitfield>>).
1295
1592
 
1296
1593
%% @spec () -> ok
1297
1594
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPushMatrix.xml">external</a> documentation.
 
1595
-spec pushMatrix() -> ok.
1298
1596
pushMatrix() ->
1299
 
  wxe_util:cast(5223, <<>>).
 
1597
  cast(5223, <<>>).
1300
1598
 
1301
1599
%% @spec (Name::integer()) -> ok
1302
1600
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPushName.xml">external</a> documentation.
 
1601
-spec pushName(integer()) -> ok.
1303
1602
pushName(Name) ->
1304
 
  wxe_util:cast(5224, <<Name:?GLuint>>).
 
1603
  cast(5224, <<Name:?GLuint>>).
1305
1604
 
1306
1605
%% @spec (X::float(),Y::float()) -> ok
1307
1606
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
 
1607
-spec rasterPos2d(float(),float()) -> ok.
1308
1608
rasterPos2d(X,Y) ->
1309
 
  wxe_util:cast(5225, <<X:?GLdouble,Y:?GLdouble>>).
 
1609
  cast(5225, <<X:?GLdouble,Y:?GLdouble>>).
1310
1610
 
1311
1611
%% @spec ({X,Y}) -> ok
1312
1612
%% @equiv rasterPos2d(X,Y)
 
1613
-spec rasterPos2dv({float(),float()}) -> ok.
1313
1614
rasterPos2dv({X,Y}) ->  rasterPos2d(X,Y).
1314
1615
 
1315
1616
%% @spec (X::float(),Y::float()) -> ok
1316
1617
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
 
1618
-spec rasterPos2f(float(),float()) -> ok.
1317
1619
rasterPos2f(X,Y) ->
1318
 
  wxe_util:cast(5226, <<X:?GLfloat,Y:?GLfloat>>).
 
1620
  cast(5226, <<X:?GLfloat,Y:?GLfloat>>).
1319
1621
 
1320
1622
%% @spec ({X,Y}) -> ok
1321
1623
%% @equiv rasterPos2f(X,Y)
 
1624
-spec rasterPos2fv({float(),float()}) -> ok.
1322
1625
rasterPos2fv({X,Y}) ->  rasterPos2f(X,Y).
1323
1626
 
1324
1627
%% @spec (X::integer(),Y::integer()) -> ok
1325
1628
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
 
1629
-spec rasterPos2i(integer(),integer()) -> ok.
1326
1630
rasterPos2i(X,Y) ->
1327
 
  wxe_util:cast(5227, <<X:?GLint,Y:?GLint>>).
 
1631
  cast(5227, <<X:?GLint,Y:?GLint>>).
1328
1632
 
1329
1633
%% @spec ({X,Y}) -> ok
1330
1634
%% @equiv rasterPos2i(X,Y)
 
1635
-spec rasterPos2iv({integer(),integer()}) -> ok.
1331
1636
rasterPos2iv({X,Y}) ->  rasterPos2i(X,Y).
1332
1637
 
1333
1638
%% @spec (X::integer(),Y::integer()) -> ok
1334
1639
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
 
1640
-spec rasterPos2s(integer(),integer()) -> ok.
1335
1641
rasterPos2s(X,Y) ->
1336
 
  wxe_util:cast(5228, <<X:?GLshort,Y:?GLshort>>).
 
1642
  cast(5228, <<X:?GLshort,Y:?GLshort>>).
1337
1643
 
1338
1644
%% @spec ({X,Y}) -> ok
1339
1645
%% @equiv rasterPos2s(X,Y)
 
1646
-spec rasterPos2sv({integer(),integer()}) -> ok.
1340
1647
rasterPos2sv({X,Y}) ->  rasterPos2s(X,Y).
1341
1648
 
1342
1649
%% @spec (X::float(),Y::float(),Z::float()) -> ok
1343
1650
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
 
1651
-spec rasterPos3d(float(),float(),float()) -> ok.
1344
1652
rasterPos3d(X,Y,Z) ->
1345
 
  wxe_util:cast(5229, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
 
1653
  cast(5229, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
1346
1654
 
1347
1655
%% @spec ({X,Y,Z}) -> ok
1348
1656
%% @equiv rasterPos3d(X,Y,Z)
 
1657
-spec rasterPos3dv({float(),float(),float()}) -> ok.
1349
1658
rasterPos3dv({X,Y,Z}) ->  rasterPos3d(X,Y,Z).
1350
1659
 
1351
1660
%% @spec (X::float(),Y::float(),Z::float()) -> ok
1352
1661
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
 
1662
-spec rasterPos3f(float(),float(),float()) -> ok.
1353
1663
rasterPos3f(X,Y,Z) ->
1354
 
  wxe_util:cast(5230, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
 
1664
  cast(5230, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
1355
1665
 
1356
1666
%% @spec ({X,Y,Z}) -> ok
1357
1667
%% @equiv rasterPos3f(X,Y,Z)
 
1668
-spec rasterPos3fv({float(),float(),float()}) -> ok.
1358
1669
rasterPos3fv({X,Y,Z}) ->  rasterPos3f(X,Y,Z).
1359
1670
 
1360
1671
%% @spec (X::integer(),Y::integer(),Z::integer()) -> ok
1361
1672
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
 
1673
-spec rasterPos3i(integer(),integer(),integer()) -> ok.
1362
1674
rasterPos3i(X,Y,Z) ->
1363
 
  wxe_util:cast(5231, <<X:?GLint,Y:?GLint,Z:?GLint>>).
 
1675
  cast(5231, <<X:?GLint,Y:?GLint,Z:?GLint>>).
1364
1676
 
1365
1677
%% @spec ({X,Y,Z}) -> ok
1366
1678
%% @equiv rasterPos3i(X,Y,Z)
 
1679
-spec rasterPos3iv({integer(),integer(),integer()}) -> ok.
1367
1680
rasterPos3iv({X,Y,Z}) ->  rasterPos3i(X,Y,Z).
1368
1681
 
1369
1682
%% @spec (X::integer(),Y::integer(),Z::integer()) -> ok
1370
1683
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
 
1684
-spec rasterPos3s(integer(),integer(),integer()) -> ok.
1371
1685
rasterPos3s(X,Y,Z) ->
1372
 
  wxe_util:cast(5232, <<X:?GLshort,Y:?GLshort,Z:?GLshort>>).
 
1686
  cast(5232, <<X:?GLshort,Y:?GLshort,Z:?GLshort>>).
1373
1687
 
1374
1688
%% @spec ({X,Y,Z}) -> ok
1375
1689
%% @equiv rasterPos3s(X,Y,Z)
 
1690
-spec rasterPos3sv({integer(),integer(),integer()}) -> ok.
1376
1691
rasterPos3sv({X,Y,Z}) ->  rasterPos3s(X,Y,Z).
1377
1692
 
1378
1693
%% @spec (X::float(),Y::float(),Z::float(),W::float()) -> ok
1379
1694
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
 
1695
-spec rasterPos4d(float(),float(),float(),float()) -> ok.
1380
1696
rasterPos4d(X,Y,Z,W) ->
1381
 
  wxe_util:cast(5233, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
 
1697
  cast(5233, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
1382
1698
 
1383
1699
%% @spec ({X,Y,Z,W}) -> ok
1384
1700
%% @equiv rasterPos4d(X,Y,Z,W)
 
1701
-spec rasterPos4dv({float(),float(),float(),float()}) -> ok.
1385
1702
rasterPos4dv({X,Y,Z,W}) ->  rasterPos4d(X,Y,Z,W).
1386
1703
 
1387
1704
%% @spec (X::float(),Y::float(),Z::float(),W::float()) -> ok
1388
1705
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
 
1706
-spec rasterPos4f(float(),float(),float(),float()) -> ok.
1389
1707
rasterPos4f(X,Y,Z,W) ->
1390
 
  wxe_util:cast(5234, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
 
1708
  cast(5234, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
1391
1709
 
1392
1710
%% @spec ({X,Y,Z,W}) -> ok
1393
1711
%% @equiv rasterPos4f(X,Y,Z,W)
 
1712
-spec rasterPos4fv({float(),float(),float(),float()}) -> ok.
1394
1713
rasterPos4fv({X,Y,Z,W}) ->  rasterPos4f(X,Y,Z,W).
1395
1714
 
1396
1715
%% @spec (X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
1397
1716
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
 
1717
-spec rasterPos4i(integer(),integer(),integer(),integer()) -> ok.
1398
1718
rasterPos4i(X,Y,Z,W) ->
1399
 
  wxe_util:cast(5235, <<X:?GLint,Y:?GLint,Z:?GLint,W:?GLint>>).
 
1719
  cast(5235, <<X:?GLint,Y:?GLint,Z:?GLint,W:?GLint>>).
1400
1720
 
1401
1721
%% @spec ({X,Y,Z,W}) -> ok
1402
1722
%% @equiv rasterPos4i(X,Y,Z,W)
 
1723
-spec rasterPos4iv({integer(),integer(),integer(),integer()}) -> ok.
1403
1724
rasterPos4iv({X,Y,Z,W}) ->  rasterPos4i(X,Y,Z,W).
1404
1725
 
1405
1726
%% @spec (X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
1406
1727
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
 
1728
-spec rasterPos4s(integer(),integer(),integer(),integer()) -> ok.
1407
1729
rasterPos4s(X,Y,Z,W) ->
1408
 
  wxe_util:cast(5236, <<X:?GLshort,Y:?GLshort,Z:?GLshort,W:?GLshort>>).
 
1730
  cast(5236, <<X:?GLshort,Y:?GLshort,Z:?GLshort,W:?GLshort>>).
1409
1731
 
1410
1732
%% @spec ({X,Y,Z,W}) -> ok
1411
1733
%% @equiv rasterPos4s(X,Y,Z,W)
 
1734
-spec rasterPos4sv({integer(),integer(),integer(),integer()}) -> ok.
1412
1735
rasterPos4sv({X,Y,Z,W}) ->  rasterPos4s(X,Y,Z,W).
1413
1736
 
1414
1737
%% @spec (Mode::enum()) -> ok
1415
1738
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glReadBuffer.xml">external</a> documentation.
 
1739
-spec readBuffer(enum()) -> ok.
1416
1740
readBuffer(Mode) ->
1417
 
  wxe_util:cast(5237, <<Mode:?GLenum>>).
 
1741
  cast(5237, <<Mode:?GLenum>>).
1418
1742
 
1419
 
%% @spec (X::integer(),Y::integer(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Pixels::wx:wx_mem()) -> ok
 
1743
%% @spec (X::integer(),Y::integer(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Pixels::mem()) -> ok
1420
1744
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glReadPixels.xml">external</a> documentation.
 
1745
-spec readPixels(integer(),integer(),integer(),integer(),enum(),enum(),mem()) -> ok.
1421
1746
readPixels(X,Y,Width,Height,Format,Type,Pixels) ->
1422
 
  wxe_util:send_bin(Pixels#wx_mem.bin),
1423
 
  wxe_util:call(5238, <<X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum>>).
 
1747
  send_bin(Pixels),
 
1748
  call(5238, <<X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum>>).
1424
1749
 
1425
1750
%% @spec (X1::float(),Y1::float(),X2::float(),Y2::float()) -> ok
1426
1751
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRect.xml">external</a> documentation.
 
1752
-spec rectd(float(),float(),float(),float()) -> ok.
1427
1753
rectd(X1,Y1,X2,Y2) ->
1428
 
  wxe_util:cast(5239, <<X1:?GLdouble,Y1:?GLdouble,X2:?GLdouble,Y2:?GLdouble>>).
 
1754
  cast(5239, <<X1:?GLdouble,Y1:?GLdouble,X2:?GLdouble,Y2:?GLdouble>>).
1429
1755
 
1430
 
%% @spec (V1::{float()},V2::{float()}) -> ok
 
1756
%% @spec (V1::{float(),float()},V2::{float(),float()}) -> ok
1431
1757
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRect.xml">external</a> documentation.
 
1758
-spec rectdv({float(),float()},{float(),float()}) -> ok.
1432
1759
rectdv({V1,V2},{V1,V2}) ->
1433
 
  wxe_util:cast(5240, <<V1:?GLdouble,V2:?GLdouble,V1:?GLdouble,V2:?GLdouble>>).
 
1760
  cast(5240, <<V1:?GLdouble,V2:?GLdouble,V1:?GLdouble,V2:?GLdouble>>).
1434
1761
 
1435
1762
%% @spec (X1::float(),Y1::float(),X2::float(),Y2::float()) -> ok
1436
1763
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRect.xml">external</a> documentation.
 
1764
-spec rectf(float(),float(),float(),float()) -> ok.
1437
1765
rectf(X1,Y1,X2,Y2) ->
1438
 
  wxe_util:cast(5241, <<X1:?GLfloat,Y1:?GLfloat,X2:?GLfloat,Y2:?GLfloat>>).
 
1766
  cast(5241, <<X1:?GLfloat,Y1:?GLfloat,X2:?GLfloat,Y2:?GLfloat>>).
1439
1767
 
1440
 
%% @spec (V1::{float()},V2::{float()}) -> ok
 
1768
%% @spec (V1::{float(),float()},V2::{float(),float()}) -> ok
1441
1769
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRect.xml">external</a> documentation.
 
1770
-spec rectfv({float(),float()},{float(),float()}) -> ok.
1442
1771
rectfv({V1,V2},{V1,V2}) ->
1443
 
  wxe_util:cast(5242, <<V1:?GLfloat,V2:?GLfloat,V1:?GLfloat,V2:?GLfloat>>).
 
1772
  cast(5242, <<V1:?GLfloat,V2:?GLfloat,V1:?GLfloat,V2:?GLfloat>>).
1444
1773
 
1445
1774
%% @spec (X1::integer(),Y1::integer(),X2::integer(),Y2::integer()) -> ok
1446
1775
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRect.xml">external</a> documentation.
 
1776
-spec recti(integer(),integer(),integer(),integer()) -> ok.
1447
1777
recti(X1,Y1,X2,Y2) ->
1448
 
  wxe_util:cast(5243, <<X1:?GLint,Y1:?GLint,X2:?GLint,Y2:?GLint>>).
 
1778
  cast(5243, <<X1:?GLint,Y1:?GLint,X2:?GLint,Y2:?GLint>>).
1449
1779
 
1450
 
%% @spec (V1::{integer()},V2::{integer()}) -> ok
 
1780
%% @spec (V1::{integer(),integer()},V2::{integer(),integer()}) -> ok
1451
1781
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRect.xml">external</a> documentation.
 
1782
-spec rectiv({integer(),integer()},{integer(),integer()}) -> ok.
1452
1783
rectiv({V1,V2},{V1,V2}) ->
1453
 
  wxe_util:cast(5244, <<V1:?GLint,V2:?GLint,V1:?GLint,V2:?GLint>>).
 
1784
  cast(5244, <<V1:?GLint,V2:?GLint,V1:?GLint,V2:?GLint>>).
1454
1785
 
1455
1786
%% @spec (X1::integer(),Y1::integer(),X2::integer(),Y2::integer()) -> ok
1456
1787
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRect.xml">external</a> documentation.
 
1788
-spec rects(integer(),integer(),integer(),integer()) -> ok.
1457
1789
rects(X1,Y1,X2,Y2) ->
1458
 
  wxe_util:cast(5245, <<X1:?GLshort,Y1:?GLshort,X2:?GLshort,Y2:?GLshort>>).
 
1790
  cast(5245, <<X1:?GLshort,Y1:?GLshort,X2:?GLshort,Y2:?GLshort>>).
1459
1791
 
1460
 
%% @spec (V1::{integer()},V2::{integer()}) -> ok
 
1792
%% @spec (V1::{integer(),integer()},V2::{integer(),integer()}) -> ok
1461
1793
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRect.xml">external</a> documentation.
 
1794
-spec rectsv({integer(),integer()},{integer(),integer()}) -> ok.
1462
1795
rectsv({V1,V2},{V1,V2}) ->
1463
 
  wxe_util:cast(5246, <<V1:?GLshort,V2:?GLshort,V1:?GLshort,V2:?GLshort>>).
 
1796
  cast(5246, <<V1:?GLshort,V2:?GLshort,V1:?GLshort,V2:?GLshort>>).
1464
1797
 
1465
1798
%% @spec (Mode::enum()) -> integer()
1466
1799
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRenderMode.xml">external</a> documentation.
 
1800
-spec renderMode(enum()) -> integer().
1467
1801
renderMode(Mode) ->
1468
 
  wxe_util:call(5247, <<Mode:?GLenum>>).
 
1802
  call(5247, <<Mode:?GLenum>>).
1469
1803
 
1470
1804
%% @spec (Angle::float(),X::float(),Y::float(),Z::float()) -> ok
1471
1805
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRotate.xml">external</a> documentation.
 
1806
-spec rotated(float(),float(),float(),float()) -> ok.
1472
1807
rotated(Angle,X,Y,Z) ->
1473
 
  wxe_util:cast(5248, <<Angle:?GLdouble,X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
 
1808
  cast(5248, <<Angle:?GLdouble,X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
1474
1809
 
1475
1810
%% @spec (Angle::float(),X::float(),Y::float(),Z::float()) -> ok
1476
1811
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRotate.xml">external</a> documentation.
 
1812
-spec rotatef(float(),float(),float(),float()) -> ok.
1477
1813
rotatef(Angle,X,Y,Z) ->
1478
 
  wxe_util:cast(5249, <<Angle:?GLfloat,X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
 
1814
  cast(5249, <<Angle:?GLfloat,X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
1479
1815
 
1480
1816
%% @spec (X::float(),Y::float(),Z::float()) -> ok
1481
1817
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glScale.xml">external</a> documentation.
 
1818
-spec scaled(float(),float(),float()) -> ok.
1482
1819
scaled(X,Y,Z) ->
1483
 
  wxe_util:cast(5250, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
 
1820
  cast(5250, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
1484
1821
 
1485
1822
%% @spec (X::float(),Y::float(),Z::float()) -> ok
1486
1823
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glScale.xml">external</a> documentation.
 
1824
-spec scalef(float(),float(),float()) -> ok.
1487
1825
scalef(X,Y,Z) ->
1488
 
  wxe_util:cast(5251, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
 
1826
  cast(5251, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
1489
1827
 
1490
1828
%% @spec (X::integer(),Y::integer(),Width::integer(),Height::integer()) -> ok
1491
1829
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glScissor.xml">external</a> documentation.
 
1830
-spec scissor(integer(),integer(),integer(),integer()) -> ok.
1492
1831
scissor(X,Y,Width,Height) ->
1493
 
  wxe_util:cast(5252, <<X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei>>).
 
1832
  cast(5252, <<X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei>>).
1494
1833
 
1495
 
%% @spec (Size::integer(),Buffer::wx:wx_mem()) -> ok
 
1834
%% @spec (Size::integer(),Buffer::mem()) -> ok
1496
1835
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSelectBuffer.xml">external</a> documentation.
 
1836
-spec selectBuffer(integer(),mem()) -> ok.
1497
1837
selectBuffer(Size,Buffer) ->
1498
 
  wxe_util:send_bin(Buffer#wx_mem.bin),
1499
 
  wxe_util:call(5253, <<Size:?GLsizei>>).
 
1838
  send_bin(Buffer),
 
1839
  call(5253, <<Size:?GLsizei>>).
1500
1840
 
1501
1841
%% @spec (Mode::enum()) -> ok
1502
1842
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glShadeModel.xml">external</a> documentation.
 
1843
-spec shadeModel(enum()) -> ok.
1503
1844
shadeModel(Mode) ->
1504
 
  wxe_util:cast(5254, <<Mode:?GLenum>>).
 
1845
  cast(5254, <<Mode:?GLenum>>).
1505
1846
 
1506
1847
%% @spec (Func::enum(),Ref::integer(),Mask::integer()) -> ok
1507
1848
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glStencilFunc.xml">external</a> documentation.
 
1849
-spec stencilFunc(enum(),integer(),integer()) -> ok.
1508
1850
stencilFunc(Func,Ref,Mask) ->
1509
 
  wxe_util:cast(5255, <<Func:?GLenum,Ref:?GLint,Mask:?GLuint>>).
 
1851
  cast(5255, <<Func:?GLenum,Ref:?GLint,Mask:?GLuint>>).
1510
1852
 
1511
1853
%% @spec (Mask::integer()) -> ok
1512
1854
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glStencilMask.xml">external</a> documentation.
 
1855
-spec stencilMask(integer()) -> ok.
1513
1856
stencilMask(Mask) ->
1514
 
  wxe_util:cast(5256, <<Mask:?GLuint>>).
 
1857
  cast(5256, <<Mask:?GLuint>>).
1515
1858
 
1516
1859
%% @spec (Fail::enum(),Zfail::enum(),Zpass::enum()) -> ok
1517
1860
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glStencilOp.xml">external</a> documentation.
 
1861
-spec stencilOp(enum(),enum(),enum()) -> ok.
1518
1862
stencilOp(Fail,Zfail,Zpass) ->
1519
 
  wxe_util:cast(5257, <<Fail:?GLenum,Zfail:?GLenum,Zpass:?GLenum>>).
 
1863
  cast(5257, <<Fail:?GLenum,Zfail:?GLenum,Zpass:?GLenum>>).
1520
1864
 
1521
1865
%% @spec (S::float()) -> ok
1522
1866
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
 
1867
-spec texCoord1d(float()) -> ok.
1523
1868
texCoord1d(S) ->
1524
 
  wxe_util:cast(5258, <<S:?GLdouble>>).
 
1869
  cast(5258, <<S:?GLdouble>>).
1525
1870
 
1526
1871
%% @spec ({S}) -> ok
1527
1872
%% @equiv texCoord1d(S)
 
1873
-spec texCoord1dv({float()}) -> ok.
1528
1874
texCoord1dv({S}) ->  texCoord1d(S).
1529
1875
 
1530
1876
%% @spec (S::float()) -> ok
1531
1877
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
 
1878
-spec texCoord1f(float()) -> ok.
1532
1879
texCoord1f(S) ->
1533
 
  wxe_util:cast(5259, <<S:?GLfloat>>).
 
1880
  cast(5259, <<S:?GLfloat>>).
1534
1881
 
1535
1882
%% @spec ({S}) -> ok
1536
1883
%% @equiv texCoord1f(S)
 
1884
-spec texCoord1fv({float()}) -> ok.
1537
1885
texCoord1fv({S}) ->  texCoord1f(S).
1538
1886
 
1539
1887
%% @spec (S::integer()) -> ok
1540
1888
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
 
1889
-spec texCoord1i(integer()) -> ok.
1541
1890
texCoord1i(S) ->
1542
 
  wxe_util:cast(5260, <<S:?GLint>>).
 
1891
  cast(5260, <<S:?GLint>>).
1543
1892
 
1544
1893
%% @spec ({S}) -> ok
1545
1894
%% @equiv texCoord1i(S)
 
1895
-spec texCoord1iv({integer()}) -> ok.
1546
1896
texCoord1iv({S}) ->  texCoord1i(S).
1547
1897
 
1548
1898
%% @spec (S::integer()) -> ok
1549
1899
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
 
1900
-spec texCoord1s(integer()) -> ok.
1550
1901
texCoord1s(S) ->
1551
 
  wxe_util:cast(5261, <<S:?GLshort>>).
 
1902
  cast(5261, <<S:?GLshort>>).
1552
1903
 
1553
1904
%% @spec ({S}) -> ok
1554
1905
%% @equiv texCoord1s(S)
 
1906
-spec texCoord1sv({integer()}) -> ok.
1555
1907
texCoord1sv({S}) ->  texCoord1s(S).
1556
1908
 
1557
1909
%% @spec (S::float(),T::float()) -> ok
1558
1910
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
 
1911
-spec texCoord2d(float(),float()) -> ok.
1559
1912
texCoord2d(S,T) ->
1560
 
  wxe_util:cast(5262, <<S:?GLdouble,T:?GLdouble>>).
 
1913
  cast(5262, <<S:?GLdouble,T:?GLdouble>>).
1561
1914
 
1562
1915
%% @spec ({S,T}) -> ok
1563
1916
%% @equiv texCoord2d(S,T)
 
1917
-spec texCoord2dv({float(),float()}) -> ok.
1564
1918
texCoord2dv({S,T}) ->  texCoord2d(S,T).
1565
1919
 
1566
1920
%% @spec (S::float(),T::float()) -> ok
1567
1921
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
 
1922
-spec texCoord2f(float(),float()) -> ok.
1568
1923
texCoord2f(S,T) ->
1569
 
  wxe_util:cast(5263, <<S:?GLfloat,T:?GLfloat>>).
 
1924
  cast(5263, <<S:?GLfloat,T:?GLfloat>>).
1570
1925
 
1571
1926
%% @spec ({S,T}) -> ok
1572
1927
%% @equiv texCoord2f(S,T)
 
1928
-spec texCoord2fv({float(),float()}) -> ok.
1573
1929
texCoord2fv({S,T}) ->  texCoord2f(S,T).
1574
1930
 
1575
1931
%% @spec (S::integer(),T::integer()) -> ok
1576
1932
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
 
1933
-spec texCoord2i(integer(),integer()) -> ok.
1577
1934
texCoord2i(S,T) ->
1578
 
  wxe_util:cast(5264, <<S:?GLint,T:?GLint>>).
 
1935
  cast(5264, <<S:?GLint,T:?GLint>>).
1579
1936
 
1580
1937
%% @spec ({S,T}) -> ok
1581
1938
%% @equiv texCoord2i(S,T)
 
1939
-spec texCoord2iv({integer(),integer()}) -> ok.
1582
1940
texCoord2iv({S,T}) ->  texCoord2i(S,T).
1583
1941
 
1584
1942
%% @spec (S::integer(),T::integer()) -> ok
1585
1943
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
 
1944
-spec texCoord2s(integer(),integer()) -> ok.
1586
1945
texCoord2s(S,T) ->
1587
 
  wxe_util:cast(5265, <<S:?GLshort,T:?GLshort>>).
 
1946
  cast(5265, <<S:?GLshort,T:?GLshort>>).
1588
1947
 
1589
1948
%% @spec ({S,T}) -> ok
1590
1949
%% @equiv texCoord2s(S,T)
 
1950
-spec texCoord2sv({integer(),integer()}) -> ok.
1591
1951
texCoord2sv({S,T}) ->  texCoord2s(S,T).
1592
1952
 
1593
1953
%% @spec (S::float(),T::float(),R::float()) -> ok
1594
1954
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
 
1955
-spec texCoord3d(float(),float(),float()) -> ok.
1595
1956
texCoord3d(S,T,R) ->
1596
 
  wxe_util:cast(5266, <<S:?GLdouble,T:?GLdouble,R:?GLdouble>>).
 
1957
  cast(5266, <<S:?GLdouble,T:?GLdouble,R:?GLdouble>>).
1597
1958
 
1598
1959
%% @spec ({S,T,R}) -> ok
1599
1960
%% @equiv texCoord3d(S,T,R)
 
1961
-spec texCoord3dv({float(),float(),float()}) -> ok.
1600
1962
texCoord3dv({S,T,R}) ->  texCoord3d(S,T,R).
1601
1963
 
1602
1964
%% @spec (S::float(),T::float(),R::float()) -> ok
1603
1965
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
 
1966
-spec texCoord3f(float(),float(),float()) -> ok.
1604
1967
texCoord3f(S,T,R) ->
1605
 
  wxe_util:cast(5267, <<S:?GLfloat,T:?GLfloat,R:?GLfloat>>).
 
1968
  cast(5267, <<S:?GLfloat,T:?GLfloat,R:?GLfloat>>).
1606
1969
 
1607
1970
%% @spec ({S,T,R}) -> ok
1608
1971
%% @equiv texCoord3f(S,T,R)
 
1972
-spec texCoord3fv({float(),float(),float()}) -> ok.
1609
1973
texCoord3fv({S,T,R}) ->  texCoord3f(S,T,R).
1610
1974
 
1611
1975
%% @spec (S::integer(),T::integer(),R::integer()) -> ok
1612
1976
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
 
1977
-spec texCoord3i(integer(),integer(),integer()) -> ok.
1613
1978
texCoord3i(S,T,R) ->
1614
 
  wxe_util:cast(5268, <<S:?GLint,T:?GLint,R:?GLint>>).
 
1979
  cast(5268, <<S:?GLint,T:?GLint,R:?GLint>>).
1615
1980
 
1616
1981
%% @spec ({S,T,R}) -> ok
1617
1982
%% @equiv texCoord3i(S,T,R)
 
1983
-spec texCoord3iv({integer(),integer(),integer()}) -> ok.
1618
1984
texCoord3iv({S,T,R}) ->  texCoord3i(S,T,R).
1619
1985
 
1620
1986
%% @spec (S::integer(),T::integer(),R::integer()) -> ok
1621
1987
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
 
1988
-spec texCoord3s(integer(),integer(),integer()) -> ok.
1622
1989
texCoord3s(S,T,R) ->
1623
 
  wxe_util:cast(5269, <<S:?GLshort,T:?GLshort,R:?GLshort>>).
 
1990
  cast(5269, <<S:?GLshort,T:?GLshort,R:?GLshort>>).
1624
1991
 
1625
1992
%% @spec ({S,T,R}) -> ok
1626
1993
%% @equiv texCoord3s(S,T,R)
 
1994
-spec texCoord3sv({integer(),integer(),integer()}) -> ok.
1627
1995
texCoord3sv({S,T,R}) ->  texCoord3s(S,T,R).
1628
1996
 
1629
1997
%% @spec (S::float(),T::float(),R::float(),Q::float()) -> ok
1630
1998
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
 
1999
-spec texCoord4d(float(),float(),float(),float()) -> ok.
1631
2000
texCoord4d(S,T,R,Q) ->
1632
 
  wxe_util:cast(5270, <<S:?GLdouble,T:?GLdouble,R:?GLdouble,Q:?GLdouble>>).
 
2001
  cast(5270, <<S:?GLdouble,T:?GLdouble,R:?GLdouble,Q:?GLdouble>>).
1633
2002
 
1634
2003
%% @spec ({S,T,R,Q}) -> ok
1635
2004
%% @equiv texCoord4d(S,T,R,Q)
 
2005
-spec texCoord4dv({float(),float(),float(),float()}) -> ok.
1636
2006
texCoord4dv({S,T,R,Q}) ->  texCoord4d(S,T,R,Q).
1637
2007
 
1638
2008
%% @spec (S::float(),T::float(),R::float(),Q::float()) -> ok
1639
2009
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
 
2010
-spec texCoord4f(float(),float(),float(),float()) -> ok.
1640
2011
texCoord4f(S,T,R,Q) ->
1641
 
  wxe_util:cast(5271, <<S:?GLfloat,T:?GLfloat,R:?GLfloat,Q:?GLfloat>>).
 
2012
  cast(5271, <<S:?GLfloat,T:?GLfloat,R:?GLfloat,Q:?GLfloat>>).
1642
2013
 
1643
2014
%% @spec ({S,T,R,Q}) -> ok
1644
2015
%% @equiv texCoord4f(S,T,R,Q)
 
2016
-spec texCoord4fv({float(),float(),float(),float()}) -> ok.
1645
2017
texCoord4fv({S,T,R,Q}) ->  texCoord4f(S,T,R,Q).
1646
2018
 
1647
2019
%% @spec (S::integer(),T::integer(),R::integer(),Q::integer()) -> ok
1648
2020
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
 
2021
-spec texCoord4i(integer(),integer(),integer(),integer()) -> ok.
1649
2022
texCoord4i(S,T,R,Q) ->
1650
 
  wxe_util:cast(5272, <<S:?GLint,T:?GLint,R:?GLint,Q:?GLint>>).
 
2023
  cast(5272, <<S:?GLint,T:?GLint,R:?GLint,Q:?GLint>>).
1651
2024
 
1652
2025
%% @spec ({S,T,R,Q}) -> ok
1653
2026
%% @equiv texCoord4i(S,T,R,Q)
 
2027
-spec texCoord4iv({integer(),integer(),integer(),integer()}) -> ok.
1654
2028
texCoord4iv({S,T,R,Q}) ->  texCoord4i(S,T,R,Q).
1655
2029
 
1656
2030
%% @spec (S::integer(),T::integer(),R::integer(),Q::integer()) -> ok
1657
2031
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
 
2032
-spec texCoord4s(integer(),integer(),integer(),integer()) -> ok.
1658
2033
texCoord4s(S,T,R,Q) ->
1659
 
  wxe_util:cast(5273, <<S:?GLshort,T:?GLshort,R:?GLshort,Q:?GLshort>>).
 
2034
  cast(5273, <<S:?GLshort,T:?GLshort,R:?GLshort,Q:?GLshort>>).
1660
2035
 
1661
2036
%% @spec ({S,T,R,Q}) -> ok
1662
2037
%% @equiv texCoord4s(S,T,R,Q)
 
2038
-spec texCoord4sv({integer(),integer(),integer(),integer()}) -> ok.
1663
2039
texCoord4sv({S,T,R,Q}) ->  texCoord4s(S,T,R,Q).
1664
2040
 
1665
 
%% @spec (Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
 
2041
%% @spec (Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|mem()) -> ok
1666
2042
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoordPointer.xml">external</a> documentation.
 
2043
-spec texCoordPointer(integer(),enum(),integer(),offset()|mem()) -> ok.
1667
2044
texCoordPointer(Size,Type,Stride,Pointer) when  is_integer(Pointer) ->
1668
 
  wxe_util:cast(5274, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
 
2045
  cast(5274, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
1669
2046
texCoordPointer(Size,Type,Stride,Pointer) ->
1670
 
  wxe_util:send_bin(Pointer),
1671
 
  wxe_util:cast(5275, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei>>).
 
2047
  send_bin(Pointer),
 
2048
  cast(5275, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei>>).
1672
2049
 
1673
2050
%% @spec (Target::enum(),Pname::enum(),Param::float()) -> ok
1674
2051
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexEnvf.xml">external</a> documentation.
 
2052
-spec texEnvf(enum(),enum(),float()) -> ok.
1675
2053
texEnvf(Target,Pname,Param) ->
1676
 
  wxe_util:cast(5276, <<Target:?GLenum,Pname:?GLenum,Param:?GLfloat>>).
 
2054
  cast(5276, <<Target:?GLenum,Pname:?GLenum,Param:?GLfloat>>).
1677
2055
 
1678
2056
%% @spec (Target::enum(),Pname::enum(),Params::{float()}) -> ok
1679
2057
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexEnv.xml">external</a> documentation.
 
2058
-spec texEnvfv(enum(),enum(),{float()}) -> ok.
1680
2059
texEnvfv(Target,Pname,Params) ->
1681
 
  wxe_util:cast(5277, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
 
2060
  cast(5277, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
1682
2061
      (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
1683
2062
 
1684
2063
%% @spec (Target::enum(),Pname::enum(),Param::integer()) -> ok
1685
2064
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexEnvi.xml">external</a> documentation.
 
2065
-spec texEnvi(enum(),enum(),integer()) -> ok.
1686
2066
texEnvi(Target,Pname,Param) ->
1687
 
  wxe_util:cast(5278, <<Target:?GLenum,Pname:?GLenum,Param:?GLint>>).
 
2067
  cast(5278, <<Target:?GLenum,Pname:?GLenum,Param:?GLint>>).
1688
2068
 
1689
2069
%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok
1690
2070
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexEnv.xml">external</a> documentation.
 
2071
-spec texEnviv(enum(),enum(),{integer()}) -> ok.
1691
2072
texEnviv(Target,Pname,Params) ->
1692
 
  wxe_util:cast(5279, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
 
2073
  cast(5279, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
1693
2074
      (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
1694
2075
 
1695
2076
%% @spec (Coord::enum(),Pname::enum(),Param::float()) -> ok
1696
2077
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml">external</a> documentation.
 
2078
-spec texGend(enum(),enum(),float()) -> ok.
1697
2079
texGend(Coord,Pname,Param) ->
1698
 
  wxe_util:cast(5280, <<Coord:?GLenum,Pname:?GLenum,Param:?GLdouble>>).
 
2080
  cast(5280, <<Coord:?GLenum,Pname:?GLenum,Param:?GLdouble>>).
1699
2081
 
1700
2082
%% @spec (Coord::enum(),Pname::enum(),Params::{float()}) -> ok
1701
2083
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml">external</a> documentation.
 
2084
-spec texGendv(enum(),enum(),{float()}) -> ok.
1702
2085
texGendv(Coord,Pname,Params) ->
1703
 
  wxe_util:cast(5281, <<Coord:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,0:32,
 
2086
  cast(5281, <<Coord:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,0:32,
1704
2087
      (<< <<C:?GLdouble>> ||C <- tuple_to_list(Params)>>)/binary>>).
1705
2088
 
1706
2089
%% @spec (Coord::enum(),Pname::enum(),Param::float()) -> ok
1707
2090
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml">external</a> documentation.
 
2091
-spec texGenf(enum(),enum(),float()) -> ok.
1708
2092
texGenf(Coord,Pname,Param) ->
1709
 
  wxe_util:cast(5282, <<Coord:?GLenum,Pname:?GLenum,Param:?GLfloat>>).
 
2093
  cast(5282, <<Coord:?GLenum,Pname:?GLenum,Param:?GLfloat>>).
1710
2094
 
1711
2095
%% @spec (Coord::enum(),Pname::enum(),Params::{float()}) -> ok
1712
2096
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml">external</a> documentation.
 
2097
-spec texGenfv(enum(),enum(),{float()}) -> ok.
1713
2098
texGenfv(Coord,Pname,Params) ->
1714
 
  wxe_util:cast(5283, <<Coord:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
 
2099
  cast(5283, <<Coord:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
1715
2100
      (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
1716
2101
 
1717
2102
%% @spec (Coord::enum(),Pname::enum(),Param::integer()) -> ok
1718
2103
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml">external</a> documentation.
 
2104
-spec texGeni(enum(),enum(),integer()) -> ok.
1719
2105
texGeni(Coord,Pname,Param) ->
1720
 
  wxe_util:cast(5284, <<Coord:?GLenum,Pname:?GLenum,Param:?GLint>>).
 
2106
  cast(5284, <<Coord:?GLenum,Pname:?GLenum,Param:?GLint>>).
1721
2107
 
1722
2108
%% @spec (Coord::enum(),Pname::enum(),Params::{integer()}) -> ok
1723
2109
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml">external</a> documentation.
 
2110
-spec texGeniv(enum(),enum(),{integer()}) -> ok.
1724
2111
texGeniv(Coord,Pname,Params) ->
1725
 
  wxe_util:cast(5285, <<Coord:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
 
2112
  cast(5285, <<Coord:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
1726
2113
      (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
1727
2114
 
1728
 
%% @spec (Target::enum(),Level::integer(),Internalformat::integer(),Width::integer(),Border::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
 
2115
%% @spec (Target::enum(),Level::integer(),Internalformat::integer(),Width::integer(),Border::integer(),Format::enum(),Type::enum(),Pixels::offset()|mem()) -> ok
1729
2116
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexImage1D.xml">external</a> documentation.
 
2117
-spec texImage1D(enum(),integer(),integer(),integer(),integer(),enum(),enum(),offset()|mem()) -> ok.
1730
2118
texImage1D(Target,Level,Internalformat,Width,Border,Format,Type,Pixels) when  is_integer(Pixels) ->
1731
 
  wxe_util:cast(5286, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
 
2119
  cast(5286, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
1732
2120
texImage1D(Target,Level,Internalformat,Width,Border,Format,Type,Pixels) ->
1733
 
  wxe_util:send_bin(Pixels),
1734
 
  wxe_util:cast(5287, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum>>).
 
2121
  send_bin(Pixels),
 
2122
  cast(5287, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum>>).
1735
2123
 
1736
 
%% @spec (Target::enum(),Level::integer(),Internalformat::integer(),Width::integer(),Height::integer(),Border::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
 
2124
%% @spec (Target::enum(),Level::integer(),Internalformat::integer(),Width::integer(),Height::integer(),Border::integer(),Format::enum(),Type::enum(),Pixels::offset()|mem()) -> ok
1737
2125
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexImage2D.xml">external</a> documentation.
 
2126
-spec texImage2D(enum(),integer(),integer(),integer(),integer(),integer(),enum(),enum(),offset()|mem()) -> ok.
1738
2127
texImage2D(Target,Level,Internalformat,Width,Height,Border,Format,Type,Pixels) when  is_integer(Pixels) ->
1739
 
  wxe_util:cast(5288, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Height:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
 
2128
  cast(5288, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Height:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
1740
2129
texImage2D(Target,Level,Internalformat,Width,Height,Border,Format,Type,Pixels) ->
1741
 
  wxe_util:send_bin(Pixels),
1742
 
  wxe_util:cast(5289, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Height:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum>>).
 
2130
  send_bin(Pixels),
 
2131
  cast(5289, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Height:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum>>).
1743
2132
 
1744
2133
%% @spec (Target::enum(),Pname::enum(),Param::float()) -> ok
1745
2134
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexParameter.xml">external</a> documentation.
 
2135
-spec texParameterf(enum(),enum(),float()) -> ok.
1746
2136
texParameterf(Target,Pname,Param) ->
1747
 
  wxe_util:cast(5290, <<Target:?GLenum,Pname:?GLenum,Param:?GLfloat>>).
 
2137
  cast(5290, <<Target:?GLenum,Pname:?GLenum,Param:?GLfloat>>).
1748
2138
 
1749
2139
%% @spec (Target::enum(),Pname::enum(),Params::{float()}) -> ok
1750
2140
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexParameter.xml">external</a> documentation.
 
2141
-spec texParameterfv(enum(),enum(),{float()}) -> ok.
1751
2142
texParameterfv(Target,Pname,Params) ->
1752
 
  wxe_util:cast(5291, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
 
2143
  cast(5291, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
1753
2144
      (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
1754
2145
 
1755
2146
%% @spec (Target::enum(),Pname::enum(),Param::integer()) -> ok
1756
2147
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexParameter.xml">external</a> documentation.
 
2148
-spec texParameteri(enum(),enum(),integer()) -> ok.
1757
2149
texParameteri(Target,Pname,Param) ->
1758
 
  wxe_util:cast(5292, <<Target:?GLenum,Pname:?GLenum,Param:?GLint>>).
 
2150
  cast(5292, <<Target:?GLenum,Pname:?GLenum,Param:?GLint>>).
1759
2151
 
1760
2152
%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok
1761
2153
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexParameter.xml">external</a> documentation.
 
2154
-spec texParameteriv(enum(),enum(),{integer()}) -> ok.
1762
2155
texParameteriv(Target,Pname,Params) ->
1763
 
  wxe_util:cast(5293, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
 
2156
  cast(5293, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
1764
2157
      (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
1765
2158
 
1766
 
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Width::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
 
2159
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Width::integer(),Format::enum(),Type::enum(),Pixels::offset()|mem()) -> ok
1767
2160
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexSubImage1D.xml">external</a> documentation.
 
2161
-spec texSubImage1D(enum(),integer(),integer(),integer(),enum(),enum(),offset()|mem()) -> ok.
1768
2162
texSubImage1D(Target,Level,Xoffset,Width,Format,Type,Pixels) when  is_integer(Pixels) ->
1769
 
  wxe_util:cast(5294, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Width:?GLsizei,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
 
2163
  cast(5294, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Width:?GLsizei,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
1770
2164
texSubImage1D(Target,Level,Xoffset,Width,Format,Type,Pixels) ->
1771
 
  wxe_util:send_bin(Pixels),
1772
 
  wxe_util:cast(5295, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Width:?GLsizei,Format:?GLenum,Type:?GLenum>>).
 
2165
  send_bin(Pixels),
 
2166
  cast(5295, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Width:?GLsizei,Format:?GLenum,Type:?GLenum>>).
1773
2167
 
1774
 
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
 
2168
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Pixels::offset()|mem()) -> ok
1775
2169
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexSubImage2D.xml">external</a> documentation.
 
2170
-spec texSubImage2D(enum(),integer(),integer(),integer(),integer(),integer(),enum(),enum(),offset()|mem()) -> ok.
1776
2171
texSubImage2D(Target,Level,Xoffset,Yoffset,Width,Height,Format,Type,Pixels) when  is_integer(Pixels) ->
1777
 
  wxe_util:cast(5296, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
 
2172
  cast(5296, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
1778
2173
texSubImage2D(Target,Level,Xoffset,Yoffset,Width,Height,Format,Type,Pixels) ->
1779
 
  wxe_util:send_bin(Pixels),
1780
 
  wxe_util:cast(5297, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum>>).
 
2174
  send_bin(Pixels),
 
2175
  cast(5297, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum>>).
1781
2176
 
1782
2177
%% @spec (X::float(),Y::float(),Z::float()) -> ok
1783
2178
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTranslate.xml">external</a> documentation.
 
2179
-spec translated(float(),float(),float()) -> ok.
1784
2180
translated(X,Y,Z) ->
1785
 
  wxe_util:cast(5298, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
 
2181
  cast(5298, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
1786
2182
 
1787
2183
%% @spec (X::float(),Y::float(),Z::float()) -> ok
1788
2184
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTranslate.xml">external</a> documentation.
 
2185
-spec translatef(float(),float(),float()) -> ok.
1789
2186
translatef(X,Y,Z) ->
1790
 
  wxe_util:cast(5299, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
 
2187
  cast(5299, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
1791
2188
 
1792
2189
%% @spec (X::float(),Y::float()) -> ok
1793
2190
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
 
2191
-spec vertex2d(float(),float()) -> ok.
1794
2192
vertex2d(X,Y) ->
1795
 
  wxe_util:cast(5300, <<X:?GLdouble,Y:?GLdouble>>).
 
2193
  cast(5300, <<X:?GLdouble,Y:?GLdouble>>).
1796
2194
 
1797
2195
%% @spec ({X,Y}) -> ok
1798
2196
%% @equiv vertex2d(X,Y)
 
2197
-spec vertex2dv({float(),float()}) -> ok.
1799
2198
vertex2dv({X,Y}) ->  vertex2d(X,Y).
1800
2199
 
1801
2200
%% @spec (X::float(),Y::float()) -> ok
1802
2201
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
 
2202
-spec vertex2f(float(),float()) -> ok.
1803
2203
vertex2f(X,Y) ->
1804
 
  wxe_util:cast(5301, <<X:?GLfloat,Y:?GLfloat>>).
 
2204
  cast(5301, <<X:?GLfloat,Y:?GLfloat>>).
1805
2205
 
1806
2206
%% @spec ({X,Y}) -> ok
1807
2207
%% @equiv vertex2f(X,Y)
 
2208
-spec vertex2fv({float(),float()}) -> ok.
1808
2209
vertex2fv({X,Y}) ->  vertex2f(X,Y).
1809
2210
 
1810
2211
%% @spec (X::integer(),Y::integer()) -> ok
1811
2212
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
 
2213
-spec vertex2i(integer(),integer()) -> ok.
1812
2214
vertex2i(X,Y) ->
1813
 
  wxe_util:cast(5302, <<X:?GLint,Y:?GLint>>).
 
2215
  cast(5302, <<X:?GLint,Y:?GLint>>).
1814
2216
 
1815
2217
%% @spec ({X,Y}) -> ok
1816
2218
%% @equiv vertex2i(X,Y)
 
2219
-spec vertex2iv({integer(),integer()}) -> ok.
1817
2220
vertex2iv({X,Y}) ->  vertex2i(X,Y).
1818
2221
 
1819
2222
%% @spec (X::integer(),Y::integer()) -> ok
1820
2223
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
 
2224
-spec vertex2s(integer(),integer()) -> ok.
1821
2225
vertex2s(X,Y) ->
1822
 
  wxe_util:cast(5303, <<X:?GLshort,Y:?GLshort>>).
 
2226
  cast(5303, <<X:?GLshort,Y:?GLshort>>).
1823
2227
 
1824
2228
%% @spec ({X,Y}) -> ok
1825
2229
%% @equiv vertex2s(X,Y)
 
2230
-spec vertex2sv({integer(),integer()}) -> ok.
1826
2231
vertex2sv({X,Y}) ->  vertex2s(X,Y).
1827
2232
 
1828
2233
%% @spec (X::float(),Y::float(),Z::float()) -> ok
1829
2234
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
 
2235
-spec vertex3d(float(),float(),float()) -> ok.
1830
2236
vertex3d(X,Y,Z) ->
1831
 
  wxe_util:cast(5304, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
 
2237
  cast(5304, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
1832
2238
 
1833
2239
%% @spec ({X,Y,Z}) -> ok
1834
2240
%% @equiv vertex3d(X,Y,Z)
 
2241
-spec vertex3dv({float(),float(),float()}) -> ok.
1835
2242
vertex3dv({X,Y,Z}) ->  vertex3d(X,Y,Z).
1836
2243
 
1837
2244
%% @spec (X::float(),Y::float(),Z::float()) -> ok
1838
2245
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
 
2246
-spec vertex3f(float(),float(),float()) -> ok.
1839
2247
vertex3f(X,Y,Z) ->
1840
 
  wxe_util:cast(5305, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
 
2248
  cast(5305, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
1841
2249
 
1842
2250
%% @spec ({X,Y,Z}) -> ok
1843
2251
%% @equiv vertex3f(X,Y,Z)
 
2252
-spec vertex3fv({float(),float(),float()}) -> ok.
1844
2253
vertex3fv({X,Y,Z}) ->  vertex3f(X,Y,Z).
1845
2254
 
1846
2255
%% @spec (X::integer(),Y::integer(),Z::integer()) -> ok
1847
2256
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
 
2257
-spec vertex3i(integer(),integer(),integer()) -> ok.
1848
2258
vertex3i(X,Y,Z) ->
1849
 
  wxe_util:cast(5306, <<X:?GLint,Y:?GLint,Z:?GLint>>).
 
2259
  cast(5306, <<X:?GLint,Y:?GLint,Z:?GLint>>).
1850
2260
 
1851
2261
%% @spec ({X,Y,Z}) -> ok
1852
2262
%% @equiv vertex3i(X,Y,Z)
 
2263
-spec vertex3iv({integer(),integer(),integer()}) -> ok.
1853
2264
vertex3iv({X,Y,Z}) ->  vertex3i(X,Y,Z).
1854
2265
 
1855
2266
%% @spec (X::integer(),Y::integer(),Z::integer()) -> ok
1856
2267
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
 
2268
-spec vertex3s(integer(),integer(),integer()) -> ok.
1857
2269
vertex3s(X,Y,Z) ->
1858
 
  wxe_util:cast(5307, <<X:?GLshort,Y:?GLshort,Z:?GLshort>>).
 
2270
  cast(5307, <<X:?GLshort,Y:?GLshort,Z:?GLshort>>).
1859
2271
 
1860
2272
%% @spec ({X,Y,Z}) -> ok
1861
2273
%% @equiv vertex3s(X,Y,Z)
 
2274
-spec vertex3sv({integer(),integer(),integer()}) -> ok.
1862
2275
vertex3sv({X,Y,Z}) ->  vertex3s(X,Y,Z).
1863
2276
 
1864
2277
%% @spec (X::float(),Y::float(),Z::float(),W::float()) -> ok
1865
2278
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
 
2279
-spec vertex4d(float(),float(),float(),float()) -> ok.
1866
2280
vertex4d(X,Y,Z,W) ->
1867
 
  wxe_util:cast(5308, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
 
2281
  cast(5308, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
1868
2282
 
1869
2283
%% @spec ({X,Y,Z,W}) -> ok
1870
2284
%% @equiv vertex4d(X,Y,Z,W)
 
2285
-spec vertex4dv({float(),float(),float(),float()}) -> ok.
1871
2286
vertex4dv({X,Y,Z,W}) ->  vertex4d(X,Y,Z,W).
1872
2287
 
1873
2288
%% @spec (X::float(),Y::float(),Z::float(),W::float()) -> ok
1874
2289
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
 
2290
-spec vertex4f(float(),float(),float(),float()) -> ok.
1875
2291
vertex4f(X,Y,Z,W) ->
1876
 
  wxe_util:cast(5309, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
 
2292
  cast(5309, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
1877
2293
 
1878
2294
%% @spec ({X,Y,Z,W}) -> ok
1879
2295
%% @equiv vertex4f(X,Y,Z,W)
 
2296
-spec vertex4fv({float(),float(),float(),float()}) -> ok.
1880
2297
vertex4fv({X,Y,Z,W}) ->  vertex4f(X,Y,Z,W).
1881
2298
 
1882
2299
%% @spec (X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
1883
2300
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
 
2301
-spec vertex4i(integer(),integer(),integer(),integer()) -> ok.
1884
2302
vertex4i(X,Y,Z,W) ->
1885
 
  wxe_util:cast(5310, <<X:?GLint,Y:?GLint,Z:?GLint,W:?GLint>>).
 
2303
  cast(5310, <<X:?GLint,Y:?GLint,Z:?GLint,W:?GLint>>).
1886
2304
 
1887
2305
%% @spec ({X,Y,Z,W}) -> ok
1888
2306
%% @equiv vertex4i(X,Y,Z,W)
 
2307
-spec vertex4iv({integer(),integer(),integer(),integer()}) -> ok.
1889
2308
vertex4iv({X,Y,Z,W}) ->  vertex4i(X,Y,Z,W).
1890
2309
 
1891
2310
%% @spec (X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
1892
2311
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
 
2312
-spec vertex4s(integer(),integer(),integer(),integer()) -> ok.
1893
2313
vertex4s(X,Y,Z,W) ->
1894
 
  wxe_util:cast(5311, <<X:?GLshort,Y:?GLshort,Z:?GLshort,W:?GLshort>>).
 
2314
  cast(5311, <<X:?GLshort,Y:?GLshort,Z:?GLshort,W:?GLshort>>).
1895
2315
 
1896
2316
%% @spec ({X,Y,Z,W}) -> ok
1897
2317
%% @equiv vertex4s(X,Y,Z,W)
 
2318
-spec vertex4sv({integer(),integer(),integer(),integer()}) -> ok.
1898
2319
vertex4sv({X,Y,Z,W}) ->  vertex4s(X,Y,Z,W).
1899
2320
 
1900
 
%% @spec (Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
 
2321
%% @spec (Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|mem()) -> ok
1901
2322
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexPointer.xml">external</a> documentation.
 
2323
-spec vertexPointer(integer(),enum(),integer(),offset()|mem()) -> ok.
1902
2324
vertexPointer(Size,Type,Stride,Pointer) when  is_integer(Pointer) ->
1903
 
  wxe_util:cast(5312, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
 
2325
  cast(5312, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
1904
2326
vertexPointer(Size,Type,Stride,Pointer) ->
1905
 
  wxe_util:send_bin(Pointer),
1906
 
  wxe_util:cast(5313, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei>>).
 
2327
  send_bin(Pointer),
 
2328
  cast(5313, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei>>).
1907
2329
 
1908
2330
%% @spec (X::integer(),Y::integer(),Width::integer(),Height::integer()) -> ok
1909
2331
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glViewport.xml">external</a> documentation.
 
2332
-spec viewport(integer(),integer(),integer(),integer()) -> ok.
1910
2333
viewport(X,Y,Width,Height) ->
1911
 
  wxe_util:cast(5314, <<X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei>>).
 
2334
  cast(5314, <<X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei>>).
1912
2335
 
1913
2336
%% @spec (Red::clamp(),Green::clamp(),Blue::clamp(),Alpha::clamp()) -> ok
1914
2337
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlendColor.xml">external</a> documentation.
 
2338
-spec blendColor(clamp(),clamp(),clamp(),clamp()) -> ok.
1915
2339
blendColor(Red,Green,Blue,Alpha) ->
1916
 
  wxe_util:cast(5315, <<Red:?GLclampf,Green:?GLclampf,Blue:?GLclampf,Alpha:?GLclampf>>).
 
2340
  cast(5315, <<Red:?GLclampf,Green:?GLclampf,Blue:?GLclampf,Alpha:?GLclampf>>).
1917
2341
 
1918
2342
%% @spec (Mode::enum()) -> ok
1919
2343
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlendEquation.xml">external</a> documentation.
 
2344
-spec blendEquation(enum()) -> ok.
1920
2345
blendEquation(Mode) ->
1921
 
  wxe_util:cast(5316, <<Mode:?GLenum>>).
 
2346
  cast(5316, <<Mode:?GLenum>>).
1922
2347
 
1923
 
%% @spec (Mode::enum(),Start::integer(),End::integer(),Count::integer(),Type::enum(),Indices::offset()|binary()) -> ok
 
2348
%% @spec (Mode::enum(),Start::integer(),End::integer(),Count::integer(),Type::enum(),Indices::offset()|mem()) -> ok
1924
2349
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawRangeElements.xml">external</a> documentation.
 
2350
-spec drawRangeElements(enum(),integer(),integer(),integer(),enum(),offset()|mem()) -> ok.
1925
2351
drawRangeElements(Mode,Start,End,Count,Type,Indices) when  is_integer(Indices) ->
1926
 
  wxe_util:cast(5317, <<Mode:?GLenum,Start:?GLuint,End:?GLuint,Count:?GLsizei,Type:?GLenum,Indices:?GLuint>>);
 
2352
  cast(5317, <<Mode:?GLenum,Start:?GLuint,End:?GLuint,Count:?GLsizei,Type:?GLenum,Indices:?GLuint>>);
1927
2353
drawRangeElements(Mode,Start,End,Count,Type,Indices) ->
1928
 
  wxe_util:send_bin(Indices),
1929
 
  wxe_util:cast(5318, <<Mode:?GLenum,Start:?GLuint,End:?GLuint,Count:?GLsizei,Type:?GLenum>>).
 
2354
  send_bin(Indices),
 
2355
  cast(5318, <<Mode:?GLenum,Start:?GLuint,End:?GLuint,Count:?GLsizei,Type:?GLenum>>).
1930
2356
 
1931
 
%% @spec (Target::enum(),Level::integer(),Internalformat::integer(),Width::integer(),Height::integer(),Depth::integer(),Border::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
 
2357
%% @spec (Target::enum(),Level::integer(),Internalformat::integer(),Width::integer(),Height::integer(),Depth::integer(),Border::integer(),Format::enum(),Type::enum(),Pixels::offset()|mem()) -> ok
1932
2358
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexImage3D.xml">external</a> documentation.
 
2359
-spec texImage3D(enum(),integer(),integer(),integer(),integer(),integer(),integer(),enum(),enum(),offset()|mem()) -> ok.
1933
2360
texImage3D(Target,Level,Internalformat,Width,Height,Depth,Border,Format,Type,Pixels) when  is_integer(Pixels) ->
1934
 
  wxe_util:cast(5319, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
 
2361
  cast(5319, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
1935
2362
texImage3D(Target,Level,Internalformat,Width,Height,Depth,Border,Format,Type,Pixels) ->
1936
 
  wxe_util:send_bin(Pixels),
1937
 
  wxe_util:cast(5320, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum>>).
 
2363
  send_bin(Pixels),
 
2364
  cast(5320, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum>>).
1938
2365
 
1939
 
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Zoffset::integer(),Width::integer(),Height::integer(),Depth::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
 
2366
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Zoffset::integer(),Width::integer(),Height::integer(),Depth::integer(),Format::enum(),Type::enum(),Pixels::offset()|mem()) -> ok
1940
2367
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexSubImage3D.xml">external</a> documentation.
 
2368
-spec texSubImage3D(enum(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),enum(),enum(),offset()|mem()) -> ok.
1941
2369
texSubImage3D(Target,Level,Xoffset,Yoffset,Zoffset,Width,Height,Depth,Format,Type,Pixels) when  is_integer(Pixels) ->
1942
 
  wxe_util:cast(5321, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Zoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
 
2370
  cast(5321, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Zoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
1943
2371
texSubImage3D(Target,Level,Xoffset,Yoffset,Zoffset,Width,Height,Depth,Format,Type,Pixels) ->
1944
 
  wxe_util:send_bin(Pixels),
1945
 
  wxe_util:cast(5322, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Zoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Format:?GLenum,Type:?GLenum>>).
 
2372
  send_bin(Pixels),
 
2373
  cast(5322, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Zoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Format:?GLenum,Type:?GLenum>>).
1946
2374
 
1947
2375
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Zoffset::integer(),X::integer(),Y::integer(),Width::integer(),Height::integer()) -> ok
1948
2376
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyTexSubImage3D.xml">external</a> documentation.
 
2377
-spec copyTexSubImage3D(enum(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer()) -> ok.
1949
2378
copyTexSubImage3D(Target,Level,Xoffset,Yoffset,Zoffset,X,Y,Width,Height) ->
1950
 
  wxe_util:cast(5323, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Zoffset:?GLint,X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei>>).
 
2379
  cast(5323, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Zoffset:?GLint,X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei>>).
1951
2380
 
1952
 
%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Format::enum(),Type::enum(),Table::offset()|binary()) -> ok
 
2381
%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Format::enum(),Type::enum(),Table::offset()|mem()) -> ok
1953
2382
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorTable.xml">external</a> documentation.
 
2383
-spec colorTable(enum(),enum(),integer(),enum(),enum(),offset()|mem()) -> ok.
1954
2384
colorTable(Target,Internalformat,Width,Format,Type,Table) when  is_integer(Table) ->
1955
 
  wxe_util:cast(5324, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Format:?GLenum,Type:?GLenum,Table:?GLuint>>);
 
2385
  cast(5324, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Format:?GLenum,Type:?GLenum,Table:?GLuint>>);
1956
2386
colorTable(Target,Internalformat,Width,Format,Type,Table) ->
1957
 
  wxe_util:send_bin(Table),
1958
 
  wxe_util:cast(5325, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Format:?GLenum,Type:?GLenum>>).
 
2387
  send_bin(Table),
 
2388
  cast(5325, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Format:?GLenum,Type:?GLenum>>).
1959
2389
 
1960
 
%% @spec (Target::enum(),Pname::enum(),Params::{float()}) -> ok
 
2390
%% @spec (Target::enum(),Pname::enum(),Params::{float(),float(),float(),float()}) -> ok
1961
2391
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorTableParameter.xml">external</a> documentation.
 
2392
-spec colorTableParameterfv(enum(),enum(),{float(),float(),float(),float()}) -> ok.
1962
2393
colorTableParameterfv(Target,Pname,{P1,P2,P3,P4}) ->
1963
 
  wxe_util:cast(5326, <<Target:?GLenum,Pname:?GLenum,P1:?GLfloat,P2:?GLfloat,P3:?GLfloat,P4:?GLfloat>>).
 
2394
  cast(5326, <<Target:?GLenum,Pname:?GLenum,P1:?GLfloat,P2:?GLfloat,P3:?GLfloat,P4:?GLfloat>>).
1964
2395
 
1965
 
%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok
 
2396
%% @spec (Target::enum(),Pname::enum(),Params::{integer(),integer(),integer(),integer()}) -> ok
1966
2397
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorTableParameter.xml">external</a> documentation.
 
2398
-spec colorTableParameteriv(enum(),enum(),{integer(),integer(),integer(),integer()}) -> ok.
1967
2399
colorTableParameteriv(Target,Pname,{P1,P2,P3,P4}) ->
1968
 
  wxe_util:cast(5327, <<Target:?GLenum,Pname:?GLenum,P1:?GLint,P2:?GLint,P3:?GLint,P4:?GLint>>).
 
2400
  cast(5327, <<Target:?GLenum,Pname:?GLenum,P1:?GLint,P2:?GLint,P3:?GLint,P4:?GLint>>).
1969
2401
 
1970
2402
%% @spec (Target::enum(),Internalformat::enum(),X::integer(),Y::integer(),Width::integer()) -> ok
1971
2403
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyColorTable.xml">external</a> documentation.
 
2404
-spec copyColorTable(enum(),enum(),integer(),integer(),integer()) -> ok.
1972
2405
copyColorTable(Target,Internalformat,X,Y,Width) ->
1973
 
  wxe_util:cast(5328, <<Target:?GLenum,Internalformat:?GLenum,X:?GLint,Y:?GLint,Width:?GLsizei>>).
 
2406
  cast(5328, <<Target:?GLenum,Internalformat:?GLenum,X:?GLint,Y:?GLint,Width:?GLsizei>>).
1974
2407
 
1975
 
%% @spec (Target::enum(),Format::enum(),Type::enum(),Table::wx:wx_mem()) -> ok
 
2408
%% @spec (Target::enum(),Format::enum(),Type::enum(),Table::mem()) -> ok
1976
2409
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetColorTable.xml">external</a> documentation.
 
2410
-spec getColorTable(enum(),enum(),enum(),mem()) -> ok.
1977
2411
getColorTable(Target,Format,Type,Table) ->
1978
 
  wxe_util:send_bin(Table#wx_mem.bin),
1979
 
  wxe_util:call(5329, <<Target:?GLenum,Format:?GLenum,Type:?GLenum>>).
 
2412
  send_bin(Table),
 
2413
  call(5329, <<Target:?GLenum,Format:?GLenum,Type:?GLenum>>).
1980
2414
 
1981
 
%% @spec (Target::enum(),Pname::enum()) -> {float()}
 
2415
%% @spec (Target::enum(),Pname::enum()) -> {float(),float(),float(),float()}
1982
2416
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetColorTableParameter.xml">external</a> documentation.
 
2417
-spec getColorTableParameterfv(enum(),enum()) -> {float(),float(),float(),float()}.
1983
2418
getColorTableParameterfv(Target,Pname) ->
1984
 
  wxe_util:call(5330, <<Target:?GLenum,Pname:?GLenum>>).
 
2419
  call(5330, <<Target:?GLenum,Pname:?GLenum>>).
1985
2420
 
1986
 
%% @spec (Target::enum(),Pname::enum()) -> {integer()}
 
2421
%% @spec (Target::enum(),Pname::enum()) -> {integer(),integer(),integer(),integer()}
1987
2422
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetColorTableParameter.xml">external</a> documentation.
 
2423
-spec getColorTableParameteriv(enum(),enum()) -> {integer(),integer(),integer(),integer()}.
1988
2424
getColorTableParameteriv(Target,Pname) ->
1989
 
  wxe_util:call(5331, <<Target:?GLenum,Pname:?GLenum>>).
 
2425
  call(5331, <<Target:?GLenum,Pname:?GLenum>>).
1990
2426
 
1991
 
%% @spec (Target::enum(),Start::integer(),Count::integer(),Format::enum(),Type::enum(),Data::offset()|binary()) -> ok
 
2427
%% @spec (Target::enum(),Start::integer(),Count::integer(),Format::enum(),Type::enum(),Data::offset()|mem()) -> ok
1992
2428
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorSubTable.xml">external</a> documentation.
 
2429
-spec colorSubTable(enum(),integer(),integer(),enum(),enum(),offset()|mem()) -> ok.
1993
2430
colorSubTable(Target,Start,Count,Format,Type,Data) when  is_integer(Data) ->
1994
 
  wxe_util:cast(5332, <<Target:?GLenum,Start:?GLsizei,Count:?GLsizei,Format:?GLenum,Type:?GLenum,Data:?GLuint>>);
 
2431
  cast(5332, <<Target:?GLenum,Start:?GLsizei,Count:?GLsizei,Format:?GLenum,Type:?GLenum,Data:?GLuint>>);
1995
2432
colorSubTable(Target,Start,Count,Format,Type,Data) ->
1996
 
  wxe_util:send_bin(Data),
1997
 
  wxe_util:cast(5333, <<Target:?GLenum,Start:?GLsizei,Count:?GLsizei,Format:?GLenum,Type:?GLenum>>).
 
2433
  send_bin(Data),
 
2434
  cast(5333, <<Target:?GLenum,Start:?GLsizei,Count:?GLsizei,Format:?GLenum,Type:?GLenum>>).
1998
2435
 
1999
2436
%% @spec (Target::enum(),Start::integer(),X::integer(),Y::integer(),Width::integer()) -> ok
2000
2437
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyColorSubTable.xml">external</a> documentation.
 
2438
-spec copyColorSubTable(enum(),integer(),integer(),integer(),integer()) -> ok.
2001
2439
copyColorSubTable(Target,Start,X,Y,Width) ->
2002
 
  wxe_util:cast(5334, <<Target:?GLenum,Start:?GLsizei,X:?GLint,Y:?GLint,Width:?GLsizei>>).
 
2440
  cast(5334, <<Target:?GLenum,Start:?GLsizei,X:?GLint,Y:?GLint,Width:?GLsizei>>).
2003
2441
 
2004
 
%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Format::enum(),Type::enum(),Image::offset()|binary()) -> ok
 
2442
%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Format::enum(),Type::enum(),Image::offset()|mem()) -> ok
2005
2443
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glConvolutionFilter1D.xml">external</a> documentation.
 
2444
-spec convolutionFilter1D(enum(),enum(),integer(),enum(),enum(),offset()|mem()) -> ok.
2006
2445
convolutionFilter1D(Target,Internalformat,Width,Format,Type,Image) when  is_integer(Image) ->
2007
 
  wxe_util:cast(5335, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Format:?GLenum,Type:?GLenum,Image:?GLuint>>);
 
2446
  cast(5335, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Format:?GLenum,Type:?GLenum,Image:?GLuint>>);
2008
2447
convolutionFilter1D(Target,Internalformat,Width,Format,Type,Image) ->
2009
 
  wxe_util:send_bin(Image),
2010
 
  wxe_util:cast(5336, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Format:?GLenum,Type:?GLenum>>).
 
2448
  send_bin(Image),
 
2449
  cast(5336, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Format:?GLenum,Type:?GLenum>>).
2011
2450
 
2012
 
%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Image::offset()|binary()) -> ok
 
2451
%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Image::offset()|mem()) -> ok
2013
2452
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glConvolutionFilter2D.xml">external</a> documentation.
 
2453
-spec convolutionFilter2D(enum(),enum(),integer(),integer(),enum(),enum(),offset()|mem()) -> ok.
2014
2454
convolutionFilter2D(Target,Internalformat,Width,Height,Format,Type,Image) when  is_integer(Image) ->
2015
 
  wxe_util:cast(5337, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum,Image:?GLuint>>);
 
2455
  cast(5337, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum,Image:?GLuint>>);
2016
2456
convolutionFilter2D(Target,Internalformat,Width,Height,Format,Type,Image) ->
2017
 
  wxe_util:send_bin(Image),
2018
 
  wxe_util:cast(5338, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum>>).
 
2457
  send_bin(Image),
 
2458
  cast(5338, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum>>).
2019
2459
 
2020
2460
%% @spec (Target::enum(),Pname::enum(),Params::{float()}) -> ok
2021
2461
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glConvolutionParameter.xml">external</a> documentation.
 
2462
-spec convolutionParameterf(enum(),enum(),{float()}) -> ok.
2022
2463
convolutionParameterf(Target,Pname,Params) ->
2023
 
  wxe_util:cast(5339, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
 
2464
  cast(5339, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
2024
2465
      (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
2025
2466
 
2026
2467
%% @spec (Target,Pname,{Params}) -> ok
2027
2468
%% @equiv convolutionParameterf(Target,Pname,Params)
 
2469
-spec convolutionParameterfv(enum(),enum(),{{float()}}) -> ok.
2028
2470
convolutionParameterfv(Target,Pname,{Params}) ->  convolutionParameterf(Target,Pname,Params).
2029
2471
 
2030
2472
%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok
2031
2473
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glConvolutionParameter.xml">external</a> documentation.
 
2474
-spec convolutionParameteri(enum(),enum(),{integer()}) -> ok.
2032
2475
convolutionParameteri(Target,Pname,Params) ->
2033
 
  wxe_util:cast(5340, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
 
2476
  cast(5340, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
2034
2477
      (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
2035
2478
 
2036
2479
%% @spec (Target,Pname,{Params}) -> ok
2037
2480
%% @equiv convolutionParameteri(Target,Pname,Params)
 
2481
-spec convolutionParameteriv(enum(),enum(),{{integer()}}) -> ok.
2038
2482
convolutionParameteriv(Target,Pname,{Params}) ->  convolutionParameteri(Target,Pname,Params).
2039
2483
 
2040
2484
%% @spec (Target::enum(),Internalformat::enum(),X::integer(),Y::integer(),Width::integer()) -> ok
2041
2485
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyConvolutionFilter1D.xml">external</a> documentation.
 
2486
-spec copyConvolutionFilter1D(enum(),enum(),integer(),integer(),integer()) -> ok.
2042
2487
copyConvolutionFilter1D(Target,Internalformat,X,Y,Width) ->
2043
 
  wxe_util:cast(5341, <<Target:?GLenum,Internalformat:?GLenum,X:?GLint,Y:?GLint,Width:?GLsizei>>).
 
2488
  cast(5341, <<Target:?GLenum,Internalformat:?GLenum,X:?GLint,Y:?GLint,Width:?GLsizei>>).
2044
2489
 
2045
2490
%% @spec (Target::enum(),Internalformat::enum(),X::integer(),Y::integer(),Width::integer(),Height::integer()) -> ok
2046
2491
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyConvolutionFilter2D.xml">external</a> documentation.
 
2492
-spec copyConvolutionFilter2D(enum(),enum(),integer(),integer(),integer(),integer()) -> ok.
2047
2493
copyConvolutionFilter2D(Target,Internalformat,X,Y,Width,Height) ->
2048
 
  wxe_util:cast(5342, <<Target:?GLenum,Internalformat:?GLenum,X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei>>).
 
2494
  cast(5342, <<Target:?GLenum,Internalformat:?GLenum,X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei>>).
2049
2495
 
2050
 
%% @spec (Target::enum(),Format::enum(),Type::enum(),Image::wx:wx_mem()) -> ok
 
2496
%% @spec (Target::enum(),Format::enum(),Type::enum(),Image::mem()) -> ok
2051
2497
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetConvolutionFilter.xml">external</a> documentation.
 
2498
-spec getConvolutionFilter(enum(),enum(),enum(),mem()) -> ok.
2052
2499
getConvolutionFilter(Target,Format,Type,Image) ->
2053
 
  wxe_util:send_bin(Image#wx_mem.bin),
2054
 
  wxe_util:call(5343, <<Target:?GLenum,Format:?GLenum,Type:?GLenum>>).
 
2500
  send_bin(Image),
 
2501
  call(5343, <<Target:?GLenum,Format:?GLenum,Type:?GLenum>>).
2055
2502
 
2056
 
%% @spec (Target::enum(),Pname::enum()) -> {float()}
 
2503
%% @spec (Target::enum(),Pname::enum()) -> {float(),float(),float(),float()}
2057
2504
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetConvolutionParameter.xml">external</a> documentation.
 
2505
-spec getConvolutionParameterfv(enum(),enum()) -> {float(),float(),float(),float()}.
2058
2506
getConvolutionParameterfv(Target,Pname) ->
2059
 
  wxe_util:call(5344, <<Target:?GLenum,Pname:?GLenum>>).
 
2507
  call(5344, <<Target:?GLenum,Pname:?GLenum>>).
2060
2508
 
2061
 
%% @spec (Target::enum(),Pname::enum()) -> {integer()}
 
2509
%% @spec (Target::enum(),Pname::enum()) -> {integer(),integer(),integer(),integer()}
2062
2510
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetConvolutionParameter.xml">external</a> documentation.
 
2511
-spec getConvolutionParameteriv(enum(),enum()) -> {integer(),integer(),integer(),integer()}.
2063
2512
getConvolutionParameteriv(Target,Pname) ->
2064
 
  wxe_util:call(5345, <<Target:?GLenum,Pname:?GLenum>>).
 
2513
  call(5345, <<Target:?GLenum,Pname:?GLenum>>).
2065
2514
 
2066
 
%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Row::offset()|binary(),Column::offset()|binary()) -> ok
 
2515
%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Row::offset()|mem(),Column::offset()|mem()) -> ok
2067
2516
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSeparableFilter2D.xml">external</a> documentation.
 
2517
-spec separableFilter2D(enum(),enum(),integer(),integer(),enum(),enum(),offset()|mem(),offset()|mem()) -> ok.
2068
2518
separableFilter2D(Target,Internalformat,Width,Height,Format,Type,Row,Column) when  is_integer(Row), is_integer(Column) ->
2069
 
  wxe_util:cast(5346, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum,Row:?GLuint,Column:?GLuint>>);
 
2519
  cast(5346, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum,Row:?GLuint,Column:?GLuint>>);
2070
2520
separableFilter2D(Target,Internalformat,Width,Height,Format,Type,Row,Column) ->
2071
 
  wxe_util:send_bin(Row),
2072
 
  wxe_util:send_bin(Column),
2073
 
  wxe_util:cast(5347, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum>>).
 
2521
  send_bin(Row),
 
2522
  send_bin(Column),
 
2523
  cast(5347, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum>>).
2074
2524
 
2075
 
%% @spec (Target::enum(),Reset::0|1,Format::enum(),Type::enum(),Values::wx:wx_mem()) -> ok
 
2525
%% @spec (Target::enum(),Reset::0|1,Format::enum(),Type::enum(),Values::mem()) -> ok
2076
2526
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetHistogram.xml">external</a> documentation.
 
2527
-spec getHistogram(enum(),0|1,enum(),enum(),mem()) -> ok.
2077
2528
getHistogram(Target,Reset,Format,Type,Values) ->
2078
 
  wxe_util:send_bin(Values#wx_mem.bin),
2079
 
  wxe_util:call(5348, <<Target:?GLenum,Reset:?GLboolean,0:24,Format:?GLenum,Type:?GLenum>>).
 
2529
  send_bin(Values),
 
2530
  call(5348, <<Target:?GLenum,Reset:?GLboolean,0:24,Format:?GLenum,Type:?GLenum>>).
2080
2531
 
2081
2532
%% @spec (Target::enum(),Pname::enum()) -> {float()}
2082
2533
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetHistogramParameter.xml">external</a> documentation.
 
2534
-spec getHistogramParameterfv(enum(),enum()) -> {float()}.
2083
2535
getHistogramParameterfv(Target,Pname) ->
2084
 
  wxe_util:call(5349, <<Target:?GLenum,Pname:?GLenum>>).
 
2536
  call(5349, <<Target:?GLenum,Pname:?GLenum>>).
2085
2537
 
2086
2538
%% @spec (Target::enum(),Pname::enum()) -> {integer()}
2087
2539
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetHistogramParameter.xml">external</a> documentation.
 
2540
-spec getHistogramParameteriv(enum(),enum()) -> {integer()}.
2088
2541
getHistogramParameteriv(Target,Pname) ->
2089
 
  wxe_util:call(5350, <<Target:?GLenum,Pname:?GLenum>>).
 
2542
  call(5350, <<Target:?GLenum,Pname:?GLenum>>).
2090
2543
 
2091
 
%% @spec (Target::enum(),Reset::0|1,Format::enum(),Type::enum(),Values::wx:wx_mem()) -> ok
 
2544
%% @spec (Target::enum(),Reset::0|1,Format::enum(),Type::enum(),Values::mem()) -> ok
2092
2545
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMinmax.xml">external</a> documentation.
 
2546
-spec getMinmax(enum(),0|1,enum(),enum(),mem()) -> ok.
2093
2547
getMinmax(Target,Reset,Format,Type,Values) ->
2094
 
  wxe_util:send_bin(Values#wx_mem.bin),
2095
 
  wxe_util:call(5351, <<Target:?GLenum,Reset:?GLboolean,0:24,Format:?GLenum,Type:?GLenum>>).
 
2548
  send_bin(Values),
 
2549
  call(5351, <<Target:?GLenum,Reset:?GLboolean,0:24,Format:?GLenum,Type:?GLenum>>).
2096
2550
 
2097
2551
%% @spec (Target::enum(),Pname::enum()) -> {float()}
2098
2552
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMinmaxParameter.xml">external</a> documentation.
 
2553
-spec getMinmaxParameterfv(enum(),enum()) -> {float()}.
2099
2554
getMinmaxParameterfv(Target,Pname) ->
2100
 
  wxe_util:call(5352, <<Target:?GLenum,Pname:?GLenum>>).
 
2555
  call(5352, <<Target:?GLenum,Pname:?GLenum>>).
2101
2556
 
2102
2557
%% @spec (Target::enum(),Pname::enum()) -> {integer()}
2103
2558
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMinmaxParameter.xml">external</a> documentation.
 
2559
-spec getMinmaxParameteriv(enum(),enum()) -> {integer()}.
2104
2560
getMinmaxParameteriv(Target,Pname) ->
2105
 
  wxe_util:call(5353, <<Target:?GLenum,Pname:?GLenum>>).
 
2561
  call(5353, <<Target:?GLenum,Pname:?GLenum>>).
2106
2562
 
2107
2563
%% @spec (Target::enum(),Width::integer(),Internalformat::enum(),Sink::0|1) -> ok
2108
2564
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glHistogram.xml">external</a> documentation.
 
2565
-spec histogram(enum(),integer(),enum(),0|1) -> ok.
2109
2566
histogram(Target,Width,Internalformat,Sink) ->
2110
 
  wxe_util:cast(5354, <<Target:?GLenum,Width:?GLsizei,Internalformat:?GLenum,Sink:?GLboolean>>).
 
2567
  cast(5354, <<Target:?GLenum,Width:?GLsizei,Internalformat:?GLenum,Sink:?GLboolean>>).
2111
2568
 
2112
2569
%% @spec (Target::enum(),Internalformat::enum(),Sink::0|1) -> ok
2113
2570
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMinmax.xml">external</a> documentation.
 
2571
-spec minmax(enum(),enum(),0|1) -> ok.
2114
2572
minmax(Target,Internalformat,Sink) ->
2115
 
  wxe_util:cast(5355, <<Target:?GLenum,Internalformat:?GLenum,Sink:?GLboolean>>).
 
2573
  cast(5355, <<Target:?GLenum,Internalformat:?GLenum,Sink:?GLboolean>>).
2116
2574
 
2117
2575
%% @spec (Target::enum()) -> ok
2118
2576
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glResetHistogram.xml">external</a> documentation.
 
2577
-spec resetHistogram(enum()) -> ok.
2119
2578
resetHistogram(Target) ->
2120
 
  wxe_util:cast(5356, <<Target:?GLenum>>).
 
2579
  cast(5356, <<Target:?GLenum>>).
2121
2580
 
2122
2581
%% @spec (Target::enum()) -> ok
2123
2582
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glResetMinmax.xml">external</a> documentation.
 
2583
-spec resetMinmax(enum()) -> ok.
2124
2584
resetMinmax(Target) ->
2125
 
  wxe_util:cast(5357, <<Target:?GLenum>>).
 
2585
  cast(5357, <<Target:?GLenum>>).
2126
2586
 
2127
2587
%% @spec (Texture::enum()) -> ok
2128
2588
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glActiveTexture.xml">external</a> documentation.
 
2589
-spec activeTexture(enum()) -> ok.
2129
2590
activeTexture(Texture) ->
2130
 
  wxe_util:cast(5358, <<Texture:?GLenum>>).
 
2591
  cast(5358, <<Texture:?GLenum>>).
2131
2592
 
2132
2593
%% @spec (Value::clamp(),Invert::0|1) -> ok
2133
2594
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSampleCoverage.xml">external</a> documentation.
 
2595
-spec sampleCoverage(clamp(),0|1) -> ok.
2134
2596
sampleCoverage(Value,Invert) ->
2135
 
  wxe_util:cast(5359, <<Value:?GLclampf,Invert:?GLboolean>>).
 
2597
  cast(5359, <<Value:?GLclampf,Invert:?GLboolean>>).
2136
2598
 
2137
 
%% @spec (Target::enum(),Level::integer(),Internalformat::enum(),Width::integer(),Height::integer(),Depth::integer(),Border::integer(),ImageSize::integer(),Data::offset()|binary()) -> ok
 
2599
%% @spec (Target::enum(),Level::integer(),Internalformat::enum(),Width::integer(),Height::integer(),Depth::integer(),Border::integer(),ImageSize::integer(),Data::offset()|mem()) -> ok
2138
2600
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompressedTexImage3D.xml">external</a> documentation.
 
2601
-spec compressedTexImage3D(enum(),integer(),enum(),integer(),integer(),integer(),integer(),integer(),offset()|mem()) -> ok.
2139
2602
compressedTexImage3D(Target,Level,Internalformat,Width,Height,Depth,Border,ImageSize,Data) when  is_integer(Data) ->
2140
 
  wxe_util:cast(5360, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Border:?GLint,ImageSize:?GLsizei,Data:?GLuint>>);
 
2603
  cast(5360, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Border:?GLint,ImageSize:?GLsizei,Data:?GLuint>>);
2141
2604
compressedTexImage3D(Target,Level,Internalformat,Width,Height,Depth,Border,ImageSize,Data) ->
2142
 
  wxe_util:send_bin(Data),
2143
 
  wxe_util:cast(5361, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Border:?GLint,ImageSize:?GLsizei>>).
 
2605
  send_bin(Data),
 
2606
  cast(5361, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Border:?GLint,ImageSize:?GLsizei>>).
2144
2607
 
2145
 
%% @spec (Target::enum(),Level::integer(),Internalformat::enum(),Width::integer(),Height::integer(),Border::integer(),ImageSize::integer(),Data::offset()|binary()) -> ok
 
2608
%% @spec (Target::enum(),Level::integer(),Internalformat::enum(),Width::integer(),Height::integer(),Border::integer(),ImageSize::integer(),Data::offset()|mem()) -> ok
2146
2609
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompressedTexImage2D.xml">external</a> documentation.
 
2610
-spec compressedTexImage2D(enum(),integer(),enum(),integer(),integer(),integer(),integer(),offset()|mem()) -> ok.
2147
2611
compressedTexImage2D(Target,Level,Internalformat,Width,Height,Border,ImageSize,Data) when  is_integer(Data) ->
2148
 
  wxe_util:cast(5362, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Border:?GLint,ImageSize:?GLsizei,Data:?GLuint>>);
 
2612
  cast(5362, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Border:?GLint,ImageSize:?GLsizei,Data:?GLuint>>);
2149
2613
compressedTexImage2D(Target,Level,Internalformat,Width,Height,Border,ImageSize,Data) ->
2150
 
  wxe_util:send_bin(Data),
2151
 
  wxe_util:cast(5363, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Border:?GLint,ImageSize:?GLsizei>>).
 
2614
  send_bin(Data),
 
2615
  cast(5363, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Border:?GLint,ImageSize:?GLsizei>>).
2152
2616
 
2153
 
%% @spec (Target::enum(),Level::integer(),Internalformat::enum(),Width::integer(),Border::integer(),ImageSize::integer(),Data::offset()|binary()) -> ok
 
2617
%% @spec (Target::enum(),Level::integer(),Internalformat::enum(),Width::integer(),Border::integer(),ImageSize::integer(),Data::offset()|mem()) -> ok
2154
2618
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompressedTexImage1D.xml">external</a> documentation.
 
2619
-spec compressedTexImage1D(enum(),integer(),enum(),integer(),integer(),integer(),offset()|mem()) -> ok.
2155
2620
compressedTexImage1D(Target,Level,Internalformat,Width,Border,ImageSize,Data) when  is_integer(Data) ->
2156
 
  wxe_util:cast(5364, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Border:?GLint,ImageSize:?GLsizei,Data:?GLuint>>);
 
2621
  cast(5364, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Border:?GLint,ImageSize:?GLsizei,Data:?GLuint>>);
2157
2622
compressedTexImage1D(Target,Level,Internalformat,Width,Border,ImageSize,Data) ->
2158
 
  wxe_util:send_bin(Data),
2159
 
  wxe_util:cast(5365, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Border:?GLint,ImageSize:?GLsizei>>).
 
2623
  send_bin(Data),
 
2624
  cast(5365, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Border:?GLint,ImageSize:?GLsizei>>).
2160
2625
 
2161
 
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Zoffset::integer(),Width::integer(),Height::integer(),Depth::integer(),Format::enum(),ImageSize::integer(),Data::offset()|binary()) -> ok
 
2626
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Zoffset::integer(),Width::integer(),Height::integer(),Depth::integer(),Format::enum(),ImageSize::integer(),Data::offset()|mem()) -> ok
2162
2627
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompressedTexSubImage3D.xml">external</a> documentation.
 
2628
-spec compressedTexSubImage3D(enum(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),enum(),integer(),offset()|mem()) -> ok.
2163
2629
compressedTexSubImage3D(Target,Level,Xoffset,Yoffset,Zoffset,Width,Height,Depth,Format,ImageSize,Data) when  is_integer(Data) ->
2164
 
  wxe_util:cast(5366, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Zoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Format:?GLenum,ImageSize:?GLsizei,Data:?GLuint>>);
 
2630
  cast(5366, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Zoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Format:?GLenum,ImageSize:?GLsizei,Data:?GLuint>>);
2165
2631
compressedTexSubImage3D(Target,Level,Xoffset,Yoffset,Zoffset,Width,Height,Depth,Format,ImageSize,Data) ->
2166
 
  wxe_util:send_bin(Data),
2167
 
  wxe_util:cast(5367, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Zoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Format:?GLenum,ImageSize:?GLsizei>>).
 
2632
  send_bin(Data),
 
2633
  cast(5367, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Zoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Format:?GLenum,ImageSize:?GLsizei>>).
2168
2634
 
2169
 
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Width::integer(),Height::integer(),Format::enum(),ImageSize::integer(),Data::offset()|binary()) -> ok
 
2635
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Width::integer(),Height::integer(),Format::enum(),ImageSize::integer(),Data::offset()|mem()) -> ok
2170
2636
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompressedTexSubImage2D.xml">external</a> documentation.
 
2637
-spec compressedTexSubImage2D(enum(),integer(),integer(),integer(),integer(),integer(),enum(),integer(),offset()|mem()) -> ok.
2171
2638
compressedTexSubImage2D(Target,Level,Xoffset,Yoffset,Width,Height,Format,ImageSize,Data) when  is_integer(Data) ->
2172
 
  wxe_util:cast(5368, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,ImageSize:?GLsizei,Data:?GLuint>>);
 
2639
  cast(5368, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,ImageSize:?GLsizei,Data:?GLuint>>);
2173
2640
compressedTexSubImage2D(Target,Level,Xoffset,Yoffset,Width,Height,Format,ImageSize,Data) ->
2174
 
  wxe_util:send_bin(Data),
2175
 
  wxe_util:cast(5369, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,ImageSize:?GLsizei>>).
 
2641
  send_bin(Data),
 
2642
  cast(5369, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,ImageSize:?GLsizei>>).
2176
2643
 
2177
 
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Width::integer(),Format::enum(),ImageSize::integer(),Data::offset()|binary()) -> ok
 
2644
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Width::integer(),Format::enum(),ImageSize::integer(),Data::offset()|mem()) -> ok
2178
2645
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompressedTexSubImage1D.xml">external</a> documentation.
 
2646
-spec compressedTexSubImage1D(enum(),integer(),integer(),integer(),enum(),integer(),offset()|mem()) -> ok.
2179
2647
compressedTexSubImage1D(Target,Level,Xoffset,Width,Format,ImageSize,Data) when  is_integer(Data) ->
2180
 
  wxe_util:cast(5370, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Width:?GLsizei,Format:?GLenum,ImageSize:?GLsizei,Data:?GLuint>>);
 
2648
  cast(5370, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Width:?GLsizei,Format:?GLenum,ImageSize:?GLsizei,Data:?GLuint>>);
2181
2649
compressedTexSubImage1D(Target,Level,Xoffset,Width,Format,ImageSize,Data) ->
2182
 
  wxe_util:send_bin(Data),
2183
 
  wxe_util:cast(5371, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Width:?GLsizei,Format:?GLenum,ImageSize:?GLsizei>>).
 
2650
  send_bin(Data),
 
2651
  cast(5371, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Width:?GLsizei,Format:?GLenum,ImageSize:?GLsizei>>).
2184
2652
 
2185
 
%% @spec (Target::enum(),Level::integer(),Img::wx:wx_mem()) -> ok
 
2653
%% @spec (Target::enum(),Level::integer(),Img::mem()) -> ok
2186
2654
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetCompressedTexImage.xml">external</a> documentation.
 
2655
-spec getCompressedTexImage(enum(),integer(),mem()) -> ok.
2187
2656
getCompressedTexImage(Target,Level,Img) ->
2188
 
  wxe_util:send_bin(Img#wx_mem.bin),
2189
 
  wxe_util:call(5372, <<Target:?GLenum,Level:?GLint>>).
 
2657
  send_bin(Img),
 
2658
  call(5372, <<Target:?GLenum,Level:?GLint>>).
2190
2659
 
2191
2660
%% @spec (Texture::enum()) -> ok
2192
2661
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClientActiveTexture.xml">external</a> documentation.
 
2662
-spec clientActiveTexture(enum()) -> ok.
2193
2663
clientActiveTexture(Texture) ->
2194
 
  wxe_util:cast(5373, <<Texture:?GLenum>>).
 
2664
  cast(5373, <<Texture:?GLenum>>).
2195
2665
 
2196
2666
%% @spec (Target::enum(),S::float()) -> ok
2197
2667
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
 
2668
-spec multiTexCoord1d(enum(),float()) -> ok.
2198
2669
multiTexCoord1d(Target,S) ->
2199
 
  wxe_util:cast(5374, <<Target:?GLenum,0:32,S:?GLdouble>>).
 
2670
  cast(5374, <<Target:?GLenum,0:32,S:?GLdouble>>).
2200
2671
 
2201
2672
%% @spec (Target,{S}) -> ok
2202
2673
%% @equiv multiTexCoord1d(Target,S)
 
2674
-spec multiTexCoord1dv(enum(),{float()}) -> ok.
2203
2675
multiTexCoord1dv(Target,{S}) ->  multiTexCoord1d(Target,S).
2204
2676
 
2205
2677
%% @spec (Target::enum(),S::float()) -> ok
2206
2678
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
 
2679
-spec multiTexCoord1f(enum(),float()) -> ok.
2207
2680
multiTexCoord1f(Target,S) ->
2208
 
  wxe_util:cast(5375, <<Target:?GLenum,S:?GLfloat>>).
 
2681
  cast(5375, <<Target:?GLenum,S:?GLfloat>>).
2209
2682
 
2210
2683
%% @spec (Target,{S}) -> ok
2211
2684
%% @equiv multiTexCoord1f(Target,S)
 
2685
-spec multiTexCoord1fv(enum(),{float()}) -> ok.
2212
2686
multiTexCoord1fv(Target,{S}) ->  multiTexCoord1f(Target,S).
2213
2687
 
2214
2688
%% @spec (Target::enum(),S::integer()) -> ok
2215
2689
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
 
2690
-spec multiTexCoord1i(enum(),integer()) -> ok.
2216
2691
multiTexCoord1i(Target,S) ->
2217
 
  wxe_util:cast(5376, <<Target:?GLenum,S:?GLint>>).
 
2692
  cast(5376, <<Target:?GLenum,S:?GLint>>).
2218
2693
 
2219
2694
%% @spec (Target,{S}) -> ok
2220
2695
%% @equiv multiTexCoord1i(Target,S)
 
2696
-spec multiTexCoord1iv(enum(),{integer()}) -> ok.
2221
2697
multiTexCoord1iv(Target,{S}) ->  multiTexCoord1i(Target,S).
2222
2698
 
2223
2699
%% @spec (Target::enum(),S::integer()) -> ok
2224
2700
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
 
2701
-spec multiTexCoord1s(enum(),integer()) -> ok.
2225
2702
multiTexCoord1s(Target,S) ->
2226
 
  wxe_util:cast(5377, <<Target:?GLenum,S:?GLshort>>).
 
2703
  cast(5377, <<Target:?GLenum,S:?GLshort>>).
2227
2704
 
2228
2705
%% @spec (Target,{S}) -> ok
2229
2706
%% @equiv multiTexCoord1s(Target,S)
 
2707
-spec multiTexCoord1sv(enum(),{integer()}) -> ok.
2230
2708
multiTexCoord1sv(Target,{S}) ->  multiTexCoord1s(Target,S).
2231
2709
 
2232
2710
%% @spec (Target::enum(),S::float(),T::float()) -> ok
2233
2711
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
 
2712
-spec multiTexCoord2d(enum(),float(),float()) -> ok.
2234
2713
multiTexCoord2d(Target,S,T) ->
2235
 
  wxe_util:cast(5378, <<Target:?GLenum,0:32,S:?GLdouble,T:?GLdouble>>).
 
2714
  cast(5378, <<Target:?GLenum,0:32,S:?GLdouble,T:?GLdouble>>).
2236
2715
 
2237
2716
%% @spec (Target,{S,T}) -> ok
2238
2717
%% @equiv multiTexCoord2d(Target,S,T)
 
2718
-spec multiTexCoord2dv(enum(),{float(),float()}) -> ok.
2239
2719
multiTexCoord2dv(Target,{S,T}) ->  multiTexCoord2d(Target,S,T).
2240
2720
 
2241
2721
%% @spec (Target::enum(),S::float(),T::float()) -> ok
2242
2722
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
 
2723
-spec multiTexCoord2f(enum(),float(),float()) -> ok.
2243
2724
multiTexCoord2f(Target,S,T) ->
2244
 
  wxe_util:cast(5379, <<Target:?GLenum,S:?GLfloat,T:?GLfloat>>).
 
2725
  cast(5379, <<Target:?GLenum,S:?GLfloat,T:?GLfloat>>).
2245
2726
 
2246
2727
%% @spec (Target,{S,T}) -> ok
2247
2728
%% @equiv multiTexCoord2f(Target,S,T)
 
2729
-spec multiTexCoord2fv(enum(),{float(),float()}) -> ok.
2248
2730
multiTexCoord2fv(Target,{S,T}) ->  multiTexCoord2f(Target,S,T).
2249
2731
 
2250
2732
%% @spec (Target::enum(),S::integer(),T::integer()) -> ok
2251
2733
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
 
2734
-spec multiTexCoord2i(enum(),integer(),integer()) -> ok.
2252
2735
multiTexCoord2i(Target,S,T) ->
2253
 
  wxe_util:cast(5380, <<Target:?GLenum,S:?GLint,T:?GLint>>).
 
2736
  cast(5380, <<Target:?GLenum,S:?GLint,T:?GLint>>).
2254
2737
 
2255
2738
%% @spec (Target,{S,T}) -> ok
2256
2739
%% @equiv multiTexCoord2i(Target,S,T)
 
2740
-spec multiTexCoord2iv(enum(),{integer(),integer()}) -> ok.
2257
2741
multiTexCoord2iv(Target,{S,T}) ->  multiTexCoord2i(Target,S,T).
2258
2742
 
2259
2743
%% @spec (Target::enum(),S::integer(),T::integer()) -> ok
2260
2744
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
 
2745
-spec multiTexCoord2s(enum(),integer(),integer()) -> ok.
2261
2746
multiTexCoord2s(Target,S,T) ->
2262
 
  wxe_util:cast(5381, <<Target:?GLenum,S:?GLshort,T:?GLshort>>).
 
2747
  cast(5381, <<Target:?GLenum,S:?GLshort,T:?GLshort>>).
2263
2748
 
2264
2749
%% @spec (Target,{S,T}) -> ok
2265
2750
%% @equiv multiTexCoord2s(Target,S,T)
 
2751
-spec multiTexCoord2sv(enum(),{integer(),integer()}) -> ok.
2266
2752
multiTexCoord2sv(Target,{S,T}) ->  multiTexCoord2s(Target,S,T).
2267
2753
 
2268
2754
%% @spec (Target::enum(),S::float(),T::float(),R::float()) -> ok
2269
2755
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
 
2756
-spec multiTexCoord3d(enum(),float(),float(),float()) -> ok.
2270
2757
multiTexCoord3d(Target,S,T,R) ->
2271
 
  wxe_util:cast(5382, <<Target:?GLenum,0:32,S:?GLdouble,T:?GLdouble,R:?GLdouble>>).
 
2758
  cast(5382, <<Target:?GLenum,0:32,S:?GLdouble,T:?GLdouble,R:?GLdouble>>).
2272
2759
 
2273
2760
%% @spec (Target,{S,T,R}) -> ok
2274
2761
%% @equiv multiTexCoord3d(Target,S,T,R)
 
2762
-spec multiTexCoord3dv(enum(),{float(),float(),float()}) -> ok.
2275
2763
multiTexCoord3dv(Target,{S,T,R}) ->  multiTexCoord3d(Target,S,T,R).
2276
2764
 
2277
2765
%% @spec (Target::enum(),S::float(),T::float(),R::float()) -> ok
2278
2766
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
 
2767
-spec multiTexCoord3f(enum(),float(),float(),float()) -> ok.
2279
2768
multiTexCoord3f(Target,S,T,R) ->
2280
 
  wxe_util:cast(5383, <<Target:?GLenum,S:?GLfloat,T:?GLfloat,R:?GLfloat>>).
 
2769
  cast(5383, <<Target:?GLenum,S:?GLfloat,T:?GLfloat,R:?GLfloat>>).
2281
2770
 
2282
2771
%% @spec (Target,{S,T,R}) -> ok
2283
2772
%% @equiv multiTexCoord3f(Target,S,T,R)
 
2773
-spec multiTexCoord3fv(enum(),{float(),float(),float()}) -> ok.
2284
2774
multiTexCoord3fv(Target,{S,T,R}) ->  multiTexCoord3f(Target,S,T,R).
2285
2775
 
2286
2776
%% @spec (Target::enum(),S::integer(),T::integer(),R::integer()) -> ok
2287
2777
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
 
2778
-spec multiTexCoord3i(enum(),integer(),integer(),integer()) -> ok.
2288
2779
multiTexCoord3i(Target,S,T,R) ->
2289
 
  wxe_util:cast(5384, <<Target:?GLenum,S:?GLint,T:?GLint,R:?GLint>>).
 
2780
  cast(5384, <<Target:?GLenum,S:?GLint,T:?GLint,R:?GLint>>).
2290
2781
 
2291
2782
%% @spec (Target,{S,T,R}) -> ok
2292
2783
%% @equiv multiTexCoord3i(Target,S,T,R)
 
2784
-spec multiTexCoord3iv(enum(),{integer(),integer(),integer()}) -> ok.
2293
2785
multiTexCoord3iv(Target,{S,T,R}) ->  multiTexCoord3i(Target,S,T,R).
2294
2786
 
2295
2787
%% @spec (Target::enum(),S::integer(),T::integer(),R::integer()) -> ok
2296
2788
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
 
2789
-spec multiTexCoord3s(enum(),integer(),integer(),integer()) -> ok.
2297
2790
multiTexCoord3s(Target,S,T,R) ->
2298
 
  wxe_util:cast(5385, <<Target:?GLenum,S:?GLshort,T:?GLshort,R:?GLshort>>).
 
2791
  cast(5385, <<Target:?GLenum,S:?GLshort,T:?GLshort,R:?GLshort>>).
2299
2792
 
2300
2793
%% @spec (Target,{S,T,R}) -> ok
2301
2794
%% @equiv multiTexCoord3s(Target,S,T,R)
 
2795
-spec multiTexCoord3sv(enum(),{integer(),integer(),integer()}) -> ok.
2302
2796
multiTexCoord3sv(Target,{S,T,R}) ->  multiTexCoord3s(Target,S,T,R).
2303
2797
 
2304
2798
%% @spec (Target::enum(),S::float(),T::float(),R::float(),Q::float()) -> ok
2305
2799
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
 
2800
-spec multiTexCoord4d(enum(),float(),float(),float(),float()) -> ok.
2306
2801
multiTexCoord4d(Target,S,T,R,Q) ->
2307
 
  wxe_util:cast(5386, <<Target:?GLenum,0:32,S:?GLdouble,T:?GLdouble,R:?GLdouble,Q:?GLdouble>>).
 
2802
  cast(5386, <<Target:?GLenum,0:32,S:?GLdouble,T:?GLdouble,R:?GLdouble,Q:?GLdouble>>).
2308
2803
 
2309
2804
%% @spec (Target,{S,T,R,Q}) -> ok
2310
2805
%% @equiv multiTexCoord4d(Target,S,T,R,Q)
 
2806
-spec multiTexCoord4dv(enum(),{float(),float(),float(),float()}) -> ok.
2311
2807
multiTexCoord4dv(Target,{S,T,R,Q}) ->  multiTexCoord4d(Target,S,T,R,Q).
2312
2808
 
2313
2809
%% @spec (Target::enum(),S::float(),T::float(),R::float(),Q::float()) -> ok
2314
2810
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
 
2811
-spec multiTexCoord4f(enum(),float(),float(),float(),float()) -> ok.
2315
2812
multiTexCoord4f(Target,S,T,R,Q) ->
2316
 
  wxe_util:cast(5387, <<Target:?GLenum,S:?GLfloat,T:?GLfloat,R:?GLfloat,Q:?GLfloat>>).
 
2813
  cast(5387, <<Target:?GLenum,S:?GLfloat,T:?GLfloat,R:?GLfloat,Q:?GLfloat>>).
2317
2814
 
2318
2815
%% @spec (Target,{S,T,R,Q}) -> ok
2319
2816
%% @equiv multiTexCoord4f(Target,S,T,R,Q)
 
2817
-spec multiTexCoord4fv(enum(),{float(),float(),float(),float()}) -> ok.
2320
2818
multiTexCoord4fv(Target,{S,T,R,Q}) ->  multiTexCoord4f(Target,S,T,R,Q).
2321
2819
 
2322
2820
%% @spec (Target::enum(),S::integer(),T::integer(),R::integer(),Q::integer()) -> ok
2323
2821
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
 
2822
-spec multiTexCoord4i(enum(),integer(),integer(),integer(),integer()) -> ok.
2324
2823
multiTexCoord4i(Target,S,T,R,Q) ->
2325
 
  wxe_util:cast(5388, <<Target:?GLenum,S:?GLint,T:?GLint,R:?GLint,Q:?GLint>>).
 
2824
  cast(5388, <<Target:?GLenum,S:?GLint,T:?GLint,R:?GLint,Q:?GLint>>).
2326
2825
 
2327
2826
%% @spec (Target,{S,T,R,Q}) -> ok
2328
2827
%% @equiv multiTexCoord4i(Target,S,T,R,Q)
 
2828
-spec multiTexCoord4iv(enum(),{integer(),integer(),integer(),integer()}) -> ok.
2329
2829
multiTexCoord4iv(Target,{S,T,R,Q}) ->  multiTexCoord4i(Target,S,T,R,Q).
2330
2830
 
2331
2831
%% @spec (Target::enum(),S::integer(),T::integer(),R::integer(),Q::integer()) -> ok
2332
2832
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
 
2833
-spec multiTexCoord4s(enum(),integer(),integer(),integer(),integer()) -> ok.
2333
2834
multiTexCoord4s(Target,S,T,R,Q) ->
2334
 
  wxe_util:cast(5389, <<Target:?GLenum,S:?GLshort,T:?GLshort,R:?GLshort,Q:?GLshort>>).
 
2835
  cast(5389, <<Target:?GLenum,S:?GLshort,T:?GLshort,R:?GLshort,Q:?GLshort>>).
2335
2836
 
2336
2837
%% @spec (Target,{S,T,R,Q}) -> ok
2337
2838
%% @equiv multiTexCoord4s(Target,S,T,R,Q)
 
2839
-spec multiTexCoord4sv(enum(),{integer(),integer(),integer(),integer()}) -> ok.
2338
2840
multiTexCoord4sv(Target,{S,T,R,Q}) ->  multiTexCoord4s(Target,S,T,R,Q).
2339
2841
 
2340
 
%% @spec (M::{float()}) -> ok
 
2842
%% @spec (M::{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok
2341
2843
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadTransposeMatrix.xml">external</a> documentation.
 
2844
-spec loadTransposeMatrixf({float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok.
2342
2845
loadTransposeMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
2343
 
  wxe_util:cast(5390, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
 
2846
  cast(5390, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
2344
2847
loadTransposeMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
2345
 
  wxe_util:cast(5390, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
 
2848
  cast(5390, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
2346
2849
 
2347
 
%% @spec (M::{float()}) -> ok
 
2850
%% @spec (M::{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok
2348
2851
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadTransposeMatrix.xml">external</a> documentation.
 
2852
-spec loadTransposeMatrixd({float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok.
2349
2853
loadTransposeMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
2350
 
  wxe_util:cast(5391, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
 
2854
  cast(5391, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
2351
2855
loadTransposeMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
2352
 
  wxe_util:cast(5391, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
 
2856
  cast(5391, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
2353
2857
 
2354
 
%% @spec (M::{float()}) -> ok
 
2858
%% @spec (M::{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok
2355
2859
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultTransposeMatrix.xml">external</a> documentation.
 
2860
-spec multTransposeMatrixf({float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok.
2356
2861
multTransposeMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
2357
 
  wxe_util:cast(5392, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
 
2862
  cast(5392, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
2358
2863
multTransposeMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
2359
 
  wxe_util:cast(5392, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
 
2864
  cast(5392, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
2360
2865
 
2361
 
%% @spec (M::{float()}) -> ok
 
2866
%% @spec (M::{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok
2362
2867
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultTransposeMatrix.xml">external</a> documentation.
 
2868
-spec multTransposeMatrixd({float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok.
2363
2869
multTransposeMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
2364
 
  wxe_util:cast(5393, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
 
2870
  cast(5393, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
2365
2871
multTransposeMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
2366
 
  wxe_util:cast(5393, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
 
2872
  cast(5393, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
2367
2873
 
2368
2874
%% @spec (SfactorRGB::enum(),DfactorRGB::enum(),SfactorAlpha::enum(),DfactorAlpha::enum()) -> ok
2369
2875
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlendFuncSeparate.xml">external</a> documentation.
 
2876
-spec blendFuncSeparate(enum(),enum(),enum(),enum()) -> ok.
2370
2877
blendFuncSeparate(SfactorRGB,DfactorRGB,SfactorAlpha,DfactorAlpha) ->
2371
 
  wxe_util:cast(5394, <<SfactorRGB:?GLenum,DfactorRGB:?GLenum,SfactorAlpha:?GLenum,DfactorAlpha:?GLenum>>).
 
2878
  cast(5394, <<SfactorRGB:?GLenum,DfactorRGB:?GLenum,SfactorAlpha:?GLenum,DfactorAlpha:?GLenum>>).
2372
2879
 
2373
2880
%% @spec (Mode::enum(),First::[integer()],Count::[integer()]) -> ok
2374
2881
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiDrawArrays.xml">external</a> documentation.
 
2882
-spec multiDrawArrays(enum(),[integer()],[integer()]) -> ok.
2375
2883
multiDrawArrays(Mode,First,Count) ->
2376
 
  wxe_util:cast(5395, <<Mode:?GLenum,(length(First)):?GLuint,
 
2884
  cast(5395, <<Mode:?GLenum,(length(First)):?GLuint,
2377
2885
        (<< <<C:?GLint>> || C <- First>>)/binary,0:(((length(First)) rem 2)*32),(length(Count)):?GLuint,
2378
2886
        (<< <<C:?GLsizei>> || C <- Count>>)/binary,0:(((1+length(Count)) rem 2)*32)>>).
2379
2887
 
2380
2888
%% @spec (Pname::enum(),Param::float()) -> ok
2381
2889
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPointParameter.xml">external</a> documentation.
 
2890
-spec pointParameterf(enum(),float()) -> ok.
2382
2891
pointParameterf(Pname,Param) ->
2383
 
  wxe_util:cast(5396, <<Pname:?GLenum,Param:?GLfloat>>).
 
2892
  cast(5396, <<Pname:?GLenum,Param:?GLfloat>>).
2384
2893
 
2385
2894
%% @spec (Pname::enum(),Params::{float()}) -> ok
2386
2895
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPointParameter.xml">external</a> documentation.
 
2896
-spec pointParameterfv(enum(),{float()}) -> ok.
2387
2897
pointParameterfv(Pname,Params) ->
2388
 
  wxe_util:cast(5397, <<Pname:?GLenum,(size(Params)):?GLuint,
 
2898
  cast(5397, <<Pname:?GLenum,(size(Params)):?GLuint,
2389
2899
      (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>).
2390
2900
 
2391
2901
%% @spec (Pname::enum(),Param::integer()) -> ok
2392
2902
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPointParameter.xml">external</a> documentation.
 
2903
-spec pointParameteri(enum(),integer()) -> ok.
2393
2904
pointParameteri(Pname,Param) ->
2394
 
  wxe_util:cast(5398, <<Pname:?GLenum,Param:?GLint>>).
 
2905
  cast(5398, <<Pname:?GLenum,Param:?GLint>>).
2395
2906
 
2396
2907
%% @spec (Pname::enum(),Params::{integer()}) -> ok
2397
2908
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPointParameter.xml">external</a> documentation.
 
2909
-spec pointParameteriv(enum(),{integer()}) -> ok.
2398
2910
pointParameteriv(Pname,Params) ->
2399
 
  wxe_util:cast(5399, <<Pname:?GLenum,(size(Params)):?GLuint,
 
2911
  cast(5399, <<Pname:?GLenum,(size(Params)):?GLuint,
2400
2912
      (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>).
2401
2913
 
2402
2914
%% @spec (Coord::float()) -> ok
2403
2915
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFogCoord.xml">external</a> documentation.
 
2916
-spec fogCoordf(float()) -> ok.
2404
2917
fogCoordf(Coord) ->
2405
 
  wxe_util:cast(5400, <<Coord:?GLfloat>>).
 
2918
  cast(5400, <<Coord:?GLfloat>>).
2406
2919
 
2407
2920
%% @spec ({Coord}) -> ok
2408
2921
%% @equiv fogCoordf(Coord)
 
2922
-spec fogCoordfv({float()}) -> ok.
2409
2923
fogCoordfv({Coord}) ->  fogCoordf(Coord).
2410
2924
 
2411
2925
%% @spec (Coord::float()) -> ok
2412
2926
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFogCoord.xml">external</a> documentation.
 
2927
-spec fogCoordd(float()) -> ok.
2413
2928
fogCoordd(Coord) ->
2414
 
  wxe_util:cast(5401, <<Coord:?GLdouble>>).
 
2929
  cast(5401, <<Coord:?GLdouble>>).
2415
2930
 
2416
2931
%% @spec ({Coord}) -> ok
2417
2932
%% @equiv fogCoordd(Coord)
 
2933
-spec fogCoorddv({float()}) -> ok.
2418
2934
fogCoorddv({Coord}) ->  fogCoordd(Coord).
2419
2935
 
2420
 
%% @spec (Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
 
2936
%% @spec (Type::enum(),Stride::integer(),Pointer::offset()|mem()) -> ok
2421
2937
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFogCoordPointer.xml">external</a> documentation.
 
2938
-spec fogCoordPointer(enum(),integer(),offset()|mem()) -> ok.
2422
2939
fogCoordPointer(Type,Stride,Pointer) when  is_integer(Pointer) ->
2423
 
  wxe_util:cast(5402, <<Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
 
2940
  cast(5402, <<Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
2424
2941
fogCoordPointer(Type,Stride,Pointer) ->
2425
 
  wxe_util:send_bin(Pointer),
2426
 
  wxe_util:cast(5403, <<Type:?GLenum,Stride:?GLsizei>>).
 
2942
  send_bin(Pointer),
 
2943
  cast(5403, <<Type:?GLenum,Stride:?GLsizei>>).
2427
2944
 
2428
2945
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
2429
2946
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml">external</a> documentation.
 
2947
-spec secondaryColor3b(integer(),integer(),integer()) -> ok.
2430
2948
secondaryColor3b(Red,Green,Blue) ->
2431
 
  wxe_util:cast(5404, <<Red:?GLbyte,Green:?GLbyte,Blue:?GLbyte>>).
 
2949
  cast(5404, <<Red:?GLbyte,Green:?GLbyte,Blue:?GLbyte>>).
2432
2950
 
2433
2951
%% @spec ({Red,Green,Blue}) -> ok
2434
2952
%% @equiv secondaryColor3b(Red,Green,Blue)
 
2953
-spec secondaryColor3bv({integer(),integer(),integer()}) -> ok.
2435
2954
secondaryColor3bv({Red,Green,Blue}) ->  secondaryColor3b(Red,Green,Blue).
2436
2955
 
2437
2956
%% @spec (Red::float(),Green::float(),Blue::float()) -> ok
2438
2957
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml">external</a> documentation.
 
2958
-spec secondaryColor3d(float(),float(),float()) -> ok.
2439
2959
secondaryColor3d(Red,Green,Blue) ->
2440
 
  wxe_util:cast(5405, <<Red:?GLdouble,Green:?GLdouble,Blue:?GLdouble>>).
 
2960
  cast(5405, <<Red:?GLdouble,Green:?GLdouble,Blue:?GLdouble>>).
2441
2961
 
2442
2962
%% @spec ({Red,Green,Blue}) -> ok
2443
2963
%% @equiv secondaryColor3d(Red,Green,Blue)
 
2964
-spec secondaryColor3dv({float(),float(),float()}) -> ok.
2444
2965
secondaryColor3dv({Red,Green,Blue}) ->  secondaryColor3d(Red,Green,Blue).
2445
2966
 
2446
2967
%% @spec (Red::float(),Green::float(),Blue::float()) -> ok
2447
2968
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml">external</a> documentation.
 
2969
-spec secondaryColor3f(float(),float(),float()) -> ok.
2448
2970
secondaryColor3f(Red,Green,Blue) ->
2449
 
  wxe_util:cast(5406, <<Red:?GLfloat,Green:?GLfloat,Blue:?GLfloat>>).
 
2971
  cast(5406, <<Red:?GLfloat,Green:?GLfloat,Blue:?GLfloat>>).
2450
2972
 
2451
2973
%% @spec ({Red,Green,Blue}) -> ok
2452
2974
%% @equiv secondaryColor3f(Red,Green,Blue)
 
2975
-spec secondaryColor3fv({float(),float(),float()}) -> ok.
2453
2976
secondaryColor3fv({Red,Green,Blue}) ->  secondaryColor3f(Red,Green,Blue).
2454
2977
 
2455
2978
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
2456
2979
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml">external</a> documentation.
 
2980
-spec secondaryColor3i(integer(),integer(),integer()) -> ok.
2457
2981
secondaryColor3i(Red,Green,Blue) ->
2458
 
  wxe_util:cast(5407, <<Red:?GLint,Green:?GLint,Blue:?GLint>>).
 
2982
  cast(5407, <<Red:?GLint,Green:?GLint,Blue:?GLint>>).
2459
2983
 
2460
2984
%% @spec ({Red,Green,Blue}) -> ok
2461
2985
%% @equiv secondaryColor3i(Red,Green,Blue)
 
2986
-spec secondaryColor3iv({integer(),integer(),integer()}) -> ok.
2462
2987
secondaryColor3iv({Red,Green,Blue}) ->  secondaryColor3i(Red,Green,Blue).
2463
2988
 
2464
2989
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
2465
2990
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml">external</a> documentation.
 
2991
-spec secondaryColor3s(integer(),integer(),integer()) -> ok.
2466
2992
secondaryColor3s(Red,Green,Blue) ->
2467
 
  wxe_util:cast(5408, <<Red:?GLshort,Green:?GLshort,Blue:?GLshort>>).
 
2993
  cast(5408, <<Red:?GLshort,Green:?GLshort,Blue:?GLshort>>).
2468
2994
 
2469
2995
%% @spec ({Red,Green,Blue}) -> ok
2470
2996
%% @equiv secondaryColor3s(Red,Green,Blue)
 
2997
-spec secondaryColor3sv({integer(),integer(),integer()}) -> ok.
2471
2998
secondaryColor3sv({Red,Green,Blue}) ->  secondaryColor3s(Red,Green,Blue).
2472
2999
 
2473
3000
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
2474
3001
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml">external</a> documentation.
 
3002
-spec secondaryColor3ub(integer(),integer(),integer()) -> ok.
2475
3003
secondaryColor3ub(Red,Green,Blue) ->
2476
 
  wxe_util:cast(5409, <<Red:?GLubyte,Green:?GLubyte,Blue:?GLubyte>>).
 
3004
  cast(5409, <<Red:?GLubyte,Green:?GLubyte,Blue:?GLubyte>>).
2477
3005
 
2478
3006
%% @spec ({Red,Green,Blue}) -> ok
2479
3007
%% @equiv secondaryColor3ub(Red,Green,Blue)
 
3008
-spec secondaryColor3ubv({integer(),integer(),integer()}) -> ok.
2480
3009
secondaryColor3ubv({Red,Green,Blue}) ->  secondaryColor3ub(Red,Green,Blue).
2481
3010
 
2482
3011
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
2483
3012
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml">external</a> documentation.
 
3013
-spec secondaryColor3ui(integer(),integer(),integer()) -> ok.
2484
3014
secondaryColor3ui(Red,Green,Blue) ->
2485
 
  wxe_util:cast(5410, <<Red:?GLuint,Green:?GLuint,Blue:?GLuint>>).
 
3015
  cast(5410, <<Red:?GLuint,Green:?GLuint,Blue:?GLuint>>).
2486
3016
 
2487
3017
%% @spec ({Red,Green,Blue}) -> ok
2488
3018
%% @equiv secondaryColor3ui(Red,Green,Blue)
 
3019
-spec secondaryColor3uiv({integer(),integer(),integer()}) -> ok.
2489
3020
secondaryColor3uiv({Red,Green,Blue}) ->  secondaryColor3ui(Red,Green,Blue).
2490
3021
 
2491
3022
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
2492
3023
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml">external</a> documentation.
 
3024
-spec secondaryColor3us(integer(),integer(),integer()) -> ok.
2493
3025
secondaryColor3us(Red,Green,Blue) ->
2494
 
  wxe_util:cast(5411, <<Red:?GLushort,Green:?GLushort,Blue:?GLushort>>).
 
3026
  cast(5411, <<Red:?GLushort,Green:?GLushort,Blue:?GLushort>>).
2495
3027
 
2496
3028
%% @spec ({Red,Green,Blue}) -> ok
2497
3029
%% @equiv secondaryColor3us(Red,Green,Blue)
 
3030
-spec secondaryColor3usv({integer(),integer(),integer()}) -> ok.
2498
3031
secondaryColor3usv({Red,Green,Blue}) ->  secondaryColor3us(Red,Green,Blue).
2499
3032
 
2500
 
%% @spec (Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
 
3033
%% @spec (Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|mem()) -> ok
2501
3034
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColorPointer.xml">external</a> documentation.
 
3035
-spec secondaryColorPointer(integer(),enum(),integer(),offset()|mem()) -> ok.
2502
3036
secondaryColorPointer(Size,Type,Stride,Pointer) when  is_integer(Pointer) ->
2503
 
  wxe_util:cast(5412, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
 
3037
  cast(5412, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
2504
3038
secondaryColorPointer(Size,Type,Stride,Pointer) ->
2505
 
  wxe_util:send_bin(Pointer),
2506
 
  wxe_util:cast(5413, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei>>).
 
3039
  send_bin(Pointer),
 
3040
  cast(5413, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei>>).
2507
3041
 
2508
3042
%% @spec (X::float(),Y::float()) -> ok
2509
3043
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos.xml">external</a> documentation.
 
3044
-spec windowPos2d(float(),float()) -> ok.
2510
3045
windowPos2d(X,Y) ->
2511
 
  wxe_util:cast(5414, <<X:?GLdouble,Y:?GLdouble>>).
 
3046
  cast(5414, <<X:?GLdouble,Y:?GLdouble>>).
2512
3047
 
2513
3048
%% @spec ({X,Y}) -> ok
2514
3049
%% @equiv windowPos2d(X,Y)
 
3050
-spec windowPos2dv({float(),float()}) -> ok.
2515
3051
windowPos2dv({X,Y}) ->  windowPos2d(X,Y).
2516
3052
 
2517
3053
%% @spec (X::float(),Y::float()) -> ok
2518
3054
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos.xml">external</a> documentation.
 
3055
-spec windowPos2f(float(),float()) -> ok.
2519
3056
windowPos2f(X,Y) ->
2520
 
  wxe_util:cast(5415, <<X:?GLfloat,Y:?GLfloat>>).
 
3057
  cast(5415, <<X:?GLfloat,Y:?GLfloat>>).
2521
3058
 
2522
3059
%% @spec ({X,Y}) -> ok
2523
3060
%% @equiv windowPos2f(X,Y)
 
3061
-spec windowPos2fv({float(),float()}) -> ok.
2524
3062
windowPos2fv({X,Y}) ->  windowPos2f(X,Y).
2525
3063
 
2526
3064
%% @spec (X::integer(),Y::integer()) -> ok
2527
3065
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos.xml">external</a> documentation.
 
3066
-spec windowPos2i(integer(),integer()) -> ok.
2528
3067
windowPos2i(X,Y) ->
2529
 
  wxe_util:cast(5416, <<X:?GLint,Y:?GLint>>).
 
3068
  cast(5416, <<X:?GLint,Y:?GLint>>).
2530
3069
 
2531
3070
%% @spec ({X,Y}) -> ok
2532
3071
%% @equiv windowPos2i(X,Y)
 
3072
-spec windowPos2iv({integer(),integer()}) -> ok.
2533
3073
windowPos2iv({X,Y}) ->  windowPos2i(X,Y).
2534
3074
 
2535
3075
%% @spec (X::integer(),Y::integer()) -> ok
2536
3076
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos.xml">external</a> documentation.
 
3077
-spec windowPos2s(integer(),integer()) -> ok.
2537
3078
windowPos2s(X,Y) ->
2538
 
  wxe_util:cast(5417, <<X:?GLshort,Y:?GLshort>>).
 
3079
  cast(5417, <<X:?GLshort,Y:?GLshort>>).
2539
3080
 
2540
3081
%% @spec ({X,Y}) -> ok
2541
3082
%% @equiv windowPos2s(X,Y)
 
3083
-spec windowPos2sv({integer(),integer()}) -> ok.
2542
3084
windowPos2sv({X,Y}) ->  windowPos2s(X,Y).
2543
3085
 
2544
3086
%% @spec (X::float(),Y::float(),Z::float()) -> ok
2545
3087
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos.xml">external</a> documentation.
 
3088
-spec windowPos3d(float(),float(),float()) -> ok.
2546
3089
windowPos3d(X,Y,Z) ->
2547
 
  wxe_util:cast(5418, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
 
3090
  cast(5418, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
2548
3091
 
2549
3092
%% @spec ({X,Y,Z}) -> ok
2550
3093
%% @equiv windowPos3d(X,Y,Z)
 
3094
-spec windowPos3dv({float(),float(),float()}) -> ok.
2551
3095
windowPos3dv({X,Y,Z}) ->  windowPos3d(X,Y,Z).
2552
3096
 
2553
3097
%% @spec (X::float(),Y::float(),Z::float()) -> ok
2554
3098
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos.xml">external</a> documentation.
 
3099
-spec windowPos3f(float(),float(),float()) -> ok.
2555
3100
windowPos3f(X,Y,Z) ->
2556
 
  wxe_util:cast(5419, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
 
3101
  cast(5419, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
2557
3102
 
2558
3103
%% @spec ({X,Y,Z}) -> ok
2559
3104
%% @equiv windowPos3f(X,Y,Z)
 
3105
-spec windowPos3fv({float(),float(),float()}) -> ok.
2560
3106
windowPos3fv({X,Y,Z}) ->  windowPos3f(X,Y,Z).
2561
3107
 
2562
3108
%% @spec (X::integer(),Y::integer(),Z::integer()) -> ok
2563
3109
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos.xml">external</a> documentation.
 
3110
-spec windowPos3i(integer(),integer(),integer()) -> ok.
2564
3111
windowPos3i(X,Y,Z) ->
2565
 
  wxe_util:cast(5420, <<X:?GLint,Y:?GLint,Z:?GLint>>).
 
3112
  cast(5420, <<X:?GLint,Y:?GLint,Z:?GLint>>).
2566
3113
 
2567
3114
%% @spec ({X,Y,Z}) -> ok
2568
3115
%% @equiv windowPos3i(X,Y,Z)
 
3116
-spec windowPos3iv({integer(),integer(),integer()}) -> ok.
2569
3117
windowPos3iv({X,Y,Z}) ->  windowPos3i(X,Y,Z).
2570
3118
 
2571
3119
%% @spec (X::integer(),Y::integer(),Z::integer()) -> ok
2572
3120
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos.xml">external</a> documentation.
 
3121
-spec windowPos3s(integer(),integer(),integer()) -> ok.
2573
3122
windowPos3s(X,Y,Z) ->
2574
 
  wxe_util:cast(5421, <<X:?GLshort,Y:?GLshort,Z:?GLshort>>).
 
3123
  cast(5421, <<X:?GLshort,Y:?GLshort,Z:?GLshort>>).
2575
3124
 
2576
3125
%% @spec ({X,Y,Z}) -> ok
2577
3126
%% @equiv windowPos3s(X,Y,Z)
 
3127
-spec windowPos3sv({integer(),integer(),integer()}) -> ok.
2578
3128
windowPos3sv({X,Y,Z}) ->  windowPos3s(X,Y,Z).
2579
3129
 
2580
3130
%% @spec (N::integer()) -> [integer()]
2581
3131
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenQueries.xml">external</a> documentation.
 
3132
-spec genQueries(integer()) -> [integer()].
2582
3133
genQueries(N) ->
2583
 
  wxe_util:call(5422, <<N:?GLsizei>>).
 
3134
  call(5422, <<N:?GLsizei>>).
2584
3135
 
2585
3136
%% @spec (Ids::[integer()]) -> ok
2586
3137
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteQueries.xml">external</a> documentation.
 
3138
-spec deleteQueries([integer()]) -> ok.
2587
3139
deleteQueries(Ids) ->
2588
 
  wxe_util:cast(5423, <<(length(Ids)):?GLuint,
 
3140
  cast(5423, <<(length(Ids)):?GLuint,
2589
3141
        (<< <<C:?GLuint>> || C <- Ids>>)/binary,0:(((1+length(Ids)) rem 2)*32)>>).
2590
3142
 
2591
3143
%% @spec (Id::integer()) -> 0|1
2592
3144
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsQuery.xml">external</a> documentation.
 
3145
-spec isQuery(integer()) -> 0|1.
2593
3146
isQuery(Id) ->
2594
 
  wxe_util:call(5424, <<Id:?GLuint>>).
 
3147
  call(5424, <<Id:?GLuint>>).
2595
3148
 
2596
3149
%% @spec (Target::enum(),Id::integer()) -> ok
2597
3150
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBeginQuery.xml">external</a> documentation.
 
3151
-spec beginQuery(enum(),integer()) -> ok.
2598
3152
beginQuery(Target,Id) ->
2599
 
  wxe_util:cast(5425, <<Target:?GLenum,Id:?GLuint>>).
 
3153
  cast(5425, <<Target:?GLenum,Id:?GLuint>>).
2600
3154
 
2601
3155
%% @spec (Target::enum()) -> ok
2602
3156
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEndQuery.xml">external</a> documentation.
 
3157
-spec endQuery(enum()) -> ok.
2603
3158
endQuery(Target) ->
2604
 
  wxe_util:cast(5426, <<Target:?GLenum>>).
 
3159
  cast(5426, <<Target:?GLenum>>).
2605
3160
 
2606
3161
%% @spec (Target::enum(),Pname::enum()) -> integer()
2607
3162
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetQuery.xml">external</a> documentation.
 
3163
-spec getQueryiv(enum(),enum()) -> integer().
2608
3164
getQueryiv(Target,Pname) ->
2609
 
  wxe_util:call(5427, <<Target:?GLenum,Pname:?GLenum>>).
 
3165
  call(5427, <<Target:?GLenum,Pname:?GLenum>>).
2610
3166
 
2611
3167
%% @spec (Id::integer(),Pname::enum()) -> integer()
2612
3168
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetQueryObject.xml">external</a> documentation.
 
3169
-spec getQueryObjectiv(integer(),enum()) -> integer().
2613
3170
getQueryObjectiv(Id,Pname) ->
2614
 
  wxe_util:call(5428, <<Id:?GLuint,Pname:?GLenum>>).
 
3171
  call(5428, <<Id:?GLuint,Pname:?GLenum>>).
2615
3172
 
2616
3173
%% @spec (Id::integer(),Pname::enum()) -> integer()
2617
3174
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetQueryObject.xml">external</a> documentation.
 
3175
-spec getQueryObjectuiv(integer(),enum()) -> integer().
2618
3176
getQueryObjectuiv(Id,Pname) ->
2619
 
  wxe_util:call(5429, <<Id:?GLuint,Pname:?GLenum>>).
 
3177
  call(5429, <<Id:?GLuint,Pname:?GLenum>>).
2620
3178
 
2621
3179
%% @spec (Target::enum(),Buffer::integer()) -> ok
2622
3180
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindBuffer.xml">external</a> documentation.
 
3181
-spec bindBuffer(enum(),integer()) -> ok.
2623
3182
bindBuffer(Target,Buffer) ->
2624
 
  wxe_util:cast(5430, <<Target:?GLenum,Buffer:?GLuint>>).
 
3183
  cast(5430, <<Target:?GLenum,Buffer:?GLuint>>).
2625
3184
 
2626
3185
%% @spec (Buffers::[integer()]) -> ok
2627
3186
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteBuffers.xml">external</a> documentation.
 
3187
-spec deleteBuffers([integer()]) -> ok.
2628
3188
deleteBuffers(Buffers) ->
2629
 
  wxe_util:cast(5431, <<(length(Buffers)):?GLuint,
 
3189
  cast(5431, <<(length(Buffers)):?GLuint,
2630
3190
        (<< <<C:?GLuint>> || C <- Buffers>>)/binary,0:(((1+length(Buffers)) rem 2)*32)>>).
2631
3191
 
2632
3192
%% @spec (N::integer()) -> [integer()]
2633
3193
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenBuffers.xml">external</a> documentation.
 
3194
-spec genBuffers(integer()) -> [integer()].
2634
3195
genBuffers(N) ->
2635
 
  wxe_util:call(5432, <<N:?GLsizei>>).
 
3196
  call(5432, <<N:?GLsizei>>).
2636
3197
 
2637
3198
%% @spec (Buffer::integer()) -> 0|1
2638
3199
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsBuffer.xml">external</a> documentation.
 
3200
-spec isBuffer(integer()) -> 0|1.
2639
3201
isBuffer(Buffer) ->
2640
 
  wxe_util:call(5433, <<Buffer:?GLuint>>).
 
3202
  call(5433, <<Buffer:?GLuint>>).
2641
3203
 
2642
 
%% @spec (Target::enum(),Size::integer(),Data::offset()|binary(),Usage::enum()) -> ok
 
3204
%% @spec (Target::enum(),Size::integer(),Data::offset()|mem(),Usage::enum()) -> ok
2643
3205
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBufferData.xml">external</a> documentation.
 
3206
-spec bufferData(enum(),integer(),offset()|mem(),enum()) -> ok.
2644
3207
bufferData(Target,Size,Data,Usage) when  is_integer(Data) ->
2645
 
  wxe_util:cast(5434, <<Target:?GLenum,0:32,Size:?GLsizeiptr,Data:?GLuint,Usage:?GLenum>>);
 
3208
  cast(5434, <<Target:?GLenum,0:32,Size:?GLsizeiptr,Data:?GLuint,Usage:?GLenum>>);
2646
3209
bufferData(Target,Size,Data,Usage) ->
2647
 
  wxe_util:send_bin(Data),
2648
 
  wxe_util:cast(5435, <<Target:?GLenum,0:32,Size:?GLsizeiptr,Usage:?GLenum>>).
 
3210
  send_bin(Data),
 
3211
  cast(5435, <<Target:?GLenum,0:32,Size:?GLsizeiptr,Usage:?GLenum>>).
2649
3212
 
2650
 
%% @spec (Target::enum(),Offset::integer(),Size::integer(),Data::offset()|binary()) -> ok
 
3213
%% @spec (Target::enum(),Offset::integer(),Size::integer(),Data::offset()|mem()) -> ok
2651
3214
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBufferSubData.xml">external</a> documentation.
 
3215
-spec bufferSubData(enum(),integer(),integer(),offset()|mem()) -> ok.
2652
3216
bufferSubData(Target,Offset,Size,Data) when  is_integer(Data) ->
2653
 
  wxe_util:cast(5436, <<Target:?GLenum,0:32,Offset:?GLintptr,Size:?GLsizeiptr,Data:?GLuint>>);
 
3217
  cast(5436, <<Target:?GLenum,0:32,Offset:?GLintptr,Size:?GLsizeiptr,Data:?GLuint>>);
2654
3218
bufferSubData(Target,Offset,Size,Data) ->
2655
 
  wxe_util:send_bin(Data),
2656
 
  wxe_util:cast(5437, <<Target:?GLenum,0:32,Offset:?GLintptr,Size:?GLsizeiptr>>).
 
3219
  send_bin(Data),
 
3220
  cast(5437, <<Target:?GLenum,0:32,Offset:?GLintptr,Size:?GLsizeiptr>>).
2657
3221
 
2658
 
%% @spec (Target::enum(),Offset::integer(),Size::integer(),Data::wx:wx_mem()) -> ok
 
3222
%% @spec (Target::enum(),Offset::integer(),Size::integer(),Data::mem()) -> ok
2659
3223
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetBufferSubData.xml">external</a> documentation.
 
3224
-spec getBufferSubData(enum(),integer(),integer(),mem()) -> ok.
2660
3225
getBufferSubData(Target,Offset,Size,Data) ->
2661
 
  wxe_util:send_bin(Data#wx_mem.bin),
2662
 
  wxe_util:call(5438, <<Target:?GLenum,0:32,Offset:?GLintptr,Size:?GLsizeiptr>>).
 
3226
  send_bin(Data),
 
3227
  call(5438, <<Target:?GLenum,0:32,Offset:?GLintptr,Size:?GLsizeiptr>>).
2663
3228
 
2664
3229
%% @spec (Target::enum(),Pname::enum()) -> integer()
2665
3230
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetBufferParameteriv.xml">external</a> documentation.
 
3231
-spec getBufferParameteriv(enum(),enum()) -> integer().
2666
3232
getBufferParameteriv(Target,Pname) ->
2667
 
  wxe_util:call(5439, <<Target:?GLenum,Pname:?GLenum>>).
 
3233
  call(5439, <<Target:?GLenum,Pname:?GLenum>>).
2668
3234
 
2669
3235
%% @spec (ModeRGB::enum(),ModeAlpha::enum()) -> ok
2670
3236
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlendEquationSeparate.xml">external</a> documentation.
 
3237
-spec blendEquationSeparate(enum(),enum()) -> ok.
2671
3238
blendEquationSeparate(ModeRGB,ModeAlpha) ->
2672
 
  wxe_util:cast(5440, <<ModeRGB:?GLenum,ModeAlpha:?GLenum>>).
 
3239
  cast(5440, <<ModeRGB:?GLenum,ModeAlpha:?GLenum>>).
2673
3240
 
2674
3241
%% @spec (Bufs::[enum()]) -> ok
2675
3242
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawBuffers.xml">external</a> documentation.
 
3243
-spec drawBuffers([enum()]) -> ok.
2676
3244
drawBuffers(Bufs) ->
2677
 
  wxe_util:cast(5441, <<(length(Bufs)):?GLuint,
 
3245
  cast(5441, <<(length(Bufs)):?GLuint,
2678
3246
        (<< <<C:?GLenum>> || C <- Bufs>>)/binary,0:(((1+length(Bufs)) rem 2)*32)>>).
2679
3247
 
2680
3248
%% @spec (Face::enum(),Sfail::enum(),Dpfail::enum(),Dppass::enum()) -> ok
2681
3249
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glStencilOpSeparate.xml">external</a> documentation.
 
3250
-spec stencilOpSeparate(enum(),enum(),enum(),enum()) -> ok.
2682
3251
stencilOpSeparate(Face,Sfail,Dpfail,Dppass) ->
2683
 
  wxe_util:cast(5442, <<Face:?GLenum,Sfail:?GLenum,Dpfail:?GLenum,Dppass:?GLenum>>).
 
3252
  cast(5442, <<Face:?GLenum,Sfail:?GLenum,Dpfail:?GLenum,Dppass:?GLenum>>).
2684
3253
 
2685
 
%% @spec (Frontfunc::enum(),Backfunc::enum(),Ref::integer(),Mask::integer()) -> ok
 
3254
%% @spec (Face::enum(),Func::enum(),Ref::integer(),Mask::integer()) -> ok
2686
3255
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glStencilFuncSeparate.xml">external</a> documentation.
2687
 
stencilFuncSeparate(Frontfunc,Backfunc,Ref,Mask) ->
2688
 
  wxe_util:cast(5443, <<Frontfunc:?GLenum,Backfunc:?GLenum,Ref:?GLint,Mask:?GLuint>>).
 
3256
-spec stencilFuncSeparate(enum(),enum(),integer(),integer()) -> ok.
 
3257
stencilFuncSeparate(Face,Func,Ref,Mask) ->
 
3258
  cast(5443, <<Face:?GLenum,Func:?GLenum,Ref:?GLint,Mask:?GLuint>>).
2689
3259
 
2690
3260
%% @spec (Face::enum(),Mask::integer()) -> ok
2691
3261
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glStencilMaskSeparate.xml">external</a> documentation.
 
3262
-spec stencilMaskSeparate(enum(),integer()) -> ok.
2692
3263
stencilMaskSeparate(Face,Mask) ->
2693
 
  wxe_util:cast(5444, <<Face:?GLenum,Mask:?GLuint>>).
 
3264
  cast(5444, <<Face:?GLenum,Mask:?GLuint>>).
2694
3265
 
2695
3266
%% @spec (Program::integer(),Shader::integer()) -> ok
2696
3267
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glAttachShader.xml">external</a> documentation.
 
3268
-spec attachShader(integer(),integer()) -> ok.
2697
3269
attachShader(Program,Shader) ->
2698
 
  wxe_util:cast(5445, <<Program:?GLuint,Shader:?GLuint>>).
 
3270
  cast(5445, <<Program:?GLuint,Shader:?GLuint>>).
2699
3271
 
2700
3272
%% @spec (Program::integer(),Index::integer(),Name::string()) -> ok
2701
3273
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindAttribLocation.xml">external</a> documentation.
 
3274
-spec bindAttribLocation(integer(),integer(),string()) -> ok.
2702
3275
bindAttribLocation(Program,Index,Name) ->
2703
 
  wxe_util:cast(5446, <<Program:?GLuint,Index:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8)>>).
 
3276
  cast(5446, <<Program:?GLuint,Index:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8)>>).
2704
3277
 
2705
3278
%% @spec (Shader::integer()) -> ok
2706
3279
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompileShader.xml">external</a> documentation.
 
3280
-spec compileShader(integer()) -> ok.
2707
3281
compileShader(Shader) ->
2708
 
  wxe_util:cast(5447, <<Shader:?GLuint>>).
 
3282
  cast(5447, <<Shader:?GLuint>>).
2709
3283
 
2710
3284
%% @spec () -> integer()
2711
3285
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCreateProgram.xml">external</a> documentation.
 
3286
-spec createProgram() -> integer().
2712
3287
createProgram() ->
2713
 
  wxe_util:call(5448, <<>>).
 
3288
  call(5448, <<>>).
2714
3289
 
2715
3290
%% @spec (Type::enum()) -> integer()
2716
3291
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCreateShader.xml">external</a> documentation.
 
3292
-spec createShader(enum()) -> integer().
2717
3293
createShader(Type) ->
2718
 
  wxe_util:call(5449, <<Type:?GLenum>>).
 
3294
  call(5449, <<Type:?GLenum>>).
2719
3295
 
2720
3296
%% @spec (Program::integer()) -> ok
2721
3297
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteProgram.xml">external</a> documentation.
 
3298
-spec deleteProgram(integer()) -> ok.
2722
3299
deleteProgram(Program) ->
2723
 
  wxe_util:cast(5450, <<Program:?GLuint>>).
 
3300
  cast(5450, <<Program:?GLuint>>).
2724
3301
 
2725
3302
%% @spec (Shader::integer()) -> ok
2726
3303
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteShader.xml">external</a> documentation.
 
3304
-spec deleteShader(integer()) -> ok.
2727
3305
deleteShader(Shader) ->
2728
 
  wxe_util:cast(5451, <<Shader:?GLuint>>).
 
3306
  cast(5451, <<Shader:?GLuint>>).
2729
3307
 
2730
3308
%% @spec (Program::integer(),Shader::integer()) -> ok
2731
3309
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDetachShader.xml">external</a> documentation.
 
3310
-spec detachShader(integer(),integer()) -> ok.
2732
3311
detachShader(Program,Shader) ->
2733
 
  wxe_util:cast(5452, <<Program:?GLuint,Shader:?GLuint>>).
 
3312
  cast(5452, <<Program:?GLuint,Shader:?GLuint>>).
2734
3313
 
2735
3314
%% @spec (Index::integer()) -> ok
2736
3315
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDisableVertexAttribArray.xml">external</a> documentation.
 
3316
-spec disableVertexAttribArray(integer()) -> ok.
2737
3317
disableVertexAttribArray(Index) ->
2738
 
  wxe_util:cast(5453, <<Index:?GLuint>>).
 
3318
  cast(5453, <<Index:?GLuint>>).
2739
3319
 
2740
3320
%% @spec (Index::integer()) -> ok
2741
3321
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEnableVertexAttribArray.xml">external</a> documentation.
 
3322
-spec enableVertexAttribArray(integer()) -> ok.
2742
3323
enableVertexAttribArray(Index) ->
2743
 
  wxe_util:cast(5454, <<Index:?GLuint>>).
 
3324
  cast(5454, <<Index:?GLuint>>).
2744
3325
 
2745
3326
%% @spec (Program::integer(),Index::integer(),BufSize::integer()) -> {Size::integer(),Type::enum(),Name::string()}
2746
3327
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveAttrib.xml">external</a> documentation.
 
3328
-spec getActiveAttrib(integer(),integer(),integer()) -> {integer(),enum(),string()}.
2747
3329
getActiveAttrib(Program,Index,BufSize) ->
2748
 
  wxe_util:call(5455, <<Program:?GLuint,Index:?GLuint,BufSize:?GLsizei>>).
 
3330
  call(5455, <<Program:?GLuint,Index:?GLuint,BufSize:?GLsizei>>).
2749
3331
 
2750
3332
%% @spec (Program::integer(),Index::integer(),BufSize::integer()) -> {Size::integer(),Type::enum(),Name::string()}
2751
3333
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveUniform.xml">external</a> documentation.
 
3334
-spec getActiveUniform(integer(),integer(),integer()) -> {integer(),enum(),string()}.
2752
3335
getActiveUniform(Program,Index,BufSize) ->
2753
 
  wxe_util:call(5456, <<Program:?GLuint,Index:?GLuint,BufSize:?GLsizei>>).
 
3336
  call(5456, <<Program:?GLuint,Index:?GLuint,BufSize:?GLsizei>>).
2754
3337
 
2755
3338
%% @spec (Program::integer(),MaxCount::integer()) -> [integer()]
2756
3339
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetAttachedShaders.xml">external</a> documentation.
 
3340
-spec getAttachedShaders(integer(),integer()) -> [integer()].
2757
3341
getAttachedShaders(Program,MaxCount) ->
2758
 
  wxe_util:call(5457, <<Program:?GLuint,MaxCount:?GLsizei>>).
 
3342
  call(5457, <<Program:?GLuint,MaxCount:?GLsizei>>).
2759
3343
 
2760
3344
%% @spec (Program::integer(),Name::string()) -> integer()
2761
3345
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetAttribLocation.xml">external</a> documentation.
 
3346
-spec getAttribLocation(integer(),string()) -> integer().
2762
3347
getAttribLocation(Program,Name) ->
2763
 
  wxe_util:call(5458, <<Program:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 5) rem 8)) rem 8)>>).
 
3348
  call(5458, <<Program:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 5) rem 8)) rem 8)>>).
2764
3349
 
2765
3350
%% @spec (Program::integer(),Pname::enum()) -> integer()
2766
3351
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgram.xml">external</a> documentation.
 
3352
-spec getProgramiv(integer(),enum()) -> integer().
2767
3353
getProgramiv(Program,Pname) ->
2768
 
  wxe_util:call(5459, <<Program:?GLuint,Pname:?GLenum>>).
 
3354
  call(5459, <<Program:?GLuint,Pname:?GLenum>>).
2769
3355
 
2770
3356
%% @spec (Program::integer(),BufSize::integer()) -> string()
2771
3357
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgramInfoLog.xml">external</a> documentation.
 
3358
-spec getProgramInfoLog(integer(),integer()) -> string().
2772
3359
getProgramInfoLog(Program,BufSize) ->
2773
 
  wxe_util:call(5460, <<Program:?GLuint,BufSize:?GLsizei>>).
 
3360
  call(5460, <<Program:?GLuint,BufSize:?GLsizei>>).
2774
3361
 
2775
3362
%% @spec (Shader::integer(),Pname::enum()) -> integer()
2776
3363
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetShader.xml">external</a> documentation.
 
3364
-spec getShaderiv(integer(),enum()) -> integer().
2777
3365
getShaderiv(Shader,Pname) ->
2778
 
  wxe_util:call(5461, <<Shader:?GLuint,Pname:?GLenum>>).
 
3366
  call(5461, <<Shader:?GLuint,Pname:?GLenum>>).
2779
3367
 
2780
3368
%% @spec (Shader::integer(),BufSize::integer()) -> string()
2781
3369
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetShaderInfoLog.xml">external</a> documentation.
 
3370
-spec getShaderInfoLog(integer(),integer()) -> string().
2782
3371
getShaderInfoLog(Shader,BufSize) ->
2783
 
  wxe_util:call(5462, <<Shader:?GLuint,BufSize:?GLsizei>>).
 
3372
  call(5462, <<Shader:?GLuint,BufSize:?GLsizei>>).
2784
3373
 
2785
3374
%% @spec (Shader::integer(),BufSize::integer()) -> string()
2786
3375
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetShaderSource.xml">external</a> documentation.
 
3376
-spec getShaderSource(integer(),integer()) -> string().
2787
3377
getShaderSource(Shader,BufSize) ->
2788
 
  wxe_util:call(5463, <<Shader:?GLuint,BufSize:?GLsizei>>).
 
3378
  call(5463, <<Shader:?GLuint,BufSize:?GLsizei>>).
2789
3379
 
2790
3380
%% @spec (Program::integer(),Name::string()) -> integer()
2791
3381
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniformLocation.xml">external</a> documentation.
 
3382
-spec getUniformLocation(integer(),string()) -> integer().
2792
3383
getUniformLocation(Program,Name) ->
2793
 
  wxe_util:call(5464, <<Program:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 5) rem 8)) rem 8)>>).
 
3384
  call(5464, <<Program:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 5) rem 8)) rem 8)>>).
2794
3385
 
2795
 
%% @spec (Program::integer(),Location::integer()) -> {float()}
 
3386
%% @spec (Program::integer(),Location::integer()) -> {float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}
2796
3387
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniform.xml">external</a> documentation.
 
3388
-spec getUniformfv(integer(),integer()) -> {float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}.
2797
3389
getUniformfv(Program,Location) ->
2798
 
  wxe_util:call(5465, <<Program:?GLuint,Location:?GLint>>).
 
3390
  call(5465, <<Program:?GLuint,Location:?GLint>>).
2799
3391
 
2800
 
%% @spec (Program::integer(),Location::integer()) -> {integer()}
 
3392
%% @spec (Program::integer(),Location::integer()) -> {integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer()}
2801
3393
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniform.xml">external</a> documentation.
 
3394
-spec getUniformiv(integer(),integer()) -> {integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer()}.
2802
3395
getUniformiv(Program,Location) ->
2803
 
  wxe_util:call(5466, <<Program:?GLuint,Location:?GLint>>).
 
3396
  call(5466, <<Program:?GLuint,Location:?GLint>>).
2804
3397
 
2805
 
%% @spec (Index::integer(),Pname::enum()) -> {float()}
 
3398
%% @spec (Index::integer(),Pname::enum()) -> {float(),float(),float(),float()}
2806
3399
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetVertexAttrib.xml">external</a> documentation.
 
3400
-spec getVertexAttribdv(integer(),enum()) -> {float(),float(),float(),float()}.
2807
3401
getVertexAttribdv(Index,Pname) ->
2808
 
  wxe_util:call(5467, <<Index:?GLuint,Pname:?GLenum>>).
 
3402
  call(5467, <<Index:?GLuint,Pname:?GLenum>>).
2809
3403
 
2810
 
%% @spec (Index::integer(),Pname::enum()) -> {float()}
 
3404
%% @spec (Index::integer(),Pname::enum()) -> {float(),float(),float(),float()}
2811
3405
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetVertexAttrib.xml">external</a> documentation.
 
3406
-spec getVertexAttribfv(integer(),enum()) -> {float(),float(),float(),float()}.
2812
3407
getVertexAttribfv(Index,Pname) ->
2813
 
  wxe_util:call(5468, <<Index:?GLuint,Pname:?GLenum>>).
 
3408
  call(5468, <<Index:?GLuint,Pname:?GLenum>>).
2814
3409
 
2815
 
%% @spec (Index::integer(),Pname::enum()) -> {integer()}
 
3410
%% @spec (Index::integer(),Pname::enum()) -> {integer(),integer(),integer(),integer()}
2816
3411
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetVertexAttrib.xml">external</a> documentation.
 
3412
-spec getVertexAttribiv(integer(),enum()) -> {integer(),integer(),integer(),integer()}.
2817
3413
getVertexAttribiv(Index,Pname) ->
2818
 
  wxe_util:call(5469, <<Index:?GLuint,Pname:?GLenum>>).
 
3414
  call(5469, <<Index:?GLuint,Pname:?GLenum>>).
2819
3415
 
2820
3416
%% @spec (Program::integer()) -> 0|1
2821
3417
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsProgram.xml">external</a> documentation.
 
3418
-spec isProgram(integer()) -> 0|1.
2822
3419
isProgram(Program) ->
2823
 
  wxe_util:call(5470, <<Program:?GLuint>>).
 
3420
  call(5470, <<Program:?GLuint>>).
2824
3421
 
2825
3422
%% @spec (Shader::integer()) -> 0|1
2826
3423
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsShader.xml">external</a> documentation.
 
3424
-spec isShader(integer()) -> 0|1.
2827
3425
isShader(Shader) ->
2828
 
  wxe_util:call(5471, <<Shader:?GLuint>>).
 
3426
  call(5471, <<Shader:?GLuint>>).
2829
3427
 
2830
3428
%% @spec (Program::integer()) -> ok
2831
3429
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLinkProgram.xml">external</a> documentation.
 
3430
-spec linkProgram(integer()) -> ok.
2832
3431
linkProgram(Program) ->
2833
 
  wxe_util:cast(5472, <<Program:?GLuint>>).
 
3432
  cast(5472, <<Program:?GLuint>>).
2834
3433
 
2835
3434
%% @spec (Shader::integer(),String::[string()]) -> ok
2836
3435
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glShaderSource.xml">external</a> documentation.
 
3436
-spec shaderSource(integer(),[string()]) -> ok.
2837
3437
shaderSource(Shader,String) ->
2838
3438
 StringTemp = list_to_binary([[Str|[0]] || Str <- String ]),
2839
 
  wxe_util:cast(5473, <<Shader:?GLuint,(length(String)):?GLuint,(size(StringTemp)):?GLuint,(StringTemp)/binary,0:((8-((size(StringTemp)+0) rem 8)) rem 8)>>).
 
3439
  cast(5473, <<Shader:?GLuint,(length(String)):?GLuint,(size(StringTemp)):?GLuint,(StringTemp)/binary,0:((8-((size(StringTemp)+0) rem 8)) rem 8)>>).
2840
3440
 
2841
3441
%% @spec (Program::integer()) -> ok
2842
3442
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUseProgram.xml">external</a> documentation.
 
3443
-spec useProgram(integer()) -> ok.
2843
3444
useProgram(Program) ->
2844
 
  wxe_util:cast(5474, <<Program:?GLuint>>).
 
3445
  cast(5474, <<Program:?GLuint>>).
2845
3446
 
2846
3447
%% @spec (Location::integer(),V0::float()) -> ok
2847
3448
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
3449
-spec uniform1f(integer(),float()) -> ok.
2848
3450
uniform1f(Location,V0) ->
2849
 
  wxe_util:cast(5475, <<Location:?GLint,V0:?GLfloat>>).
 
3451
  cast(5475, <<Location:?GLint,V0:?GLfloat>>).
2850
3452
 
2851
3453
%% @spec (Location::integer(),V0::float(),V1::float()) -> ok
2852
3454
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
3455
-spec uniform2f(integer(),float(),float()) -> ok.
2853
3456
uniform2f(Location,V0,V1) ->
2854
 
  wxe_util:cast(5476, <<Location:?GLint,V0:?GLfloat,V1:?GLfloat>>).
 
3457
  cast(5476, <<Location:?GLint,V0:?GLfloat,V1:?GLfloat>>).
2855
3458
 
2856
3459
%% @spec (Location::integer(),V0::float(),V1::float(),V2::float()) -> ok
2857
3460
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
3461
-spec uniform3f(integer(),float(),float(),float()) -> ok.
2858
3462
uniform3f(Location,V0,V1,V2) ->
2859
 
  wxe_util:cast(5477, <<Location:?GLint,V0:?GLfloat,V1:?GLfloat,V2:?GLfloat>>).
 
3463
  cast(5477, <<Location:?GLint,V0:?GLfloat,V1:?GLfloat,V2:?GLfloat>>).
2860
3464
 
2861
3465
%% @spec (Location::integer(),V0::float(),V1::float(),V2::float(),V3::float()) -> ok
2862
3466
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
3467
-spec uniform4f(integer(),float(),float(),float(),float()) -> ok.
2863
3468
uniform4f(Location,V0,V1,V2,V3) ->
2864
 
  wxe_util:cast(5478, <<Location:?GLint,V0:?GLfloat,V1:?GLfloat,V2:?GLfloat,V3:?GLfloat>>).
 
3469
  cast(5478, <<Location:?GLint,V0:?GLfloat,V1:?GLfloat,V2:?GLfloat,V3:?GLfloat>>).
2865
3470
 
2866
3471
%% @spec (Location::integer(),V0::integer()) -> ok
2867
3472
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
3473
-spec uniform1i(integer(),integer()) -> ok.
2868
3474
uniform1i(Location,V0) ->
2869
 
  wxe_util:cast(5479, <<Location:?GLint,V0:?GLint>>).
 
3475
  cast(5479, <<Location:?GLint,V0:?GLint>>).
2870
3476
 
2871
3477
%% @spec (Location::integer(),V0::integer(),V1::integer()) -> ok
2872
3478
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
3479
-spec uniform2i(integer(),integer(),integer()) -> ok.
2873
3480
uniform2i(Location,V0,V1) ->
2874
 
  wxe_util:cast(5480, <<Location:?GLint,V0:?GLint,V1:?GLint>>).
 
3481
  cast(5480, <<Location:?GLint,V0:?GLint,V1:?GLint>>).
2875
3482
 
2876
3483
%% @spec (Location::integer(),V0::integer(),V1::integer(),V2::integer()) -> ok
2877
3484
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
3485
-spec uniform3i(integer(),integer(),integer(),integer()) -> ok.
2878
3486
uniform3i(Location,V0,V1,V2) ->
2879
 
  wxe_util:cast(5481, <<Location:?GLint,V0:?GLint,V1:?GLint,V2:?GLint>>).
 
3487
  cast(5481, <<Location:?GLint,V0:?GLint,V1:?GLint,V2:?GLint>>).
2880
3488
 
2881
3489
%% @spec (Location::integer(),V0::integer(),V1::integer(),V2::integer(),V3::integer()) -> ok
2882
3490
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
3491
-spec uniform4i(integer(),integer(),integer(),integer(),integer()) -> ok.
2883
3492
uniform4i(Location,V0,V1,V2,V3) ->
2884
 
  wxe_util:cast(5482, <<Location:?GLint,V0:?GLint,V1:?GLint,V2:?GLint,V3:?GLint>>).
 
3493
  cast(5482, <<Location:?GLint,V0:?GLint,V1:?GLint,V2:?GLint,V3:?GLint>>).
2885
3494
 
2886
3495
%% @spec (Location::integer(),Value::[float()]) -> ok
2887
3496
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
3497
-spec uniform1fv(integer(),[float()]) -> ok.
2888
3498
uniform1fv(Location,Value) ->
2889
 
  wxe_util:cast(5483, <<Location:?GLint,(length(Value)):?GLuint,
 
3499
  cast(5483, <<Location:?GLint,(length(Value)):?GLuint,
2890
3500
        (<< <<C:?GLfloat>> || C <- Value>>)/binary,0:(((length(Value)) rem 2)*32)>>).
2891
3501
 
2892
 
%% @spec (Location::integer(),Value::[{float()}]) -> ok
 
3502
%% @spec (Location::integer(),Value::[{float(),float()}]) -> ok
2893
3503
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
3504
-spec uniform2fv(integer(),[{float(),float()}]) -> ok.
2894
3505
uniform2fv(Location,Value) ->
2895
 
  wxe_util:cast(5484, <<Location:?GLint,(length(Value)):?GLuint,
 
3506
  cast(5484, <<Location:?GLint,(length(Value)):?GLuint,
2896
3507
        (<< <<V1:?GLfloat,V2:?GLfloat>> || {V1,V2} <- Value>>)/binary>>).
2897
3508
 
2898
 
%% @spec (Location::integer(),Value::[{float()}]) -> ok
 
3509
%% @spec (Location::integer(),Value::[{float(),float(),float()}]) -> ok
2899
3510
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
3511
-spec uniform3fv(integer(),[{float(),float(),float()}]) -> ok.
2900
3512
uniform3fv(Location,Value) ->
2901
 
  wxe_util:cast(5485, <<Location:?GLint,(length(Value)):?GLuint,
 
3513
  cast(5485, <<Location:?GLint,(length(Value)):?GLuint,
2902
3514
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat>> || {V1,V2,V3} <- Value>>)/binary>>).
2903
3515
 
2904
 
%% @spec (Location::integer(),Value::[{float()}]) -> ok
 
3516
%% @spec (Location::integer(),Value::[{float(),float(),float(),float()}]) -> ok
2905
3517
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
3518
-spec uniform4fv(integer(),[{float(),float(),float(),float()}]) -> ok.
2906
3519
uniform4fv(Location,Value) ->
2907
 
  wxe_util:cast(5486, <<Location:?GLint,(length(Value)):?GLuint,
 
3520
  cast(5486, <<Location:?GLint,(length(Value)):?GLuint,
2908
3521
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat>> || {V1,V2,V3,V4} <- Value>>)/binary>>).
2909
3522
 
2910
3523
%% @spec (Location::integer(),Value::[integer()]) -> ok
2911
3524
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
3525
-spec uniform1iv(integer(),[integer()]) -> ok.
2912
3526
uniform1iv(Location,Value) ->
2913
 
  wxe_util:cast(5487, <<Location:?GLint,(length(Value)):?GLuint,
 
3527
  cast(5487, <<Location:?GLint,(length(Value)):?GLuint,
2914
3528
        (<< <<C:?GLint>> || C <- Value>>)/binary,0:(((length(Value)) rem 2)*32)>>).
2915
3529
 
2916
 
%% @spec (Location::integer(),Value::[{integer()}]) -> ok
 
3530
%% @spec (Location::integer(),Value::[{integer(),integer()}]) -> ok
2917
3531
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
3532
-spec uniform2iv(integer(),[{integer(),integer()}]) -> ok.
2918
3533
uniform2iv(Location,Value) ->
2919
 
  wxe_util:cast(5488, <<Location:?GLint,(length(Value)):?GLuint,
 
3534
  cast(5488, <<Location:?GLint,(length(Value)):?GLuint,
2920
3535
        (<< <<V1:?GLint,V2:?GLint>> || {V1,V2} <- Value>>)/binary>>).
2921
3536
 
2922
 
%% @spec (Location::integer(),Value::[{integer()}]) -> ok
 
3537
%% @spec (Location::integer(),Value::[{integer(),integer(),integer()}]) -> ok
2923
3538
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
3539
-spec uniform3iv(integer(),[{integer(),integer(),integer()}]) -> ok.
2924
3540
uniform3iv(Location,Value) ->
2925
 
  wxe_util:cast(5489, <<Location:?GLint,(length(Value)):?GLuint,
 
3541
  cast(5489, <<Location:?GLint,(length(Value)):?GLuint,
2926
3542
        (<< <<V1:?GLint,V2:?GLint,V3:?GLint>> || {V1,V2,V3} <- Value>>)/binary>>).
2927
3543
 
2928
 
%% @spec (Location::integer(),Value::[{integer()}]) -> ok
 
3544
%% @spec (Location::integer(),Value::[{integer(),integer(),integer(),integer()}]) -> ok
2929
3545
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
3546
-spec uniform4iv(integer(),[{integer(),integer(),integer(),integer()}]) -> ok.
2930
3547
uniform4iv(Location,Value) ->
2931
 
  wxe_util:cast(5490, <<Location:?GLint,(length(Value)):?GLuint,
 
3548
  cast(5490, <<Location:?GLint,(length(Value)):?GLuint,
2932
3549
        (<< <<V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint>> || {V1,V2,V3,V4} <- Value>>)/binary>>).
2933
3550
 
2934
 
%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
 
3551
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float()}]) -> ok
2935
3552
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix.xml">external</a> documentation.
 
3553
-spec uniformMatrix2fv(integer(),0|1,[{float(),float(),float(),float()}]) -> ok.
2936
3554
uniformMatrix2fv(Location,Transpose,Value) ->
2937
 
  wxe_util:cast(5491, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
3555
  cast(5491, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
2938
3556
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat>> || {V1,V2,V3,V4} <- Value>>)/binary>>).
2939
3557
 
2940
 
%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
 
3558
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
2941
3559
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix.xml">external</a> documentation.
 
3560
-spec uniformMatrix3fv(integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
2942
3561
uniformMatrix3fv(Location,Transpose,Value) ->
2943
 
  wxe_util:cast(5492, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
3562
  cast(5492, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
2944
3563
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat,V9:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9} <- Value>>)/binary>>).
2945
3564
 
2946
 
%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
 
3565
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
2947
3566
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix.xml">external</a> documentation.
 
3567
-spec uniformMatrix4fv(integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
2948
3568
uniformMatrix4fv(Location,Transpose,Value) ->
2949
 
  wxe_util:cast(5493, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
3569
  cast(5493, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
2950
3570
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat,V9:?GLfloat,V10:?GLfloat,V11:?GLfloat,V12:?GLfloat,V13:?GLfloat,V14:?GLfloat,V15:?GLfloat,V16:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12,V13,V14,V15,V16} <- Value>>)/binary>>).
2951
3571
 
2952
3572
%% @spec (Program::integer()) -> ok
2953
3573
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glValidateProgram.xml">external</a> documentation.
 
3574
-spec validateProgram(integer()) -> ok.
2954
3575
validateProgram(Program) ->
2955
 
  wxe_util:cast(5494, <<Program:?GLuint>>).
 
3576
  cast(5494, <<Program:?GLuint>>).
2956
3577
 
2957
3578
%% @spec (Index::integer(),X::float()) -> ok
2958
3579
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3580
-spec vertexAttrib1d(integer(),float()) -> ok.
2959
3581
vertexAttrib1d(Index,X) ->
2960
 
  wxe_util:cast(5495, <<Index:?GLuint,0:32,X:?GLdouble>>).
 
3582
  cast(5495, <<Index:?GLuint,0:32,X:?GLdouble>>).
2961
3583
 
2962
3584
%% @spec (Index,{X}) -> ok
2963
3585
%% @equiv vertexAttrib1d(Index,X)
 
3586
-spec vertexAttrib1dv(integer(),{float()}) -> ok.
2964
3587
vertexAttrib1dv(Index,{X}) ->  vertexAttrib1d(Index,X).
2965
3588
 
2966
3589
%% @spec (Index::integer(),X::float()) -> ok
2967
3590
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3591
-spec vertexAttrib1f(integer(),float()) -> ok.
2968
3592
vertexAttrib1f(Index,X) ->
2969
 
  wxe_util:cast(5496, <<Index:?GLuint,X:?GLfloat>>).
 
3593
  cast(5496, <<Index:?GLuint,X:?GLfloat>>).
2970
3594
 
2971
3595
%% @spec (Index,{X}) -> ok
2972
3596
%% @equiv vertexAttrib1f(Index,X)
 
3597
-spec vertexAttrib1fv(integer(),{float()}) -> ok.
2973
3598
vertexAttrib1fv(Index,{X}) ->  vertexAttrib1f(Index,X).
2974
3599
 
2975
3600
%% @spec (Index::integer(),X::integer()) -> ok
2976
3601
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3602
-spec vertexAttrib1s(integer(),integer()) -> ok.
2977
3603
vertexAttrib1s(Index,X) ->
2978
 
  wxe_util:cast(5497, <<Index:?GLuint,X:?GLshort>>).
 
3604
  cast(5497, <<Index:?GLuint,X:?GLshort>>).
2979
3605
 
2980
3606
%% @spec (Index,{X}) -> ok
2981
3607
%% @equiv vertexAttrib1s(Index,X)
 
3608
-spec vertexAttrib1sv(integer(),{integer()}) -> ok.
2982
3609
vertexAttrib1sv(Index,{X}) ->  vertexAttrib1s(Index,X).
2983
3610
 
2984
3611
%% @spec (Index::integer(),X::float(),Y::float()) -> ok
2985
3612
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3613
-spec vertexAttrib2d(integer(),float(),float()) -> ok.
2986
3614
vertexAttrib2d(Index,X,Y) ->
2987
 
  wxe_util:cast(5498, <<Index:?GLuint,0:32,X:?GLdouble,Y:?GLdouble>>).
 
3615
  cast(5498, <<Index:?GLuint,0:32,X:?GLdouble,Y:?GLdouble>>).
2988
3616
 
2989
3617
%% @spec (Index,{X,Y}) -> ok
2990
3618
%% @equiv vertexAttrib2d(Index,X,Y)
 
3619
-spec vertexAttrib2dv(integer(),{float(),float()}) -> ok.
2991
3620
vertexAttrib2dv(Index,{X,Y}) ->  vertexAttrib2d(Index,X,Y).
2992
3621
 
2993
3622
%% @spec (Index::integer(),X::float(),Y::float()) -> ok
2994
3623
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3624
-spec vertexAttrib2f(integer(),float(),float()) -> ok.
2995
3625
vertexAttrib2f(Index,X,Y) ->
2996
 
  wxe_util:cast(5499, <<Index:?GLuint,X:?GLfloat,Y:?GLfloat>>).
 
3626
  cast(5499, <<Index:?GLuint,X:?GLfloat,Y:?GLfloat>>).
2997
3627
 
2998
3628
%% @spec (Index,{X,Y}) -> ok
2999
3629
%% @equiv vertexAttrib2f(Index,X,Y)
 
3630
-spec vertexAttrib2fv(integer(),{float(),float()}) -> ok.
3000
3631
vertexAttrib2fv(Index,{X,Y}) ->  vertexAttrib2f(Index,X,Y).
3001
3632
 
3002
3633
%% @spec (Index::integer(),X::integer(),Y::integer()) -> ok
3003
3634
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3635
-spec vertexAttrib2s(integer(),integer(),integer()) -> ok.
3004
3636
vertexAttrib2s(Index,X,Y) ->
3005
 
  wxe_util:cast(5500, <<Index:?GLuint,X:?GLshort,Y:?GLshort>>).
 
3637
  cast(5500, <<Index:?GLuint,X:?GLshort,Y:?GLshort>>).
3006
3638
 
3007
3639
%% @spec (Index,{X,Y}) -> ok
3008
3640
%% @equiv vertexAttrib2s(Index,X,Y)
 
3641
-spec vertexAttrib2sv(integer(),{integer(),integer()}) -> ok.
3009
3642
vertexAttrib2sv(Index,{X,Y}) ->  vertexAttrib2s(Index,X,Y).
3010
3643
 
3011
3644
%% @spec (Index::integer(),X::float(),Y::float(),Z::float()) -> ok
3012
3645
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3646
-spec vertexAttrib3d(integer(),float(),float(),float()) -> ok.
3013
3647
vertexAttrib3d(Index,X,Y,Z) ->
3014
 
  wxe_util:cast(5501, <<Index:?GLuint,0:32,X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
 
3648
  cast(5501, <<Index:?GLuint,0:32,X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
3015
3649
 
3016
3650
%% @spec (Index,{X,Y,Z}) -> ok
3017
3651
%% @equiv vertexAttrib3d(Index,X,Y,Z)
 
3652
-spec vertexAttrib3dv(integer(),{float(),float(),float()}) -> ok.
3018
3653
vertexAttrib3dv(Index,{X,Y,Z}) ->  vertexAttrib3d(Index,X,Y,Z).
3019
3654
 
3020
3655
%% @spec (Index::integer(),X::float(),Y::float(),Z::float()) -> ok
3021
3656
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3657
-spec vertexAttrib3f(integer(),float(),float(),float()) -> ok.
3022
3658
vertexAttrib3f(Index,X,Y,Z) ->
3023
 
  wxe_util:cast(5502, <<Index:?GLuint,X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
 
3659
  cast(5502, <<Index:?GLuint,X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
3024
3660
 
3025
3661
%% @spec (Index,{X,Y,Z}) -> ok
3026
3662
%% @equiv vertexAttrib3f(Index,X,Y,Z)
 
3663
-spec vertexAttrib3fv(integer(),{float(),float(),float()}) -> ok.
3027
3664
vertexAttrib3fv(Index,{X,Y,Z}) ->  vertexAttrib3f(Index,X,Y,Z).
3028
3665
 
3029
3666
%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer()) -> ok
3030
3667
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3668
-spec vertexAttrib3s(integer(),integer(),integer(),integer()) -> ok.
3031
3669
vertexAttrib3s(Index,X,Y,Z) ->
3032
 
  wxe_util:cast(5503, <<Index:?GLuint,X:?GLshort,Y:?GLshort,Z:?GLshort>>).
 
3670
  cast(5503, <<Index:?GLuint,X:?GLshort,Y:?GLshort,Z:?GLshort>>).
3033
3671
 
3034
3672
%% @spec (Index,{X,Y,Z}) -> ok
3035
3673
%% @equiv vertexAttrib3s(Index,X,Y,Z)
 
3674
-spec vertexAttrib3sv(integer(),{integer(),integer(),integer()}) -> ok.
3036
3675
vertexAttrib3sv(Index,{X,Y,Z}) ->  vertexAttrib3s(Index,X,Y,Z).
3037
3676
 
3038
 
%% @spec (Index::integer(),V::{integer()}) -> ok
 
3677
%% @spec (Index::integer(),V::{integer(),integer(),integer(),integer()}) -> ok
3039
3678
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3679
-spec vertexAttrib4Nbv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
3040
3680
vertexAttrib4Nbv(Index,{V1,V2,V3,V4}) ->
3041
 
  wxe_util:cast(5504, <<Index:?GLuint,V1:?GLbyte,V2:?GLbyte,V3:?GLbyte,V4:?GLbyte>>).
 
3681
  cast(5504, <<Index:?GLuint,V1:?GLbyte,V2:?GLbyte,V3:?GLbyte,V4:?GLbyte>>).
3042
3682
 
3043
 
%% @spec (Index::integer(),V::{integer()}) -> ok
 
3683
%% @spec (Index::integer(),V::{integer(),integer(),integer(),integer()}) -> ok
3044
3684
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3685
-spec vertexAttrib4Niv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
3045
3686
vertexAttrib4Niv(Index,{V1,V2,V3,V4}) ->
3046
 
  wxe_util:cast(5505, <<Index:?GLuint,V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint>>).
 
3687
  cast(5505, <<Index:?GLuint,V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint>>).
3047
3688
 
3048
 
%% @spec (Index::integer(),V::{integer()}) -> ok
 
3689
%% @spec (Index::integer(),V::{integer(),integer(),integer(),integer()}) -> ok
3049
3690
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3691
-spec vertexAttrib4Nsv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
3050
3692
vertexAttrib4Nsv(Index,{V1,V2,V3,V4}) ->
3051
 
  wxe_util:cast(5506, <<Index:?GLuint,V1:?GLshort,V2:?GLshort,V3:?GLshort,V4:?GLshort>>).
 
3693
  cast(5506, <<Index:?GLuint,V1:?GLshort,V2:?GLshort,V3:?GLshort,V4:?GLshort>>).
3052
3694
 
3053
3695
%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
3054
3696
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3697
-spec vertexAttrib4Nub(integer(),integer(),integer(),integer(),integer()) -> ok.
3055
3698
vertexAttrib4Nub(Index,X,Y,Z,W) ->
3056
 
  wxe_util:cast(5507, <<Index:?GLuint,X:?GLubyte,Y:?GLubyte,Z:?GLubyte,W:?GLubyte>>).
 
3699
  cast(5507, <<Index:?GLuint,X:?GLubyte,Y:?GLubyte,Z:?GLubyte,W:?GLubyte>>).
3057
3700
 
3058
3701
%% @spec (Index,{X,Y,Z,W}) -> ok
3059
3702
%% @equiv vertexAttrib4Nub(Index,X,Y,Z,W)
 
3703
-spec vertexAttrib4Nubv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
3060
3704
vertexAttrib4Nubv(Index,{X,Y,Z,W}) ->  vertexAttrib4Nub(Index,X,Y,Z,W).
3061
3705
 
3062
 
%% @spec (Index::integer(),V::{integer()}) -> ok
 
3706
%% @spec (Index::integer(),V::{integer(),integer(),integer(),integer()}) -> ok
3063
3707
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3708
-spec vertexAttrib4Nuiv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
3064
3709
vertexAttrib4Nuiv(Index,{V1,V2,V3,V4}) ->
3065
 
  wxe_util:cast(5508, <<Index:?GLuint,V1:?GLuint,V2:?GLuint,V3:?GLuint,V4:?GLuint>>).
 
3710
  cast(5508, <<Index:?GLuint,V1:?GLuint,V2:?GLuint,V3:?GLuint,V4:?GLuint>>).
3066
3711
 
3067
 
%% @spec (Index::integer(),V::{integer()}) -> ok
 
3712
%% @spec (Index::integer(),V::{integer(),integer(),integer(),integer()}) -> ok
3068
3713
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3714
-spec vertexAttrib4Nusv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
3069
3715
vertexAttrib4Nusv(Index,{V1,V2,V3,V4}) ->
3070
 
  wxe_util:cast(5509, <<Index:?GLuint,V1:?GLushort,V2:?GLushort,V3:?GLushort,V4:?GLushort>>).
 
3716
  cast(5509, <<Index:?GLuint,V1:?GLushort,V2:?GLushort,V3:?GLushort,V4:?GLushort>>).
3071
3717
 
3072
 
%% @spec (Index::integer(),V::{integer()}) -> ok
 
3718
%% @spec (Index::integer(),V::{integer(),integer(),integer(),integer()}) -> ok
3073
3719
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3720
-spec vertexAttrib4bv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
3074
3721
vertexAttrib4bv(Index,{V1,V2,V3,V4}) ->
3075
 
  wxe_util:cast(5510, <<Index:?GLuint,V1:?GLbyte,V2:?GLbyte,V3:?GLbyte,V4:?GLbyte>>).
 
3722
  cast(5510, <<Index:?GLuint,V1:?GLbyte,V2:?GLbyte,V3:?GLbyte,V4:?GLbyte>>).
3076
3723
 
3077
3724
%% @spec (Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok
3078
3725
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3726
-spec vertexAttrib4d(integer(),float(),float(),float(),float()) -> ok.
3079
3727
vertexAttrib4d(Index,X,Y,Z,W) ->
3080
 
  wxe_util:cast(5511, <<Index:?GLuint,0:32,X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
 
3728
  cast(5511, <<Index:?GLuint,0:32,X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
3081
3729
 
3082
3730
%% @spec (Index,{X,Y,Z,W}) -> ok
3083
3731
%% @equiv vertexAttrib4d(Index,X,Y,Z,W)
 
3732
-spec vertexAttrib4dv(integer(),{float(),float(),float(),float()}) -> ok.
3084
3733
vertexAttrib4dv(Index,{X,Y,Z,W}) ->  vertexAttrib4d(Index,X,Y,Z,W).
3085
3734
 
3086
3735
%% @spec (Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok
3087
3736
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3737
-spec vertexAttrib4f(integer(),float(),float(),float(),float()) -> ok.
3088
3738
vertexAttrib4f(Index,X,Y,Z,W) ->
3089
 
  wxe_util:cast(5512, <<Index:?GLuint,X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
 
3739
  cast(5512, <<Index:?GLuint,X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
3090
3740
 
3091
3741
%% @spec (Index,{X,Y,Z,W}) -> ok
3092
3742
%% @equiv vertexAttrib4f(Index,X,Y,Z,W)
 
3743
-spec vertexAttrib4fv(integer(),{float(),float(),float(),float()}) -> ok.
3093
3744
vertexAttrib4fv(Index,{X,Y,Z,W}) ->  vertexAttrib4f(Index,X,Y,Z,W).
3094
3745
 
3095
 
%% @spec (Index::integer(),V::{integer()}) -> ok
 
3746
%% @spec (Index::integer(),V::{integer(),integer(),integer(),integer()}) -> ok
3096
3747
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3748
-spec vertexAttrib4iv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
3097
3749
vertexAttrib4iv(Index,{V1,V2,V3,V4}) ->
3098
 
  wxe_util:cast(5513, <<Index:?GLuint,V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint>>).
 
3750
  cast(5513, <<Index:?GLuint,V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint>>).
3099
3751
 
3100
3752
%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
3101
3753
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3754
-spec vertexAttrib4s(integer(),integer(),integer(),integer(),integer()) -> ok.
3102
3755
vertexAttrib4s(Index,X,Y,Z,W) ->
3103
 
  wxe_util:cast(5514, <<Index:?GLuint,X:?GLshort,Y:?GLshort,Z:?GLshort,W:?GLshort>>).
 
3756
  cast(5514, <<Index:?GLuint,X:?GLshort,Y:?GLshort,Z:?GLshort,W:?GLshort>>).
3104
3757
 
3105
3758
%% @spec (Index,{X,Y,Z,W}) -> ok
3106
3759
%% @equiv vertexAttrib4s(Index,X,Y,Z,W)
 
3760
-spec vertexAttrib4sv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
3107
3761
vertexAttrib4sv(Index,{X,Y,Z,W}) ->  vertexAttrib4s(Index,X,Y,Z,W).
3108
3762
 
3109
 
%% @spec (Index::integer(),V::{integer()}) -> ok
 
3763
%% @spec (Index::integer(),V::{integer(),integer(),integer(),integer()}) -> ok
3110
3764
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3765
-spec vertexAttrib4ubv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
3111
3766
vertexAttrib4ubv(Index,{V1,V2,V3,V4}) ->
3112
 
  wxe_util:cast(5515, <<Index:?GLuint,V1:?GLubyte,V2:?GLubyte,V3:?GLubyte,V4:?GLubyte>>).
 
3767
  cast(5515, <<Index:?GLuint,V1:?GLubyte,V2:?GLubyte,V3:?GLubyte,V4:?GLubyte>>).
3113
3768
 
3114
 
%% @spec (Index::integer(),V::{integer()}) -> ok
 
3769
%% @spec (Index::integer(),V::{integer(),integer(),integer(),integer()}) -> ok
3115
3770
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3771
-spec vertexAttrib4uiv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
3116
3772
vertexAttrib4uiv(Index,{V1,V2,V3,V4}) ->
3117
 
  wxe_util:cast(5516, <<Index:?GLuint,V1:?GLuint,V2:?GLuint,V3:?GLuint,V4:?GLuint>>).
 
3773
  cast(5516, <<Index:?GLuint,V1:?GLuint,V2:?GLuint,V3:?GLuint,V4:?GLuint>>).
3118
3774
 
3119
 
%% @spec (Index::integer(),V::{integer()}) -> ok
 
3775
%% @spec (Index::integer(),V::{integer(),integer(),integer(),integer()}) -> ok
3120
3776
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
 
3777
-spec vertexAttrib4usv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
3121
3778
vertexAttrib4usv(Index,{V1,V2,V3,V4}) ->
3122
 
  wxe_util:cast(5517, <<Index:?GLuint,V1:?GLushort,V2:?GLushort,V3:?GLushort,V4:?GLushort>>).
 
3779
  cast(5517, <<Index:?GLuint,V1:?GLushort,V2:?GLushort,V3:?GLushort,V4:?GLushort>>).
3123
3780
 
3124
 
%% @spec (Index::integer(),Size::integer(),Type::enum(),Normalized::0|1,Stride::integer(),Pointer::offset()|binary()) -> ok
 
3781
%% @spec (Index::integer(),Size::integer(),Type::enum(),Normalized::0|1,Stride::integer(),Pointer::offset()|mem()) -> ok
3125
3782
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribPointer.xml">external</a> documentation.
 
3783
-spec vertexAttribPointer(integer(),integer(),enum(),0|1,integer(),offset()|mem()) -> ok.
3126
3784
vertexAttribPointer(Index,Size,Type,Normalized,Stride,Pointer) when  is_integer(Pointer) ->
3127
 
  wxe_util:cast(5518, <<Index:?GLuint,Size:?GLint,Type:?GLenum,Normalized:?GLboolean,0:24,Stride:?GLsizei,Pointer:?GLuint>>);
 
3785
  cast(5518, <<Index:?GLuint,Size:?GLint,Type:?GLenum,Normalized:?GLboolean,0:24,Stride:?GLsizei,Pointer:?GLuint>>);
3128
3786
vertexAttribPointer(Index,Size,Type,Normalized,Stride,Pointer) ->
3129
 
  wxe_util:send_bin(Pointer),
3130
 
  wxe_util:cast(5519, <<Index:?GLuint,Size:?GLint,Type:?GLenum,Normalized:?GLboolean,0:24,Stride:?GLsizei>>).
 
3787
  send_bin(Pointer),
 
3788
  cast(5519, <<Index:?GLuint,Size:?GLint,Type:?GLenum,Normalized:?GLboolean,0:24,Stride:?GLsizei>>).
3131
3789
 
3132
 
%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
 
3790
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float()}]) -> ok
3133
3791
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix2x.xml">external</a> documentation.
 
3792
-spec uniformMatrix2x3fv(integer(),0|1,[{float(),float(),float(),float(),float(),float()}]) -> ok.
3134
3793
uniformMatrix2x3fv(Location,Transpose,Value) ->
3135
 
  wxe_util:cast(5520, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
3794
  cast(5520, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
3136
3795
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat>> || {V1,V2,V3,V4,V5,V6} <- Value>>)/binary>>).
3137
3796
 
3138
 
%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
 
3797
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float()}]) -> ok
3139
3798
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix3x.xml">external</a> documentation.
 
3799
-spec uniformMatrix3x2fv(integer(),0|1,[{float(),float(),float(),float(),float(),float()}]) -> ok.
3140
3800
uniformMatrix3x2fv(Location,Transpose,Value) ->
3141
 
  wxe_util:cast(5521, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
3801
  cast(5521, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
3142
3802
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat>> || {V1,V2,V3,V4,V5,V6} <- Value>>)/binary>>).
3143
3803
 
3144
 
%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
 
3804
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
3145
3805
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix2x.xml">external</a> documentation.
 
3806
-spec uniformMatrix2x4fv(integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
3146
3807
uniformMatrix2x4fv(Location,Transpose,Value) ->
3147
 
  wxe_util:cast(5522, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
3808
  cast(5522, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
3148
3809
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8} <- Value>>)/binary>>).
3149
3810
 
3150
 
%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
 
3811
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
3151
3812
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix4x.xml">external</a> documentation.
 
3813
-spec uniformMatrix4x2fv(integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
3152
3814
uniformMatrix4x2fv(Location,Transpose,Value) ->
3153
 
  wxe_util:cast(5523, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
3815
  cast(5523, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
3154
3816
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8} <- Value>>)/binary>>).
3155
3817
 
3156
 
%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
 
3818
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
3157
3819
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix3x.xml">external</a> documentation.
 
3820
-spec uniformMatrix3x4fv(integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
3158
3821
uniformMatrix3x4fv(Location,Transpose,Value) ->
3159
 
  wxe_util:cast(5524, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
3822
  cast(5524, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
3160
3823
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat,V9:?GLfloat,V10:?GLfloat,V11:?GLfloat,V12:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12} <- Value>>)/binary>>).
3161
3824
 
3162
 
%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
 
3825
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
3163
3826
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix4x.xml">external</a> documentation.
 
3827
-spec uniformMatrix4x3fv(integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
3164
3828
uniformMatrix4x3fv(Location,Transpose,Value) ->
3165
 
  wxe_util:cast(5525, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
3829
  cast(5525, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
3166
3830
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat,V9:?GLfloat,V10:?GLfloat,V11:?GLfloat,V12:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12} <- Value>>)/binary>>).
3167
3831
 
3168
3832
%% @spec (Index::integer(),R::0|1,G::0|1,B::0|1,A::0|1) -> ok
3169
3833
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorMaski.xml">external</a> documentation.
 
3834
-spec colorMaski(integer(),0|1,0|1,0|1,0|1) -> ok.
3170
3835
colorMaski(Index,R,G,B,A) ->
3171
 
  wxe_util:cast(5526, <<Index:?GLuint,R:?GLboolean,G:?GLboolean,B:?GLboolean,A:?GLboolean>>).
 
3836
  cast(5526, <<Index:?GLuint,R:?GLboolean,G:?GLboolean,B:?GLboolean,A:?GLboolean>>).
3172
3837
 
3173
3838
%% @spec (Target::enum(),Index::integer()) -> [0|1]
3174
3839
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetBooleani_v.xml">external</a> documentation.
 
3840
-spec getBooleani_v(enum(),integer()) -> [0|1].
3175
3841
getBooleani_v(Target,Index) ->
3176
 
  wxe_util:call(5527, <<Target:?GLenum,Index:?GLuint>>).
 
3842
  call(5527, <<Target:?GLenum,Index:?GLuint>>).
3177
3843
 
3178
3844
%% @spec (Target::enum(),Index::integer()) -> [integer()]
3179
3845
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetIntegeri_v.xml">external</a> documentation.
 
3846
-spec getIntegeri_v(enum(),integer()) -> [integer()].
3180
3847
getIntegeri_v(Target,Index) ->
3181
 
  wxe_util:call(5528, <<Target:?GLenum,Index:?GLuint>>).
 
3848
  call(5528, <<Target:?GLenum,Index:?GLuint>>).
3182
3849
 
3183
3850
%% @spec (Target::enum(),Index::integer()) -> ok
3184
3851
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEnable.xml">external</a> documentation.
 
3852
-spec enablei(enum(),integer()) -> ok.
3185
3853
enablei(Target,Index) ->
3186
 
  wxe_util:cast(5529, <<Target:?GLenum,Index:?GLuint>>).
 
3854
  cast(5529, <<Target:?GLenum,Index:?GLuint>>).
3187
3855
 
3188
3856
%% @spec (Target::enum(),Index::integer()) -> ok
3189
3857
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDisable.xml">external</a> documentation.
 
3858
-spec disablei(enum(),integer()) -> ok.
3190
3859
disablei(Target,Index) ->
3191
 
  wxe_util:cast(5530, <<Target:?GLenum,Index:?GLuint>>).
 
3860
  cast(5530, <<Target:?GLenum,Index:?GLuint>>).
3192
3861
 
3193
3862
%% @spec (Target::enum(),Index::integer()) -> 0|1
3194
3863
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsEnabledi.xml">external</a> documentation.
 
3864
-spec isEnabledi(enum(),integer()) -> 0|1.
3195
3865
isEnabledi(Target,Index) ->
3196
 
  wxe_util:call(5531, <<Target:?GLenum,Index:?GLuint>>).
 
3866
  call(5531, <<Target:?GLenum,Index:?GLuint>>).
3197
3867
 
3198
3868
%% @spec (PrimitiveMode::enum()) -> ok
3199
3869
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBeginTransformFeedback.xml">external</a> documentation.
 
3870
-spec beginTransformFeedback(enum()) -> ok.
3200
3871
beginTransformFeedback(PrimitiveMode) ->
3201
 
  wxe_util:cast(5532, <<PrimitiveMode:?GLenum>>).
 
3872
  cast(5532, <<PrimitiveMode:?GLenum>>).
3202
3873
 
3203
3874
%% @spec () -> ok
3204
3875
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEndTransformFeedback.xml">external</a> documentation.
 
3876
-spec endTransformFeedback() -> ok.
3205
3877
endTransformFeedback() ->
3206
 
  wxe_util:cast(5533, <<>>).
 
3878
  cast(5533, <<>>).
3207
3879
 
3208
3880
%% @spec (Target::enum(),Index::integer(),Buffer::integer(),Offset::integer(),Size::integer()) -> ok
3209
3881
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindBufferRange.xml">external</a> documentation.
 
3882
-spec bindBufferRange(enum(),integer(),integer(),integer(),integer()) -> ok.
3210
3883
bindBufferRange(Target,Index,Buffer,Offset,Size) ->
3211
 
  wxe_util:cast(5534, <<Target:?GLenum,Index:?GLuint,Buffer:?GLuint,0:32,Offset:?GLintptr,Size:?GLsizeiptr>>).
 
3884
  cast(5534, <<Target:?GLenum,Index:?GLuint,Buffer:?GLuint,0:32,Offset:?GLintptr,Size:?GLsizeiptr>>).
3212
3885
 
3213
3886
%% @spec (Target::enum(),Index::integer(),Buffer::integer()) -> ok
3214
3887
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindBufferBase.xml">external</a> documentation.
 
3888
-spec bindBufferBase(enum(),integer(),integer()) -> ok.
3215
3889
bindBufferBase(Target,Index,Buffer) ->
3216
 
  wxe_util:cast(5535, <<Target:?GLenum,Index:?GLuint,Buffer:?GLuint>>).
 
3890
  cast(5535, <<Target:?GLenum,Index:?GLuint,Buffer:?GLuint>>).
3217
3891
 
3218
3892
%% @spec (Program::integer(),Varyings::[string()],BufferMode::enum()) -> ok
3219
3893
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTransformFeedbackVaryings.xml">external</a> documentation.
 
3894
-spec transformFeedbackVaryings(integer(),[string()],enum()) -> ok.
3220
3895
transformFeedbackVaryings(Program,Varyings,BufferMode) ->
3221
3896
 VaryingsTemp = list_to_binary([[Str|[0]] || Str <- Varyings ]),
3222
 
  wxe_util:cast(5536, <<Program:?GLuint,(length(Varyings)):?GLuint,(size(VaryingsTemp)):?GLuint,(VaryingsTemp)/binary,0:((8-((size(VaryingsTemp)+0) rem 8)) rem 8),BufferMode:?GLenum>>).
 
3897
  cast(5536, <<Program:?GLuint,(length(Varyings)):?GLuint,(size(VaryingsTemp)):?GLuint,(VaryingsTemp)/binary,0:((8-((size(VaryingsTemp)+0) rem 8)) rem 8),BufferMode:?GLenum>>).
3223
3898
 
3224
3899
%% @spec (Program::integer(),Index::integer(),BufSize::integer()) -> {Size::integer(),Type::enum(),Name::string()}
3225
3900
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTransformFeedbackVarying.xml">external</a> documentation.
 
3901
-spec getTransformFeedbackVarying(integer(),integer(),integer()) -> {integer(),enum(),string()}.
3226
3902
getTransformFeedbackVarying(Program,Index,BufSize) ->
3227
 
  wxe_util:call(5537, <<Program:?GLuint,Index:?GLuint,BufSize:?GLsizei>>).
 
3903
  call(5537, <<Program:?GLuint,Index:?GLuint,BufSize:?GLsizei>>).
3228
3904
 
3229
3905
%% @spec (Target::enum(),Clamp::enum()) -> ok
3230
3906
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClampColor.xml">external</a> documentation.
 
3907
-spec clampColor(enum(),enum()) -> ok.
3231
3908
clampColor(Target,Clamp) ->
3232
 
  wxe_util:cast(5538, <<Target:?GLenum,Clamp:?GLenum>>).
 
3909
  cast(5538, <<Target:?GLenum,Clamp:?GLenum>>).
3233
3910
 
3234
3911
%% @spec (Id::integer(),Mode::enum()) -> ok
3235
3912
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBeginConditionalRender.xml">external</a> documentation.
 
3913
-spec beginConditionalRender(integer(),enum()) -> ok.
3236
3914
beginConditionalRender(Id,Mode) ->
3237
 
  wxe_util:cast(5539, <<Id:?GLuint,Mode:?GLenum>>).
 
3915
  cast(5539, <<Id:?GLuint,Mode:?GLenum>>).
3238
3916
 
3239
3917
%% @spec () -> ok
3240
3918
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEndConditionalRender.xml">external</a> documentation.
 
3919
-spec endConditionalRender() -> ok.
3241
3920
endConditionalRender() ->
3242
 
  wxe_util:cast(5540, <<>>).
 
3921
  cast(5540, <<>>).
3243
3922
 
3244
 
%% @spec (Index::integer(),Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
 
3923
%% @spec (Index::integer(),Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|mem()) -> ok
3245
3924
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribIPointer.xml">external</a> documentation.
 
3925
-spec vertexAttribIPointer(integer(),integer(),enum(),integer(),offset()|mem()) -> ok.
3246
3926
vertexAttribIPointer(Index,Size,Type,Stride,Pointer) when  is_integer(Pointer) ->
3247
 
  wxe_util:cast(5541, <<Index:?GLuint,Size:?GLint,Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
 
3927
  cast(5541, <<Index:?GLuint,Size:?GLint,Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
3248
3928
vertexAttribIPointer(Index,Size,Type,Stride,Pointer) ->
3249
 
  wxe_util:send_bin(Pointer),
3250
 
  wxe_util:cast(5542, <<Index:?GLuint,Size:?GLint,Type:?GLenum,Stride:?GLsizei>>).
 
3929
  send_bin(Pointer),
 
3930
  cast(5542, <<Index:?GLuint,Size:?GLint,Type:?GLenum,Stride:?GLsizei>>).
3251
3931
 
3252
 
%% @spec (Index::integer(),Pname::enum()) -> {integer()}
 
3932
%% @spec (Index::integer(),Pname::enum()) -> {integer(),integer(),integer(),integer()}
3253
3933
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetVertexAttribI.xml">external</a> documentation.
 
3934
-spec getVertexAttribIiv(integer(),enum()) -> {integer(),integer(),integer(),integer()}.
3254
3935
getVertexAttribIiv(Index,Pname) ->
3255
 
  wxe_util:call(5543, <<Index:?GLuint,Pname:?GLenum>>).
 
3936
  call(5543, <<Index:?GLuint,Pname:?GLenum>>).
3256
3937
 
3257
 
%% @spec (Index::integer(),Pname::enum()) -> {integer()}
 
3938
%% @spec (Index::integer(),Pname::enum()) -> {integer(),integer(),integer(),integer()}
3258
3939
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetVertexAttribI.xml">external</a> documentation.
 
3940
-spec getVertexAttribIuiv(integer(),enum()) -> {integer(),integer(),integer(),integer()}.
3259
3941
getVertexAttribIuiv(Index,Pname) ->
3260
 
  wxe_util:call(5544, <<Index:?GLuint,Pname:?GLenum>>).
3261
 
 
3262
 
%% @spec (Program::integer(),Location::integer()) -> {integer()}
 
3942
  call(5544, <<Index:?GLuint,Pname:?GLenum>>).
 
3943
 
 
3944
%% @spec (Index::integer(),X::integer()) -> ok
 
3945
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
 
3946
-spec vertexAttribI1i(integer(),integer()) -> ok.
 
3947
vertexAttribI1i(Index,X) ->
 
3948
  cast(5545, <<Index:?GLuint,X:?GLint>>).
 
3949
 
 
3950
%% @spec (Index::integer(),X::integer(),Y::integer()) -> ok
 
3951
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
 
3952
-spec vertexAttribI2i(integer(),integer(),integer()) -> ok.
 
3953
vertexAttribI2i(Index,X,Y) ->
 
3954
  cast(5546, <<Index:?GLuint,X:?GLint,Y:?GLint>>).
 
3955
 
 
3956
%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer()) -> ok
 
3957
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
 
3958
-spec vertexAttribI3i(integer(),integer(),integer(),integer()) -> ok.
 
3959
vertexAttribI3i(Index,X,Y,Z) ->
 
3960
  cast(5547, <<Index:?GLuint,X:?GLint,Y:?GLint,Z:?GLint>>).
 
3961
 
 
3962
%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
 
3963
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
 
3964
-spec vertexAttribI4i(integer(),integer(),integer(),integer(),integer()) -> ok.
 
3965
vertexAttribI4i(Index,X,Y,Z,W) ->
 
3966
  cast(5548, <<Index:?GLuint,X:?GLint,Y:?GLint,Z:?GLint,W:?GLint>>).
 
3967
 
 
3968
%% @spec (Index::integer(),X::integer()) -> ok
 
3969
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
 
3970
-spec vertexAttribI1ui(integer(),integer()) -> ok.
 
3971
vertexAttribI1ui(Index,X) ->
 
3972
  cast(5549, <<Index:?GLuint,X:?GLuint>>).
 
3973
 
 
3974
%% @spec (Index::integer(),X::integer(),Y::integer()) -> ok
 
3975
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
 
3976
-spec vertexAttribI2ui(integer(),integer(),integer()) -> ok.
 
3977
vertexAttribI2ui(Index,X,Y) ->
 
3978
  cast(5550, <<Index:?GLuint,X:?GLuint,Y:?GLuint>>).
 
3979
 
 
3980
%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer()) -> ok
 
3981
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
 
3982
-spec vertexAttribI3ui(integer(),integer(),integer(),integer()) -> ok.
 
3983
vertexAttribI3ui(Index,X,Y,Z) ->
 
3984
  cast(5551, <<Index:?GLuint,X:?GLuint,Y:?GLuint,Z:?GLuint>>).
 
3985
 
 
3986
%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
 
3987
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
 
3988
-spec vertexAttribI4ui(integer(),integer(),integer(),integer(),integer()) -> ok.
 
3989
vertexAttribI4ui(Index,X,Y,Z,W) ->
 
3990
  cast(5552, <<Index:?GLuint,X:?GLuint,Y:?GLuint,Z:?GLuint,W:?GLuint>>).
 
3991
 
 
3992
%% @spec (Index,{X}) -> ok
 
3993
%% @equiv vertexAttribI1i(Index,X)
 
3994
-spec vertexAttribI1iv(integer(),{integer()}) -> ok.
 
3995
vertexAttribI1iv(Index,{X}) ->  vertexAttribI1i(Index,X).
 
3996
 
 
3997
%% @spec (Index,{X,Y}) -> ok
 
3998
%% @equiv vertexAttribI2i(Index,X,Y)
 
3999
-spec vertexAttribI2iv(integer(),{integer(),integer()}) -> ok.
 
4000
vertexAttribI2iv(Index,{X,Y}) ->  vertexAttribI2i(Index,X,Y).
 
4001
 
 
4002
%% @spec (Index,{X,Y,Z}) -> ok
 
4003
%% @equiv vertexAttribI3i(Index,X,Y,Z)
 
4004
-spec vertexAttribI3iv(integer(),{integer(),integer(),integer()}) -> ok.
 
4005
vertexAttribI3iv(Index,{X,Y,Z}) ->  vertexAttribI3i(Index,X,Y,Z).
 
4006
 
 
4007
%% @spec (Index,{X,Y,Z,W}) -> ok
 
4008
%% @equiv vertexAttribI4i(Index,X,Y,Z,W)
 
4009
-spec vertexAttribI4iv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
 
4010
vertexAttribI4iv(Index,{X,Y,Z,W}) ->  vertexAttribI4i(Index,X,Y,Z,W).
 
4011
 
 
4012
%% @spec (Index,{X}) -> ok
 
4013
%% @equiv vertexAttribI1ui(Index,X)
 
4014
-spec vertexAttribI1uiv(integer(),{integer()}) -> ok.
 
4015
vertexAttribI1uiv(Index,{X}) ->  vertexAttribI1ui(Index,X).
 
4016
 
 
4017
%% @spec (Index,{X,Y}) -> ok
 
4018
%% @equiv vertexAttribI2ui(Index,X,Y)
 
4019
-spec vertexAttribI2uiv(integer(),{integer(),integer()}) -> ok.
 
4020
vertexAttribI2uiv(Index,{X,Y}) ->  vertexAttribI2ui(Index,X,Y).
 
4021
 
 
4022
%% @spec (Index,{X,Y,Z}) -> ok
 
4023
%% @equiv vertexAttribI3ui(Index,X,Y,Z)
 
4024
-spec vertexAttribI3uiv(integer(),{integer(),integer(),integer()}) -> ok.
 
4025
vertexAttribI3uiv(Index,{X,Y,Z}) ->  vertexAttribI3ui(Index,X,Y,Z).
 
4026
 
 
4027
%% @spec (Index,{X,Y,Z,W}) -> ok
 
4028
%% @equiv vertexAttribI4ui(Index,X,Y,Z,W)
 
4029
-spec vertexAttribI4uiv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
 
4030
vertexAttribI4uiv(Index,{X,Y,Z,W}) ->  vertexAttribI4ui(Index,X,Y,Z,W).
 
4031
 
 
4032
%% @spec (Index::integer(),V::{integer(),integer(),integer(),integer()}) -> ok
 
4033
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
 
4034
-spec vertexAttribI4bv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
 
4035
vertexAttribI4bv(Index,{V1,V2,V3,V4}) ->
 
4036
  cast(5553, <<Index:?GLuint,V1:?GLbyte,V2:?GLbyte,V3:?GLbyte,V4:?GLbyte>>).
 
4037
 
 
4038
%% @spec (Index::integer(),V::{integer(),integer(),integer(),integer()}) -> ok
 
4039
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
 
4040
-spec vertexAttribI4sv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
 
4041
vertexAttribI4sv(Index,{V1,V2,V3,V4}) ->
 
4042
  cast(5554, <<Index:?GLuint,V1:?GLshort,V2:?GLshort,V3:?GLshort,V4:?GLshort>>).
 
4043
 
 
4044
%% @spec (Index::integer(),V::{integer(),integer(),integer(),integer()}) -> ok
 
4045
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
 
4046
-spec vertexAttribI4ubv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
 
4047
vertexAttribI4ubv(Index,{V1,V2,V3,V4}) ->
 
4048
  cast(5555, <<Index:?GLuint,V1:?GLubyte,V2:?GLubyte,V3:?GLubyte,V4:?GLubyte>>).
 
4049
 
 
4050
%% @spec (Index::integer(),V::{integer(),integer(),integer(),integer()}) -> ok
 
4051
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
 
4052
-spec vertexAttribI4usv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
 
4053
vertexAttribI4usv(Index,{V1,V2,V3,V4}) ->
 
4054
  cast(5556, <<Index:?GLuint,V1:?GLushort,V2:?GLushort,V3:?GLushort,V4:?GLushort>>).
 
4055
 
 
4056
%% @spec (Program::integer(),Location::integer()) -> {integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer()}
3263
4057
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniform.xml">external</a> documentation.
 
4058
-spec getUniformuiv(integer(),integer()) -> {integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer()}.
3264
4059
getUniformuiv(Program,Location) ->
3265
 
  wxe_util:call(5545, <<Program:?GLuint,Location:?GLint>>).
 
4060
  call(5557, <<Program:?GLuint,Location:?GLint>>).
3266
4061
 
3267
4062
%% @spec (Program::integer(),Color::integer(),Name::string()) -> ok
3268
4063
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindFragDataLocation.xml">external</a> documentation.
 
4064
-spec bindFragDataLocation(integer(),integer(),string()) -> ok.
3269
4065
bindFragDataLocation(Program,Color,Name) ->
3270
 
  wxe_util:cast(5546, <<Program:?GLuint,Color:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8)>>).
 
4066
  cast(5558, <<Program:?GLuint,Color:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8)>>).
3271
4067
 
3272
4068
%% @spec (Program::integer(),Name::string()) -> integer()
3273
4069
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetFragDataLocation.xml">external</a> documentation.
 
4070
-spec getFragDataLocation(integer(),string()) -> integer().
3274
4071
getFragDataLocation(Program,Name) ->
3275
 
  wxe_util:call(5547, <<Program:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 5) rem 8)) rem 8)>>).
 
4072
  call(5559, <<Program:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 5) rem 8)) rem 8)>>).
3276
4073
 
3277
4074
%% @spec (Location::integer(),V0::integer()) -> ok
3278
4075
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
4076
-spec uniform1ui(integer(),integer()) -> ok.
3279
4077
uniform1ui(Location,V0) ->
3280
 
  wxe_util:cast(5548, <<Location:?GLint,V0:?GLuint>>).
 
4078
  cast(5560, <<Location:?GLint,V0:?GLuint>>).
3281
4079
 
3282
4080
%% @spec (Location::integer(),V0::integer(),V1::integer()) -> ok
3283
4081
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
4082
-spec uniform2ui(integer(),integer(),integer()) -> ok.
3284
4083
uniform2ui(Location,V0,V1) ->
3285
 
  wxe_util:cast(5549, <<Location:?GLint,V0:?GLuint,V1:?GLuint>>).
 
4084
  cast(5561, <<Location:?GLint,V0:?GLuint,V1:?GLuint>>).
3286
4085
 
3287
4086
%% @spec (Location::integer(),V0::integer(),V1::integer(),V2::integer()) -> ok
3288
4087
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
4088
-spec uniform3ui(integer(),integer(),integer(),integer()) -> ok.
3289
4089
uniform3ui(Location,V0,V1,V2) ->
3290
 
  wxe_util:cast(5550, <<Location:?GLint,V0:?GLuint,V1:?GLuint,V2:?GLuint>>).
 
4090
  cast(5562, <<Location:?GLint,V0:?GLuint,V1:?GLuint,V2:?GLuint>>).
3291
4091
 
3292
4092
%% @spec (Location::integer(),V0::integer(),V1::integer(),V2::integer(),V3::integer()) -> ok
3293
4093
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
4094
-spec uniform4ui(integer(),integer(),integer(),integer(),integer()) -> ok.
3294
4095
uniform4ui(Location,V0,V1,V2,V3) ->
3295
 
  wxe_util:cast(5551, <<Location:?GLint,V0:?GLuint,V1:?GLuint,V2:?GLuint,V3:?GLuint>>).
 
4096
  cast(5563, <<Location:?GLint,V0:?GLuint,V1:?GLuint,V2:?GLuint,V3:?GLuint>>).
3296
4097
 
3297
4098
%% @spec (Location::integer(),Value::[integer()]) -> ok
3298
4099
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
4100
-spec uniform1uiv(integer(),[integer()]) -> ok.
3299
4101
uniform1uiv(Location,Value) ->
3300
 
  wxe_util:cast(5552, <<Location:?GLint,(length(Value)):?GLuint,
 
4102
  cast(5564, <<Location:?GLint,(length(Value)):?GLuint,
3301
4103
        (<< <<C:?GLuint>> || C <- Value>>)/binary,0:(((length(Value)) rem 2)*32)>>).
3302
4104
 
3303
 
%% @spec (Location::integer(),Value::[{integer()}]) -> ok
 
4105
%% @spec (Location::integer(),Value::[{integer(),integer()}]) -> ok
3304
4106
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
4107
-spec uniform2uiv(integer(),[{integer(),integer()}]) -> ok.
3305
4108
uniform2uiv(Location,Value) ->
3306
 
  wxe_util:cast(5553, <<Location:?GLint,(length(Value)):?GLuint,
 
4109
  cast(5565, <<Location:?GLint,(length(Value)):?GLuint,
3307
4110
        (<< <<V1:?GLuint,V2:?GLuint>> || {V1,V2} <- Value>>)/binary>>).
3308
4111
 
3309
 
%% @spec (Location::integer(),Value::[{integer()}]) -> ok
 
4112
%% @spec (Location::integer(),Value::[{integer(),integer(),integer()}]) -> ok
3310
4113
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
4114
-spec uniform3uiv(integer(),[{integer(),integer(),integer()}]) -> ok.
3311
4115
uniform3uiv(Location,Value) ->
3312
 
  wxe_util:cast(5554, <<Location:?GLint,(length(Value)):?GLuint,
 
4116
  cast(5566, <<Location:?GLint,(length(Value)):?GLuint,
3313
4117
        (<< <<V1:?GLuint,V2:?GLuint,V3:?GLuint>> || {V1,V2,V3} <- Value>>)/binary>>).
3314
4118
 
3315
 
%% @spec (Location::integer(),Value::[{integer()}]) -> ok
 
4119
%% @spec (Location::integer(),Value::[{integer(),integer(),integer(),integer()}]) -> ok
3316
4120
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
4121
-spec uniform4uiv(integer(),[{integer(),integer(),integer(),integer()}]) -> ok.
3317
4122
uniform4uiv(Location,Value) ->
3318
 
  wxe_util:cast(5555, <<Location:?GLint,(length(Value)):?GLuint,
 
4123
  cast(5567, <<Location:?GLint,(length(Value)):?GLuint,
3319
4124
        (<< <<V1:?GLuint,V2:?GLuint,V3:?GLuint,V4:?GLuint>> || {V1,V2,V3,V4} <- Value>>)/binary>>).
3320
4125
 
3321
4126
%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok
3322
4127
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexParameterI.xml">external</a> documentation.
 
4128
-spec texParameterIiv(enum(),enum(),{integer()}) -> ok.
3323
4129
texParameterIiv(Target,Pname,Params) ->
3324
 
  wxe_util:cast(5556, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
 
4130
  cast(5568, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
3325
4131
      (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
3326
4132
 
3327
4133
%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok
3328
4134
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexParameterI.xml">external</a> documentation.
 
4135
-spec texParameterIuiv(enum(),enum(),{integer()}) -> ok.
3329
4136
texParameterIuiv(Target,Pname,Params) ->
3330
 
  wxe_util:cast(5557, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
 
4137
  cast(5569, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
3331
4138
      (<< <<C:?GLuint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
3332
4139
 
3333
 
%% @spec (Target::enum(),Pname::enum()) -> {integer()}
 
4140
%% @spec (Target::enum(),Pname::enum()) -> {integer(),integer(),integer(),integer()}
3334
4141
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexParameterI.xml">external</a> documentation.
 
4142
-spec getTexParameterIiv(enum(),enum()) -> {integer(),integer(),integer(),integer()}.
3335
4143
getTexParameterIiv(Target,Pname) ->
3336
 
  wxe_util:call(5558, <<Target:?GLenum,Pname:?GLenum>>).
 
4144
  call(5570, <<Target:?GLenum,Pname:?GLenum>>).
3337
4145
 
3338
 
%% @spec (Target::enum(),Pname::enum()) -> {integer()}
 
4146
%% @spec (Target::enum(),Pname::enum()) -> {integer(),integer(),integer(),integer()}
3339
4147
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexParameterI.xml">external</a> documentation.
 
4148
-spec getTexParameterIuiv(enum(),enum()) -> {integer(),integer(),integer(),integer()}.
3340
4149
getTexParameterIuiv(Target,Pname) ->
3341
 
  wxe_util:call(5559, <<Target:?GLenum,Pname:?GLenum>>).
 
4150
  call(5571, <<Target:?GLenum,Pname:?GLenum>>).
3342
4151
 
3343
4152
%% @spec (Buffer::enum(),Drawbuffer::integer(),Value::{integer()}) -> ok
3344
4153
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearBuffer.xml">external</a> documentation.
 
4154
-spec clearBufferiv(enum(),integer(),{integer()}) -> ok.
3345
4155
clearBufferiv(Buffer,Drawbuffer,Value) ->
3346
 
  wxe_util:cast(5560, <<Buffer:?GLenum,Drawbuffer:?GLint,(size(Value)):?GLuint,
 
4156
  cast(5572, <<Buffer:?GLenum,Drawbuffer:?GLint,(size(Value)):?GLuint,
3347
4157
      (<< <<C:?GLint>> ||C <- tuple_to_list(Value)>>)/binary,0:(((1+size(Value)) rem 2)*32)>>).
3348
4158
 
3349
4159
%% @spec (Buffer::enum(),Drawbuffer::integer(),Value::{integer()}) -> ok
3350
4160
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearBuffer.xml">external</a> documentation.
 
4161
-spec clearBufferuiv(enum(),integer(),{integer()}) -> ok.
3351
4162
clearBufferuiv(Buffer,Drawbuffer,Value) ->
3352
 
  wxe_util:cast(5561, <<Buffer:?GLenum,Drawbuffer:?GLint,(size(Value)):?GLuint,
 
4163
  cast(5573, <<Buffer:?GLenum,Drawbuffer:?GLint,(size(Value)):?GLuint,
3353
4164
      (<< <<C:?GLuint>> ||C <- tuple_to_list(Value)>>)/binary,0:(((1+size(Value)) rem 2)*32)>>).
3354
4165
 
3355
4166
%% @spec (Buffer::enum(),Drawbuffer::integer(),Value::{float()}) -> ok
3356
4167
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearBuffer.xml">external</a> documentation.
 
4168
-spec clearBufferfv(enum(),integer(),{float()}) -> ok.
3357
4169
clearBufferfv(Buffer,Drawbuffer,Value) ->
3358
 
  wxe_util:cast(5562, <<Buffer:?GLenum,Drawbuffer:?GLint,(size(Value)):?GLuint,
 
4170
  cast(5574, <<Buffer:?GLenum,Drawbuffer:?GLint,(size(Value)):?GLuint,
3359
4171
      (<< <<C:?GLfloat>> ||C <- tuple_to_list(Value)>>)/binary,0:(((1+size(Value)) rem 2)*32)>>).
3360
4172
 
3361
4173
%% @spec (Buffer::enum(),Drawbuffer::integer(),Depth::float(),Stencil::integer()) -> ok
3362
4174
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearBufferfi.xml">external</a> documentation.
 
4175
-spec clearBufferfi(enum(),integer(),float(),integer()) -> ok.
3363
4176
clearBufferfi(Buffer,Drawbuffer,Depth,Stencil) ->
3364
 
  wxe_util:cast(5563, <<Buffer:?GLenum,Drawbuffer:?GLint,Depth:?GLfloat,Stencil:?GLint>>).
 
4177
  cast(5575, <<Buffer:?GLenum,Drawbuffer:?GLint,Depth:?GLfloat,Stencil:?GLint>>).
3365
4178
 
3366
4179
%% @spec (Name::enum(),Index::integer()) -> string()
3367
4180
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetString.xml">external</a> documentation.
 
4181
-spec getStringi(enum(),integer()) -> string().
3368
4182
getStringi(Name,Index) ->
3369
 
  wxe_util:call(5564, <<Name:?GLenum,Index:?GLuint>>).
3370
 
 
3371
 
%% @spec (Index::integer(),X::integer()) -> ok
3372
 
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
3373
 
vertexAttribI1i(Index,X) ->
3374
 
  wxe_util:cast(5565, <<Index:?GLuint,X:?GLint>>).
3375
 
 
3376
 
%% @spec (Index::integer(),X::integer(),Y::integer()) -> ok
3377
 
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
3378
 
vertexAttribI2i(Index,X,Y) ->
3379
 
  wxe_util:cast(5566, <<Index:?GLuint,X:?GLint,Y:?GLint>>).
3380
 
 
3381
 
%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer()) -> ok
3382
 
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
3383
 
vertexAttribI3i(Index,X,Y,Z) ->
3384
 
  wxe_util:cast(5567, <<Index:?GLuint,X:?GLint,Y:?GLint,Z:?GLint>>).
3385
 
 
3386
 
%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
3387
 
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
3388
 
vertexAttribI4i(Index,X,Y,Z,W) ->
3389
 
  wxe_util:cast(5568, <<Index:?GLuint,X:?GLint,Y:?GLint,Z:?GLint,W:?GLint>>).
3390
 
 
3391
 
%% @spec (Index::integer(),X::integer()) -> ok
3392
 
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
3393
 
vertexAttribI1ui(Index,X) ->
3394
 
  wxe_util:cast(5569, <<Index:?GLuint,X:?GLuint>>).
3395
 
 
3396
 
%% @spec (Index::integer(),X::integer(),Y::integer()) -> ok
3397
 
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
3398
 
vertexAttribI2ui(Index,X,Y) ->
3399
 
  wxe_util:cast(5570, <<Index:?GLuint,X:?GLuint,Y:?GLuint>>).
3400
 
 
3401
 
%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer()) -> ok
3402
 
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
3403
 
vertexAttribI3ui(Index,X,Y,Z) ->
3404
 
  wxe_util:cast(5571, <<Index:?GLuint,X:?GLuint,Y:?GLuint,Z:?GLuint>>).
3405
 
 
3406
 
%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
3407
 
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
3408
 
vertexAttribI4ui(Index,X,Y,Z,W) ->
3409
 
  wxe_util:cast(5572, <<Index:?GLuint,X:?GLuint,Y:?GLuint,Z:?GLuint,W:?GLuint>>).
3410
 
 
3411
 
%% @spec (Index,{X}) -> ok
3412
 
%% @equiv vertexAttribI1i(Index,X)
3413
 
vertexAttribI1iv(Index,{X}) ->  vertexAttribI1i(Index,X).
3414
 
 
3415
 
%% @spec (Index,{X,Y}) -> ok
3416
 
%% @equiv vertexAttribI2i(Index,X,Y)
3417
 
vertexAttribI2iv(Index,{X,Y}) ->  vertexAttribI2i(Index,X,Y).
3418
 
 
3419
 
%% @spec (Index,{X,Y,Z}) -> ok
3420
 
%% @equiv vertexAttribI3i(Index,X,Y,Z)
3421
 
vertexAttribI3iv(Index,{X,Y,Z}) ->  vertexAttribI3i(Index,X,Y,Z).
3422
 
 
3423
 
%% @spec (Index,{X,Y,Z,W}) -> ok
3424
 
%% @equiv vertexAttribI4i(Index,X,Y,Z,W)
3425
 
vertexAttribI4iv(Index,{X,Y,Z,W}) ->  vertexAttribI4i(Index,X,Y,Z,W).
3426
 
 
3427
 
%% @spec (Index,{X}) -> ok
3428
 
%% @equiv vertexAttribI1ui(Index,X)
3429
 
vertexAttribI1uiv(Index,{X}) ->  vertexAttribI1ui(Index,X).
3430
 
 
3431
 
%% @spec (Index,{X,Y}) -> ok
3432
 
%% @equiv vertexAttribI2ui(Index,X,Y)
3433
 
vertexAttribI2uiv(Index,{X,Y}) ->  vertexAttribI2ui(Index,X,Y).
3434
 
 
3435
 
%% @spec (Index,{X,Y,Z}) -> ok
3436
 
%% @equiv vertexAttribI3ui(Index,X,Y,Z)
3437
 
vertexAttribI3uiv(Index,{X,Y,Z}) ->  vertexAttribI3ui(Index,X,Y,Z).
3438
 
 
3439
 
%% @spec (Index,{X,Y,Z,W}) -> ok
3440
 
%% @equiv vertexAttribI4ui(Index,X,Y,Z,W)
3441
 
vertexAttribI4uiv(Index,{X,Y,Z,W}) ->  vertexAttribI4ui(Index,X,Y,Z,W).
3442
 
 
3443
 
%% @spec (Index::integer(),V::{integer()}) -> ok
3444
 
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
3445
 
vertexAttribI4bv(Index,{V1,V2,V3,V4}) ->
3446
 
  wxe_util:cast(5573, <<Index:?GLuint,V1:?GLbyte,V2:?GLbyte,V3:?GLbyte,V4:?GLbyte>>).
3447
 
 
3448
 
%% @spec (Index::integer(),V::{integer()}) -> ok
3449
 
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
3450
 
vertexAttribI4sv(Index,{V1,V2,V3,V4}) ->
3451
 
  wxe_util:cast(5574, <<Index:?GLuint,V1:?GLshort,V2:?GLshort,V3:?GLshort,V4:?GLshort>>).
3452
 
 
3453
 
%% @spec (Index::integer(),V::{integer()}) -> ok
3454
 
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
3455
 
vertexAttribI4ubv(Index,{V1,V2,V3,V4}) ->
3456
 
  wxe_util:cast(5575, <<Index:?GLuint,V1:?GLubyte,V2:?GLubyte,V3:?GLubyte,V4:?GLubyte>>).
3457
 
 
3458
 
%% @spec (Index::integer(),V::{integer()}) -> ok
3459
 
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
3460
 
vertexAttribI4usv(Index,{V1,V2,V3,V4}) ->
3461
 
  wxe_util:cast(5576, <<Index:?GLuint,V1:?GLushort,V2:?GLushort,V3:?GLushort,V4:?GLushort>>).
 
4183
  call(5576, <<Name:?GLenum,Index:?GLuint>>).
3462
4184
 
3463
4185
%% @spec (Mode::enum(),First::integer(),Count::integer(),Primcount::integer()) -> ok
3464
4186
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawArraysInstance.xml">external</a> documentation.
 
4187
-spec drawArraysInstanced(enum(),integer(),integer(),integer()) -> ok.
3465
4188
drawArraysInstanced(Mode,First,Count,Primcount) ->
3466
 
  wxe_util:cast(5577, <<Mode:?GLenum,First:?GLint,Count:?GLsizei,Primcount:?GLsizei>>).
 
4189
  cast(5577, <<Mode:?GLenum,First:?GLint,Count:?GLsizei,Primcount:?GLsizei>>).
3467
4190
 
3468
 
%% @spec (Mode::enum(),Count::integer(),Type::enum(),Indices::offset()|binary(),Primcount::integer()) -> ok
 
4191
%% @spec (Mode::enum(),Count::integer(),Type::enum(),Indices::offset()|mem(),Primcount::integer()) -> ok
3469
4192
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawElementsInstance.xml">external</a> documentation.
 
4193
-spec drawElementsInstanced(enum(),integer(),enum(),offset()|mem(),integer()) -> ok.
3470
4194
drawElementsInstanced(Mode,Count,Type,Indices,Primcount) when  is_integer(Indices) ->
3471
 
  wxe_util:cast(5578, <<Mode:?GLenum,Count:?GLsizei,Type:?GLenum,Indices:?GLuint,Primcount:?GLsizei>>);
 
4195
  cast(5578, <<Mode:?GLenum,Count:?GLsizei,Type:?GLenum,Indices:?GLuint,Primcount:?GLsizei>>);
3472
4196
drawElementsInstanced(Mode,Count,Type,Indices,Primcount) ->
3473
 
  wxe_util:send_bin(Indices),
3474
 
  wxe_util:cast(5579, <<Mode:?GLenum,Count:?GLsizei,Type:?GLenum,Primcount:?GLsizei>>).
 
4197
  send_bin(Indices),
 
4198
  cast(5579, <<Mode:?GLenum,Count:?GLsizei,Type:?GLenum,Primcount:?GLsizei>>).
3475
4199
 
3476
4200
%% @spec (Target::enum(),Internalformat::enum(),Buffer::integer()) -> ok
3477
4201
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexBuffer.xml">external</a> documentation.
 
4202
-spec texBuffer(enum(),enum(),integer()) -> ok.
3478
4203
texBuffer(Target,Internalformat,Buffer) ->
3479
 
  wxe_util:cast(5580, <<Target:?GLenum,Internalformat:?GLenum,Buffer:?GLuint>>).
 
4204
  cast(5580, <<Target:?GLenum,Internalformat:?GLenum,Buffer:?GLuint>>).
3480
4205
 
3481
4206
%% @spec (Index::integer()) -> ok
3482
4207
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPrimitiveRestartIndex.xml">external</a> documentation.
 
4208
-spec primitiveRestartIndex(integer()) -> ok.
3483
4209
primitiveRestartIndex(Index) ->
3484
 
  wxe_util:cast(5581, <<Index:?GLuint>>).
3485
 
 
3486
 
%% @spec (M::{float()}) -> ok
 
4210
  cast(5581, <<Index:?GLuint>>).
 
4211
 
 
4212
%% @spec (Target::enum(),Index::integer()) -> [integer()]
 
4213
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetInteger64i_v.xml">external</a> documentation.
 
4214
-spec getInteger64i_v(enum(),integer()) -> [integer()].
 
4215
getInteger64i_v(Target,Index) ->
 
4216
  call(5582, <<Target:?GLenum,Index:?GLuint>>).
 
4217
 
 
4218
%% @spec (Target::enum(),Pname::enum()) -> [integer()]
 
4219
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetBufferParameteri64v.xml">external</a> documentation.
 
4220
-spec getBufferParameteri64v(enum(),enum()) -> [integer()].
 
4221
getBufferParameteri64v(Target,Pname) ->
 
4222
  call(5583, <<Target:?GLenum,Pname:?GLenum>>).
 
4223
 
 
4224
%% @spec (Target::enum(),Attachment::enum(),Texture::integer(),Level::integer()) -> ok
 
4225
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFramebufferTexture.xml">external</a> documentation.
 
4226
-spec framebufferTexture(enum(),enum(),integer(),integer()) -> ok.
 
4227
framebufferTexture(Target,Attachment,Texture,Level) ->
 
4228
  cast(5584, <<Target:?GLenum,Attachment:?GLenum,Texture:?GLuint,Level:?GLint>>).
 
4229
 
 
4230
%% @spec (Index::integer(),Divisor::integer()) -> ok
 
4231
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribDivisor.xml">external</a> documentation.
 
4232
-spec vertexAttribDivisor(integer(),integer()) -> ok.
 
4233
vertexAttribDivisor(Index,Divisor) ->
 
4234
  cast(5585, <<Index:?GLuint,Divisor:?GLuint>>).
 
4235
 
 
4236
%% @spec (Value::clamp()) -> ok
 
4237
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMinSampleShading.xml">external</a> documentation.
 
4238
-spec minSampleShading(clamp()) -> ok.
 
4239
minSampleShading(Value) ->
 
4240
  cast(5586, <<Value:?GLclampf>>).
 
4241
 
 
4242
%% @spec (Buf::integer(),Mode::enum()) -> ok
 
4243
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlendEquation.xml">external</a> documentation.
 
4244
-spec blendEquationi(integer(),enum()) -> ok.
 
4245
blendEquationi(Buf,Mode) ->
 
4246
  cast(5587, <<Buf:?GLuint,Mode:?GLenum>>).
 
4247
 
 
4248
%% @spec (Buf::integer(),ModeRGB::enum(),ModeAlpha::enum()) -> ok
 
4249
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlendEquationSeparate.xml">external</a> documentation.
 
4250
-spec blendEquationSeparatei(integer(),enum(),enum()) -> ok.
 
4251
blendEquationSeparatei(Buf,ModeRGB,ModeAlpha) ->
 
4252
  cast(5588, <<Buf:?GLuint,ModeRGB:?GLenum,ModeAlpha:?GLenum>>).
 
4253
 
 
4254
%% @spec (Buf::integer(),Src::enum(),Dst::enum()) -> ok
 
4255
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlendFunci.xml">external</a> documentation.
 
4256
-spec blendFunci(integer(),enum(),enum()) -> ok.
 
4257
blendFunci(Buf,Src,Dst) ->
 
4258
  cast(5589, <<Buf:?GLuint,Src:?GLenum,Dst:?GLenum>>).
 
4259
 
 
4260
%% @spec (Buf::integer(),SrcRGB::enum(),DstRGB::enum(),SrcAlpha::enum(),DstAlpha::enum()) -> ok
 
4261
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlendFuncSeparate.xml">external</a> documentation.
 
4262
-spec blendFuncSeparatei(integer(),enum(),enum(),enum(),enum()) -> ok.
 
4263
blendFuncSeparatei(Buf,SrcRGB,DstRGB,SrcAlpha,DstAlpha) ->
 
4264
  cast(5590, <<Buf:?GLuint,SrcRGB:?GLenum,DstRGB:?GLenum,SrcAlpha:?GLenum,DstAlpha:?GLenum>>).
 
4265
 
 
4266
%% @spec (M::{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok
3487
4267
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadTransposeMatrixARB.xml">external</a> documentation.
 
4268
-spec loadTransposeMatrixfARB({float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok.
3488
4269
loadTransposeMatrixfARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
3489
 
  wxe_util:cast(5582, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
 
4270
  cast(5591, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
3490
4271
loadTransposeMatrixfARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
3491
 
  wxe_util:cast(5582, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
 
4272
  cast(5591, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
3492
4273
 
3493
 
%% @spec (M::{float()}) -> ok
 
4274
%% @spec (M::{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok
3494
4275
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadTransposeMatrixARB.xml">external</a> documentation.
 
4276
-spec loadTransposeMatrixdARB({float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok.
3495
4277
loadTransposeMatrixdARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
3496
 
  wxe_util:cast(5583, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
 
4278
  cast(5592, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
3497
4279
loadTransposeMatrixdARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
3498
 
  wxe_util:cast(5583, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
 
4280
  cast(5592, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
3499
4281
 
3500
 
%% @spec (M::{float()}) -> ok
 
4282
%% @spec (M::{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok
3501
4283
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultTransposeMatrixARB.xml">external</a> documentation.
 
4284
-spec multTransposeMatrixfARB({float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok.
3502
4285
multTransposeMatrixfARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
3503
 
  wxe_util:cast(5584, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
 
4286
  cast(5593, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
3504
4287
multTransposeMatrixfARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
3505
 
  wxe_util:cast(5584, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
 
4288
  cast(5593, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
3506
4289
 
3507
 
%% @spec (M::{float()}) -> ok
 
4290
%% @spec (M::{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok
3508
4291
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultTransposeMatrixARB.xml">external</a> documentation.
 
4292
-spec multTransposeMatrixdARB({float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}) -> ok.
3509
4293
multTransposeMatrixdARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
3510
 
  wxe_util:cast(5585, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
 
4294
  cast(5594, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
3511
4295
multTransposeMatrixdARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
3512
 
  wxe_util:cast(5585, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
 
4296
  cast(5594, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
3513
4297
 
3514
4298
%% @spec (Weights::[integer()]) -> ok
3515
4299
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWeightARB.xml">external</a> documentation.
 
4300
-spec weightbvARB([integer()]) -> ok.
3516
4301
weightbvARB(Weights) ->
3517
 
  wxe_util:cast(5586, <<(length(Weights)):?GLuint,
 
4302
  cast(5595, <<(length(Weights)):?GLuint,
3518
4303
        (<< <<C:?GLbyte>> || C <- Weights>>)/binary,0:((8-((length(Weights)+ 4) rem 8)) rem 8)>>).
3519
4304
 
3520
4305
%% @spec (Weights::[integer()]) -> ok
3521
4306
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWeightARB.xml">external</a> documentation.
 
4307
-spec weightsvARB([integer()]) -> ok.
3522
4308
weightsvARB(Weights) ->
3523
 
  wxe_util:cast(5587, <<(length(Weights)):?GLuint,
 
4309
  cast(5596, <<(length(Weights)):?GLuint,
3524
4310
        (<< <<C:?GLshort>> || C <- Weights>>)/binary,0:((8-((length(Weights)*2+ 4) rem 8)) rem 8)>>).
3525
4311
 
3526
4312
%% @spec (Weights::[integer()]) -> ok
3527
4313
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWeightARB.xml">external</a> documentation.
 
4314
-spec weightivARB([integer()]) -> ok.
3528
4315
weightivARB(Weights) ->
3529
 
  wxe_util:cast(5588, <<(length(Weights)):?GLuint,
 
4316
  cast(5597, <<(length(Weights)):?GLuint,
3530
4317
        (<< <<C:?GLint>> || C <- Weights>>)/binary,0:(((1+length(Weights)) rem 2)*32)>>).
3531
4318
 
3532
4319
%% @spec (Weights::[float()]) -> ok
3533
4320
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWeightARB.xml">external</a> documentation.
 
4321
-spec weightfvARB([float()]) -> ok.
3534
4322
weightfvARB(Weights) ->
3535
 
  wxe_util:cast(5589, <<(length(Weights)):?GLuint,
 
4323
  cast(5598, <<(length(Weights)):?GLuint,
3536
4324
        (<< <<C:?GLfloat>> || C <- Weights>>)/binary,0:(((1+length(Weights)) rem 2)*32)>>).
3537
4325
 
3538
4326
%% @spec (Weights::[float()]) -> ok
3539
4327
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWeightARB.xml">external</a> documentation.
 
4328
-spec weightdvARB([float()]) -> ok.
3540
4329
weightdvARB(Weights) ->
3541
 
  wxe_util:cast(5590, <<(length(Weights)):?GLuint,0:32,
 
4330
  cast(5599, <<(length(Weights)):?GLuint,0:32,
3542
4331
        (<< <<C:?GLdouble>> || C <- Weights>>)/binary>>).
3543
4332
 
3544
4333
%% @spec (Weights::[integer()]) -> ok
3545
4334
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWeightARB.xml">external</a> documentation.
 
4335
-spec weightubvARB([integer()]) -> ok.
3546
4336
weightubvARB(Weights) ->
3547
 
  wxe_util:cast(5591, <<(length(Weights)):?GLuint,
 
4337
  cast(5600, <<(length(Weights)):?GLuint,
3548
4338
        (<< <<C:?GLubyte>> || C <- Weights>>)/binary,0:((8-((length(Weights)+ 4) rem 8)) rem 8)>>).
3549
4339
 
3550
4340
%% @spec (Weights::[integer()]) -> ok
3551
4341
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWeightARB.xml">external</a> documentation.
 
4342
-spec weightusvARB([integer()]) -> ok.
3552
4343
weightusvARB(Weights) ->
3553
 
  wxe_util:cast(5592, <<(length(Weights)):?GLuint,
 
4344
  cast(5601, <<(length(Weights)):?GLuint,
3554
4345
        (<< <<C:?GLushort>> || C <- Weights>>)/binary,0:((8-((length(Weights)*2+ 4) rem 8)) rem 8)>>).
3555
4346
 
3556
4347
%% @spec (Weights::[integer()]) -> ok
3557
4348
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWeightARB.xml">external</a> documentation.
 
4349
-spec weightuivARB([integer()]) -> ok.
3558
4350
weightuivARB(Weights) ->
3559
 
  wxe_util:cast(5593, <<(length(Weights)):?GLuint,
 
4351
  cast(5602, <<(length(Weights)):?GLuint,
3560
4352
        (<< <<C:?GLuint>> || C <- Weights>>)/binary,0:(((1+length(Weights)) rem 2)*32)>>).
3561
4353
 
3562
4354
%% @spec (Count::integer()) -> ok
3563
4355
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexBlenARB.xml">external</a> documentation.
 
4356
-spec vertexBlendARB(integer()) -> ok.
3564
4357
vertexBlendARB(Count) ->
3565
 
  wxe_util:cast(5594, <<Count:?GLint>>).
 
4358
  cast(5603, <<Count:?GLint>>).
3566
4359
 
3567
4360
%% @spec (Index::integer()) -> ok
3568
4361
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCurrentPaletteMatrixARB.xml">external</a> documentation.
 
4362
-spec currentPaletteMatrixARB(integer()) -> ok.
3569
4363
currentPaletteMatrixARB(Index) ->
3570
 
  wxe_util:cast(5595, <<Index:?GLint>>).
 
4364
  cast(5604, <<Index:?GLint>>).
3571
4365
 
3572
4366
%% @spec (Indices::[integer()]) -> ok
3573
4367
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMatrixIndexARB.xml">external</a> documentation.
 
4368
-spec matrixIndexubvARB([integer()]) -> ok.
3574
4369
matrixIndexubvARB(Indices) ->
3575
 
  wxe_util:cast(5596, <<(length(Indices)):?GLuint,
 
4370
  cast(5605, <<(length(Indices)):?GLuint,
3576
4371
        (<< <<C:?GLubyte>> || C <- Indices>>)/binary,0:((8-((length(Indices)+ 4) rem 8)) rem 8)>>).
3577
4372
 
3578
4373
%% @spec (Indices::[integer()]) -> ok
3579
4374
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMatrixIndexARB.xml">external</a> documentation.
 
4375
-spec matrixIndexusvARB([integer()]) -> ok.
3580
4376
matrixIndexusvARB(Indices) ->
3581
 
  wxe_util:cast(5597, <<(length(Indices)):?GLuint,
 
4377
  cast(5606, <<(length(Indices)):?GLuint,
3582
4378
        (<< <<C:?GLushort>> || C <- Indices>>)/binary,0:((8-((length(Indices)*2+ 4) rem 8)) rem 8)>>).
3583
4379
 
3584
4380
%% @spec (Indices::[integer()]) -> ok
3585
4381
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMatrixIndexARB.xml">external</a> documentation.
 
4382
-spec matrixIndexuivARB([integer()]) -> ok.
3586
4383
matrixIndexuivARB(Indices) ->
3587
 
  wxe_util:cast(5598, <<(length(Indices)):?GLuint,
 
4384
  cast(5607, <<(length(Indices)):?GLuint,
3588
4385
        (<< <<C:?GLuint>> || C <- Indices>>)/binary,0:(((1+length(Indices)) rem 2)*32)>>).
3589
4386
 
3590
4387
%% @spec (Target::enum(),Format::enum(),String::string()) -> ok
3591
4388
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramStringARB.xml">external</a> documentation.
 
4389
-spec programStringARB(enum(),enum(),string()) -> ok.
3592
4390
programStringARB(Target,Format,String) ->
3593
 
  wxe_util:cast(5599, <<Target:?GLenum,Format:?GLenum,(list_to_binary([String|[0]]))/binary,0:((8-((length(String)+ 1) rem 8)) rem 8)>>).
 
4391
  cast(5608, <<Target:?GLenum,Format:?GLenum,(list_to_binary([String|[0]]))/binary,0:((8-((length(String)+ 1) rem 8)) rem 8)>>).
3594
4392
 
3595
4393
%% @spec (Target::enum(),Program::integer()) -> ok
3596
4394
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindProgramARB.xml">external</a> documentation.
 
4395
-spec bindProgramARB(enum(),integer()) -> ok.
3597
4396
bindProgramARB(Target,Program) ->
3598
 
  wxe_util:cast(5600, <<Target:?GLenum,Program:?GLuint>>).
 
4397
  cast(5609, <<Target:?GLenum,Program:?GLuint>>).
3599
4398
 
3600
4399
%% @spec (Programs::[integer()]) -> ok
3601
4400
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteProgramsARB.xml">external</a> documentation.
 
4401
-spec deleteProgramsARB([integer()]) -> ok.
3602
4402
deleteProgramsARB(Programs) ->
3603
 
  wxe_util:cast(5601, <<(length(Programs)):?GLuint,
 
4403
  cast(5610, <<(length(Programs)):?GLuint,
3604
4404
        (<< <<C:?GLuint>> || C <- Programs>>)/binary,0:(((1+length(Programs)) rem 2)*32)>>).
3605
4405
 
3606
4406
%% @spec (N::integer()) -> [integer()]
3607
4407
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenProgramsARB.xml">external</a> documentation.
 
4408
-spec genProgramsARB(integer()) -> [integer()].
3608
4409
genProgramsARB(N) ->
3609
 
  wxe_util:call(5602, <<N:?GLsizei>>).
 
4410
  call(5611, <<N:?GLsizei>>).
3610
4411
 
3611
4412
%% @spec (Target::enum(),Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok
3612
4413
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramEnvParameterARB.xml">external</a> documentation.
 
4414
-spec programEnvParameter4dARB(enum(),integer(),float(),float(),float(),float()) -> ok.
3613
4415
programEnvParameter4dARB(Target,Index,X,Y,Z,W) ->
3614
 
  wxe_util:cast(5603, <<Target:?GLenum,Index:?GLuint,X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
 
4416
  cast(5612, <<Target:?GLenum,Index:?GLuint,X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
3615
4417
 
3616
 
%% @spec (Target::enum(),Index::integer(),Params::{float()}) -> ok
 
4418
%% @spec (Target::enum(),Index::integer(),Params::{float(),float(),float(),float()}) -> ok
3617
4419
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramEnvParameterARB.xml">external</a> documentation.
 
4420
-spec programEnvParameter4dvARB(enum(),integer(),{float(),float(),float(),float()}) -> ok.
3618
4421
programEnvParameter4dvARB(Target,Index,{P1,P2,P3,P4}) ->
3619
 
  wxe_util:cast(5604, <<Target:?GLenum,Index:?GLuint,P1:?GLdouble,P2:?GLdouble,P3:?GLdouble,P4:?GLdouble>>).
 
4422
  cast(5613, <<Target:?GLenum,Index:?GLuint,P1:?GLdouble,P2:?GLdouble,P3:?GLdouble,P4:?GLdouble>>).
3620
4423
 
3621
4424
%% @spec (Target::enum(),Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok
3622
4425
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramEnvParameterARB.xml">external</a> documentation.
 
4426
-spec programEnvParameter4fARB(enum(),integer(),float(),float(),float(),float()) -> ok.
3623
4427
programEnvParameter4fARB(Target,Index,X,Y,Z,W) ->
3624
 
  wxe_util:cast(5605, <<Target:?GLenum,Index:?GLuint,X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
 
4428
  cast(5614, <<Target:?GLenum,Index:?GLuint,X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
3625
4429
 
3626
 
%% @spec (Target::enum(),Index::integer(),Params::{float()}) -> ok
 
4430
%% @spec (Target::enum(),Index::integer(),Params::{float(),float(),float(),float()}) -> ok
3627
4431
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramEnvParameterARB.xml">external</a> documentation.
 
4432
-spec programEnvParameter4fvARB(enum(),integer(),{float(),float(),float(),float()}) -> ok.
3628
4433
programEnvParameter4fvARB(Target,Index,{P1,P2,P3,P4}) ->
3629
 
  wxe_util:cast(5606, <<Target:?GLenum,Index:?GLuint,P1:?GLfloat,P2:?GLfloat,P3:?GLfloat,P4:?GLfloat>>).
 
4434
  cast(5615, <<Target:?GLenum,Index:?GLuint,P1:?GLfloat,P2:?GLfloat,P3:?GLfloat,P4:?GLfloat>>).
3630
4435
 
3631
4436
%% @spec (Target::enum(),Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok
3632
4437
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramLocalParameterARB.xml">external</a> documentation.
 
4438
-spec programLocalParameter4dARB(enum(),integer(),float(),float(),float(),float()) -> ok.
3633
4439
programLocalParameter4dARB(Target,Index,X,Y,Z,W) ->
3634
 
  wxe_util:cast(5607, <<Target:?GLenum,Index:?GLuint,X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
 
4440
  cast(5616, <<Target:?GLenum,Index:?GLuint,X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
3635
4441
 
3636
 
%% @spec (Target::enum(),Index::integer(),Params::{float()}) -> ok
 
4442
%% @spec (Target::enum(),Index::integer(),Params::{float(),float(),float(),float()}) -> ok
3637
4443
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramLocalParameterARB.xml">external</a> documentation.
 
4444
-spec programLocalParameter4dvARB(enum(),integer(),{float(),float(),float(),float()}) -> ok.
3638
4445
programLocalParameter4dvARB(Target,Index,{P1,P2,P3,P4}) ->
3639
 
  wxe_util:cast(5608, <<Target:?GLenum,Index:?GLuint,P1:?GLdouble,P2:?GLdouble,P3:?GLdouble,P4:?GLdouble>>).
 
4446
  cast(5617, <<Target:?GLenum,Index:?GLuint,P1:?GLdouble,P2:?GLdouble,P3:?GLdouble,P4:?GLdouble>>).
3640
4447
 
3641
4448
%% @spec (Target::enum(),Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok
3642
4449
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramLocalParameterARB.xml">external</a> documentation.
 
4450
-spec programLocalParameter4fARB(enum(),integer(),float(),float(),float(),float()) -> ok.
3643
4451
programLocalParameter4fARB(Target,Index,X,Y,Z,W) ->
3644
 
  wxe_util:cast(5609, <<Target:?GLenum,Index:?GLuint,X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
 
4452
  cast(5618, <<Target:?GLenum,Index:?GLuint,X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
3645
4453
 
3646
 
%% @spec (Target::enum(),Index::integer(),Params::{float()}) -> ok
 
4454
%% @spec (Target::enum(),Index::integer(),Params::{float(),float(),float(),float()}) -> ok
3647
4455
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramLocalParameterARB.xml">external</a> documentation.
 
4456
-spec programLocalParameter4fvARB(enum(),integer(),{float(),float(),float(),float()}) -> ok.
3648
4457
programLocalParameter4fvARB(Target,Index,{P1,P2,P3,P4}) ->
3649
 
  wxe_util:cast(5610, <<Target:?GLenum,Index:?GLuint,P1:?GLfloat,P2:?GLfloat,P3:?GLfloat,P4:?GLfloat>>).
 
4458
  cast(5619, <<Target:?GLenum,Index:?GLuint,P1:?GLfloat,P2:?GLfloat,P3:?GLfloat,P4:?GLfloat>>).
3650
4459
 
3651
 
%% @spec (Target::enum(),Index::integer()) -> {float()}
 
4460
%% @spec (Target::enum(),Index::integer()) -> {float(),float(),float(),float()}
3652
4461
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgramEnvParameterARB.xml">external</a> documentation.
 
4462
-spec getProgramEnvParameterdvARB(enum(),integer()) -> {float(),float(),float(),float()}.
3653
4463
getProgramEnvParameterdvARB(Target,Index) ->
3654
 
  wxe_util:call(5611, <<Target:?GLenum,Index:?GLuint>>).
 
4464
  call(5620, <<Target:?GLenum,Index:?GLuint>>).
3655
4465
 
3656
 
%% @spec (Target::enum(),Index::integer()) -> {float()}
 
4466
%% @spec (Target::enum(),Index::integer()) -> {float(),float(),float(),float()}
3657
4467
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgramEnvParameterARB.xml">external</a> documentation.
 
4468
-spec getProgramEnvParameterfvARB(enum(),integer()) -> {float(),float(),float(),float()}.
3658
4469
getProgramEnvParameterfvARB(Target,Index) ->
3659
 
  wxe_util:call(5612, <<Target:?GLenum,Index:?GLuint>>).
 
4470
  call(5621, <<Target:?GLenum,Index:?GLuint>>).
3660
4471
 
3661
 
%% @spec (Target::enum(),Index::integer()) -> {float()}
 
4472
%% @spec (Target::enum(),Index::integer()) -> {float(),float(),float(),float()}
3662
4473
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgramLocalParameterARB.xml">external</a> documentation.
 
4474
-spec getProgramLocalParameterdvARB(enum(),integer()) -> {float(),float(),float(),float()}.
3663
4475
getProgramLocalParameterdvARB(Target,Index) ->
3664
 
  wxe_util:call(5613, <<Target:?GLenum,Index:?GLuint>>).
 
4476
  call(5622, <<Target:?GLenum,Index:?GLuint>>).
3665
4477
 
3666
 
%% @spec (Target::enum(),Index::integer()) -> {float()}
 
4478
%% @spec (Target::enum(),Index::integer()) -> {float(),float(),float(),float()}
3667
4479
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgramLocalParameterARB.xml">external</a> documentation.
 
4480
-spec getProgramLocalParameterfvARB(enum(),integer()) -> {float(),float(),float(),float()}.
3668
4481
getProgramLocalParameterfvARB(Target,Index) ->
3669
 
  wxe_util:call(5614, <<Target:?GLenum,Index:?GLuint>>).
 
4482
  call(5623, <<Target:?GLenum,Index:?GLuint>>).
3670
4483
 
3671
 
%% @spec (Target::enum(),Pname::enum(),String::wx:wx_mem()) -> ok
 
4484
%% @spec (Target::enum(),Pname::enum(),String::mem()) -> ok
3672
4485
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgramStringARB.xml">external</a> documentation.
 
4486
-spec getProgramStringARB(enum(),enum(),mem()) -> ok.
3673
4487
getProgramStringARB(Target,Pname,String) ->
3674
 
  wxe_util:send_bin(String#wx_mem.bin),
3675
 
  wxe_util:call(5615, <<Target:?GLenum,Pname:?GLenum>>).
 
4488
  send_bin(String),
 
4489
  call(5624, <<Target:?GLenum,Pname:?GLenum>>).
 
4490
 
 
4491
%% @spec (Target::enum(),Pname::enum()) -> [integer()]
 
4492
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetBufferParameterARB.xml">external</a> documentation.
 
4493
-spec getBufferParameterivARB(enum(),enum()) -> [integer()].
 
4494
getBufferParameterivARB(Target,Pname) ->
 
4495
  call(5625, <<Target:?GLenum,Pname:?GLenum>>).
3676
4496
 
3677
4497
%% @spec (Obj::integer()) -> ok
3678
4498
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteObjectARB.xml">external</a> documentation.
 
4499
-spec deleteObjectARB(integer()) -> ok.
3679
4500
deleteObjectARB(Obj) ->
3680
 
  wxe_util:cast(5616, <<Obj:?GLhandleARB>>).
 
4501
  cast(5626, <<Obj:?GLhandleARB>>).
3681
4502
 
3682
4503
%% @spec (Pname::enum()) -> integer()
3683
4504
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetHandleARB.xml">external</a> documentation.
 
4505
-spec getHandleARB(enum()) -> integer().
3684
4506
getHandleARB(Pname) ->
3685
 
  wxe_util:call(5617, <<Pname:?GLenum>>).
 
4507
  call(5627, <<Pname:?GLenum>>).
3686
4508
 
3687
4509
%% @spec (ContainerObj::integer(),AttachedObj::integer()) -> ok
3688
4510
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDetachObjectARB.xml">external</a> documentation.
 
4511
-spec detachObjectARB(integer(),integer()) -> ok.
3689
4512
detachObjectARB(ContainerObj,AttachedObj) ->
3690
 
  wxe_util:cast(5618, <<ContainerObj:?GLhandleARB,AttachedObj:?GLhandleARB>>).
 
4513
  cast(5628, <<ContainerObj:?GLhandleARB,AttachedObj:?GLhandleARB>>).
3691
4514
 
3692
4515
%% @spec (ShaderType::enum()) -> integer()
3693
4516
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCreateShaderObjectARB.xml">external</a> documentation.
 
4517
-spec createShaderObjectARB(enum()) -> integer().
3694
4518
createShaderObjectARB(ShaderType) ->
3695
 
  wxe_util:call(5619, <<ShaderType:?GLenum>>).
 
4519
  call(5629, <<ShaderType:?GLenum>>).
3696
4520
 
3697
4521
%% @spec (ShaderObj::integer(),String::[string()]) -> ok
3698
4522
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glShaderSourceARB.xml">external</a> documentation.
 
4523
-spec shaderSourceARB(integer(),[string()]) -> ok.
3699
4524
shaderSourceARB(ShaderObj,String) ->
3700
4525
 StringTemp = list_to_binary([[Str|[0]] || Str <- String ]),
3701
 
  wxe_util:cast(5620, <<ShaderObj:?GLhandleARB,(length(String)):?GLuint,(size(StringTemp)):?GLuint,(StringTemp)/binary,0:((8-((size(StringTemp)+4) rem 8)) rem 8)>>).
 
4526
  cast(5630, <<ShaderObj:?GLhandleARB,(length(String)):?GLuint,(size(StringTemp)):?GLuint,(StringTemp)/binary,0:((8-((size(StringTemp)+4) rem 8)) rem 8)>>).
3702
4527
 
3703
4528
%% @spec (ShaderObj::integer()) -> ok
3704
4529
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompileShaderARB.xml">external</a> documentation.
 
4530
-spec compileShaderARB(integer()) -> ok.
3705
4531
compileShaderARB(ShaderObj) ->
3706
 
  wxe_util:cast(5621, <<ShaderObj:?GLhandleARB>>).
 
4532
  cast(5631, <<ShaderObj:?GLhandleARB>>).
3707
4533
 
3708
4534
%% @spec () -> integer()
3709
4535
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCreateProgramObjectARB.xml">external</a> documentation.
 
4536
-spec createProgramObjectARB() -> integer().
3710
4537
createProgramObjectARB() ->
3711
 
  wxe_util:call(5622, <<>>).
 
4538
  call(5632, <<>>).
3712
4539
 
3713
4540
%% @spec (ContainerObj::integer(),Obj::integer()) -> ok
3714
4541
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glAttachObjectARB.xml">external</a> documentation.
 
4542
-spec attachObjectARB(integer(),integer()) -> ok.
3715
4543
attachObjectARB(ContainerObj,Obj) ->
3716
 
  wxe_util:cast(5623, <<ContainerObj:?GLhandleARB,Obj:?GLhandleARB>>).
 
4544
  cast(5633, <<ContainerObj:?GLhandleARB,Obj:?GLhandleARB>>).
3717
4545
 
3718
4546
%% @spec (ProgramObj::integer()) -> ok
3719
4547
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLinkProgramARB.xml">external</a> documentation.
 
4548
-spec linkProgramARB(integer()) -> ok.
3720
4549
linkProgramARB(ProgramObj) ->
3721
 
  wxe_util:cast(5624, <<ProgramObj:?GLhandleARB>>).
 
4550
  cast(5634, <<ProgramObj:?GLhandleARB>>).
3722
4551
 
3723
4552
%% @spec (ProgramObj::integer()) -> ok
3724
4553
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUseProgramObjectARB.xml">external</a> documentation.
 
4554
-spec useProgramObjectARB(integer()) -> ok.
3725
4555
useProgramObjectARB(ProgramObj) ->
3726
 
  wxe_util:cast(5625, <<ProgramObj:?GLhandleARB>>).
 
4556
  cast(5635, <<ProgramObj:?GLhandleARB>>).
3727
4557
 
3728
4558
%% @spec (ProgramObj::integer()) -> ok
3729
4559
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glValidateProgramARB.xml">external</a> documentation.
 
4560
-spec validateProgramARB(integer()) -> ok.
3730
4561
validateProgramARB(ProgramObj) ->
3731
 
  wxe_util:cast(5626, <<ProgramObj:?GLhandleARB>>).
 
4562
  cast(5636, <<ProgramObj:?GLhandleARB>>).
3732
4563
 
3733
4564
%% @spec (Obj::integer(),Pname::enum()) -> float()
3734
4565
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetObjectParameterARB.xml">external</a> documentation.
 
4566
-spec getObjectParameterfvARB(integer(),enum()) -> float().
3735
4567
getObjectParameterfvARB(Obj,Pname) ->
3736
 
  wxe_util:call(5627, <<Obj:?GLhandleARB,Pname:?GLenum>>).
 
4568
  call(5637, <<Obj:?GLhandleARB,Pname:?GLenum>>).
3737
4569
 
3738
4570
%% @spec (Obj::integer(),Pname::enum()) -> integer()
3739
4571
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetObjectParameterARB.xml">external</a> documentation.
 
4572
-spec getObjectParameterivARB(integer(),enum()) -> integer().
3740
4573
getObjectParameterivARB(Obj,Pname) ->
3741
 
  wxe_util:call(5628, <<Obj:?GLhandleARB,Pname:?GLenum>>).
 
4574
  call(5638, <<Obj:?GLhandleARB,Pname:?GLenum>>).
3742
4575
 
3743
4576
%% @spec (Obj::integer(),MaxLength::integer()) -> string()
3744
4577
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetInfoLogARB.xml">external</a> documentation.
 
4578
-spec getInfoLogARB(integer(),integer()) -> string().
3745
4579
getInfoLogARB(Obj,MaxLength) ->
3746
 
  wxe_util:call(5629, <<Obj:?GLhandleARB,MaxLength:?GLsizei>>).
 
4580
  call(5639, <<Obj:?GLhandleARB,MaxLength:?GLsizei>>).
3747
4581
 
3748
4582
%% @spec (ContainerObj::integer(),MaxCount::integer()) -> [integer()]
3749
4583
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetAttachedObjectsARB.xml">external</a> documentation.
 
4584
-spec getAttachedObjectsARB(integer(),integer()) -> [integer()].
3750
4585
getAttachedObjectsARB(ContainerObj,MaxCount) ->
3751
 
  wxe_util:call(5630, <<ContainerObj:?GLhandleARB,MaxCount:?GLsizei>>).
 
4586
  call(5640, <<ContainerObj:?GLhandleARB,MaxCount:?GLsizei>>).
3752
4587
 
3753
4588
%% @spec (ProgramObj::integer(),Name::string()) -> integer()
3754
4589
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniformLocationARB.xml">external</a> documentation.
 
4590
-spec getUniformLocationARB(integer(),string()) -> integer().
3755
4591
getUniformLocationARB(ProgramObj,Name) ->
3756
 
  wxe_util:call(5631, <<ProgramObj:?GLhandleARB,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8)>>).
 
4592
  call(5641, <<ProgramObj:?GLhandleARB,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8)>>).
3757
4593
 
3758
4594
%% @spec (ProgramObj::integer(),Index::integer(),MaxLength::integer()) -> {Size::integer(),Type::enum(),Name::string()}
3759
4595
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveUniformARB.xml">external</a> documentation.
 
4596
-spec getActiveUniformARB(integer(),integer(),integer()) -> {integer(),enum(),string()}.
3760
4597
getActiveUniformARB(ProgramObj,Index,MaxLength) ->
3761
 
  wxe_util:call(5632, <<ProgramObj:?GLhandleARB,Index:?GLuint,MaxLength:?GLsizei>>).
 
4598
  call(5642, <<ProgramObj:?GLhandleARB,Index:?GLuint,MaxLength:?GLsizei>>).
3762
4599
 
3763
 
%% @spec (ProgramObj::integer(),Location::integer()) -> {float()}
 
4600
%% @spec (ProgramObj::integer(),Location::integer()) -> {float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}
3764
4601
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniformARB.xml">external</a> documentation.
 
4602
-spec getUniformfvARB(integer(),integer()) -> {float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}.
3765
4603
getUniformfvARB(ProgramObj,Location) ->
3766
 
  wxe_util:call(5633, <<ProgramObj:?GLhandleARB,Location:?GLint>>).
 
4604
  call(5643, <<ProgramObj:?GLhandleARB,Location:?GLint>>).
3767
4605
 
3768
 
%% @spec (ProgramObj::integer(),Location::integer()) -> {integer()}
 
4606
%% @spec (ProgramObj::integer(),Location::integer()) -> {integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer()}
3769
4607
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniformARB.xml">external</a> documentation.
 
4608
-spec getUniformivARB(integer(),integer()) -> {integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer()}.
3770
4609
getUniformivARB(ProgramObj,Location) ->
3771
 
  wxe_util:call(5634, <<ProgramObj:?GLhandleARB,Location:?GLint>>).
 
4610
  call(5644, <<ProgramObj:?GLhandleARB,Location:?GLint>>).
3772
4611
 
3773
4612
%% @spec (Obj::integer(),MaxLength::integer()) -> string()
3774
4613
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetShaderSourceARB.xml">external</a> documentation.
 
4614
-spec getShaderSourceARB(integer(),integer()) -> string().
3775
4615
getShaderSourceARB(Obj,MaxLength) ->
3776
 
  wxe_util:call(5635, <<Obj:?GLhandleARB,MaxLength:?GLsizei>>).
 
4616
  call(5645, <<Obj:?GLhandleARB,MaxLength:?GLsizei>>).
3777
4617
 
3778
4618
%% @spec (ProgramObj::integer(),Index::integer(),Name::string()) -> ok
3779
4619
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindAttribLocationARB.xml">external</a> documentation.
 
4620
-spec bindAttribLocationARB(integer(),integer(),string()) -> ok.
3780
4621
bindAttribLocationARB(ProgramObj,Index,Name) ->
3781
 
  wxe_util:cast(5636, <<ProgramObj:?GLhandleARB,Index:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 5) rem 8)) rem 8)>>).
 
4622
  cast(5646, <<ProgramObj:?GLhandleARB,Index:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 5) rem 8)) rem 8)>>).
3782
4623
 
3783
4624
%% @spec (ProgramObj::integer(),Index::integer(),MaxLength::integer()) -> {Size::integer(),Type::enum(),Name::string()}
3784
4625
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveAttribARB.xml">external</a> documentation.
 
4626
-spec getActiveAttribARB(integer(),integer(),integer()) -> {integer(),enum(),string()}.
3785
4627
getActiveAttribARB(ProgramObj,Index,MaxLength) ->
3786
 
  wxe_util:call(5637, <<ProgramObj:?GLhandleARB,Index:?GLuint,MaxLength:?GLsizei>>).
 
4628
  call(5647, <<ProgramObj:?GLhandleARB,Index:?GLuint,MaxLength:?GLsizei>>).
3787
4629
 
3788
4630
%% @spec (ProgramObj::integer(),Name::string()) -> integer()
3789
4631
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetAttribLocationARB.xml">external</a> documentation.
 
4632
-spec getAttribLocationARB(integer(),string()) -> integer().
3790
4633
getAttribLocationARB(ProgramObj,Name) ->
3791
 
  wxe_util:call(5638, <<ProgramObj:?GLhandleARB,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8)>>).
 
4634
  call(5648, <<ProgramObj:?GLhandleARB,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8)>>).
3792
4635
 
3793
4636
%% @spec (Renderbuffer::integer()) -> 0|1
3794
4637
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsRenderbuffer.xml">external</a> documentation.
 
4638
-spec isRenderbuffer(integer()) -> 0|1.
3795
4639
isRenderbuffer(Renderbuffer) ->
3796
 
  wxe_util:call(5639, <<Renderbuffer:?GLuint>>).
 
4640
  call(5649, <<Renderbuffer:?GLuint>>).
3797
4641
 
3798
4642
%% @spec (Target::enum(),Renderbuffer::integer()) -> ok
3799
4643
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindRenderbuffer.xml">external</a> documentation.
 
4644
-spec bindRenderbuffer(enum(),integer()) -> ok.
3800
4645
bindRenderbuffer(Target,Renderbuffer) ->
3801
 
  wxe_util:cast(5640, <<Target:?GLenum,Renderbuffer:?GLuint>>).
 
4646
  cast(5650, <<Target:?GLenum,Renderbuffer:?GLuint>>).
3802
4647
 
3803
4648
%% @spec (Renderbuffers::[integer()]) -> ok
3804
4649
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteRenderbuffers.xml">external</a> documentation.
 
4650
-spec deleteRenderbuffers([integer()]) -> ok.
3805
4651
deleteRenderbuffers(Renderbuffers) ->
3806
 
  wxe_util:cast(5641, <<(length(Renderbuffers)):?GLuint,
 
4652
  cast(5651, <<(length(Renderbuffers)):?GLuint,
3807
4653
        (<< <<C:?GLuint>> || C <- Renderbuffers>>)/binary,0:(((1+length(Renderbuffers)) rem 2)*32)>>).
3808
4654
 
3809
4655
%% @spec (N::integer()) -> [integer()]
3810
4656
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenRenderbuffers.xml">external</a> documentation.
 
4657
-spec genRenderbuffers(integer()) -> [integer()].
3811
4658
genRenderbuffers(N) ->
3812
 
  wxe_util:call(5642, <<N:?GLsizei>>).
 
4659
  call(5652, <<N:?GLsizei>>).
3813
4660
 
3814
4661
%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Height::integer()) -> ok
3815
4662
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRenderbufferStorage.xml">external</a> documentation.
 
4663
-spec renderbufferStorage(enum(),enum(),integer(),integer()) -> ok.
3816
4664
renderbufferStorage(Target,Internalformat,Width,Height) ->
3817
 
  wxe_util:cast(5643, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei>>).
 
4665
  cast(5653, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei>>).
3818
4666
 
3819
4667
%% @spec (Target::enum(),Pname::enum()) -> integer()
3820
4668
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetRenderbufferParameter.xml">external</a> documentation.
 
4669
-spec getRenderbufferParameteriv(enum(),enum()) -> integer().
3821
4670
getRenderbufferParameteriv(Target,Pname) ->
3822
 
  wxe_util:call(5644, <<Target:?GLenum,Pname:?GLenum>>).
 
4671
  call(5654, <<Target:?GLenum,Pname:?GLenum>>).
3823
4672
 
3824
4673
%% @spec (Framebuffer::integer()) -> 0|1
3825
4674
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsFramebuffer.xml">external</a> documentation.
 
4675
-spec isFramebuffer(integer()) -> 0|1.
3826
4676
isFramebuffer(Framebuffer) ->
3827
 
  wxe_util:call(5645, <<Framebuffer:?GLuint>>).
 
4677
  call(5655, <<Framebuffer:?GLuint>>).
3828
4678
 
3829
4679
%% @spec (Target::enum(),Framebuffer::integer()) -> ok
3830
4680
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindFramebuffer.xml">external</a> documentation.
 
4681
-spec bindFramebuffer(enum(),integer()) -> ok.
3831
4682
bindFramebuffer(Target,Framebuffer) ->
3832
 
  wxe_util:cast(5646, <<Target:?GLenum,Framebuffer:?GLuint>>).
 
4683
  cast(5656, <<Target:?GLenum,Framebuffer:?GLuint>>).
3833
4684
 
3834
4685
%% @spec (Framebuffers::[integer()]) -> ok
3835
4686
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteFramebuffers.xml">external</a> documentation.
 
4687
-spec deleteFramebuffers([integer()]) -> ok.
3836
4688
deleteFramebuffers(Framebuffers) ->
3837
 
  wxe_util:cast(5647, <<(length(Framebuffers)):?GLuint,
 
4689
  cast(5657, <<(length(Framebuffers)):?GLuint,
3838
4690
        (<< <<C:?GLuint>> || C <- Framebuffers>>)/binary,0:(((1+length(Framebuffers)) rem 2)*32)>>).
3839
4691
 
3840
4692
%% @spec (N::integer()) -> [integer()]
3841
4693
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenFramebuffers.xml">external</a> documentation.
 
4694
-spec genFramebuffers(integer()) -> [integer()].
3842
4695
genFramebuffers(N) ->
3843
 
  wxe_util:call(5648, <<N:?GLsizei>>).
 
4696
  call(5658, <<N:?GLsizei>>).
3844
4697
 
3845
4698
%% @spec (Target::enum()) -> enum()
3846
4699
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCheckFramebufferStatus.xml">external</a> documentation.
 
4700
-spec checkFramebufferStatus(enum()) -> enum().
3847
4701
checkFramebufferStatus(Target) ->
3848
 
  wxe_util:call(5649, <<Target:?GLenum>>).
 
4702
  call(5659, <<Target:?GLenum>>).
3849
4703
 
3850
4704
%% @spec (Target::enum(),Attachment::enum(),Textarget::enum(),Texture::integer(),Level::integer()) -> ok
3851
4705
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFramebufferTexture1D.xml">external</a> documentation.
 
4706
-spec framebufferTexture1D(enum(),enum(),enum(),integer(),integer()) -> ok.
3852
4707
framebufferTexture1D(Target,Attachment,Textarget,Texture,Level) ->
3853
 
  wxe_util:cast(5650, <<Target:?GLenum,Attachment:?GLenum,Textarget:?GLenum,Texture:?GLuint,Level:?GLint>>).
 
4708
  cast(5660, <<Target:?GLenum,Attachment:?GLenum,Textarget:?GLenum,Texture:?GLuint,Level:?GLint>>).
3854
4709
 
3855
4710
%% @spec (Target::enum(),Attachment::enum(),Textarget::enum(),Texture::integer(),Level::integer()) -> ok
3856
4711
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFramebufferTexture2D.xml">external</a> documentation.
 
4712
-spec framebufferTexture2D(enum(),enum(),enum(),integer(),integer()) -> ok.
3857
4713
framebufferTexture2D(Target,Attachment,Textarget,Texture,Level) ->
3858
 
  wxe_util:cast(5651, <<Target:?GLenum,Attachment:?GLenum,Textarget:?GLenum,Texture:?GLuint,Level:?GLint>>).
 
4714
  cast(5661, <<Target:?GLenum,Attachment:?GLenum,Textarget:?GLenum,Texture:?GLuint,Level:?GLint>>).
3859
4715
 
3860
4716
%% @spec (Target::enum(),Attachment::enum(),Textarget::enum(),Texture::integer(),Level::integer(),Zoffset::integer()) -> ok
3861
4717
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFramebufferTexture3D.xml">external</a> documentation.
 
4718
-spec framebufferTexture3D(enum(),enum(),enum(),integer(),integer(),integer()) -> ok.
3862
4719
framebufferTexture3D(Target,Attachment,Textarget,Texture,Level,Zoffset) ->
3863
 
  wxe_util:cast(5652, <<Target:?GLenum,Attachment:?GLenum,Textarget:?GLenum,Texture:?GLuint,Level:?GLint,Zoffset:?GLint>>).
 
4720
  cast(5662, <<Target:?GLenum,Attachment:?GLenum,Textarget:?GLenum,Texture:?GLuint,Level:?GLint,Zoffset:?GLint>>).
3864
4721
 
3865
4722
%% @spec (Target::enum(),Attachment::enum(),Renderbuffertarget::enum(),Renderbuffer::integer()) -> ok
3866
4723
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFramebufferRenderbuffer.xml">external</a> documentation.
 
4724
-spec framebufferRenderbuffer(enum(),enum(),enum(),integer()) -> ok.
3867
4725
framebufferRenderbuffer(Target,Attachment,Renderbuffertarget,Renderbuffer) ->
3868
 
  wxe_util:cast(5653, <<Target:?GLenum,Attachment:?GLenum,Renderbuffertarget:?GLenum,Renderbuffer:?GLuint>>).
 
4726
  cast(5663, <<Target:?GLenum,Attachment:?GLenum,Renderbuffertarget:?GLenum,Renderbuffer:?GLuint>>).
3869
4727
 
3870
4728
%% @spec (Target::enum(),Attachment::enum(),Pname::enum()) -> integer()
3871
4729
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetFramebufferAttachmentParameter.xml">external</a> documentation.
 
4730
-spec getFramebufferAttachmentParameteriv(enum(),enum(),enum()) -> integer().
3872
4731
getFramebufferAttachmentParameteriv(Target,Attachment,Pname) ->
3873
 
  wxe_util:call(5654, <<Target:?GLenum,Attachment:?GLenum,Pname:?GLenum>>).
 
4732
  call(5664, <<Target:?GLenum,Attachment:?GLenum,Pname:?GLenum>>).
3874
4733
 
3875
4734
%% @spec (Target::enum()) -> ok
3876
4735
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenerateMipmap.xml">external</a> documentation.
 
4736
-spec generateMipmap(enum()) -> ok.
3877
4737
generateMipmap(Target) ->
3878
 
  wxe_util:cast(5655, <<Target:?GLenum>>).
 
4738
  cast(5665, <<Target:?GLenum>>).
3879
4739
 
3880
4740
%% @spec (SrcX0::integer(),SrcY0::integer(),SrcX1::integer(),SrcY1::integer(),DstX0::integer(),DstY0::integer(),DstX1::integer(),DstY1::integer(),Mask::integer(),Filter::enum()) -> ok
3881
4741
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlitFramebuffer.xml">external</a> documentation.
 
4742
-spec blitFramebuffer(integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),enum()) -> ok.
3882
4743
blitFramebuffer(SrcX0,SrcY0,SrcX1,SrcY1,DstX0,DstY0,DstX1,DstY1,Mask,Filter) ->
3883
 
  wxe_util:cast(5656, <<SrcX0:?GLint,SrcY0:?GLint,SrcX1:?GLint,SrcY1:?GLint,DstX0:?GLint,DstY0:?GLint,DstX1:?GLint,DstY1:?GLint,Mask:?GLbitfield,Filter:?GLenum>>).
 
4744
  cast(5666, <<SrcX0:?GLint,SrcY0:?GLint,SrcX1:?GLint,SrcY1:?GLint,DstX0:?GLint,DstY0:?GLint,DstX1:?GLint,DstY1:?GLint,Mask:?GLbitfield,Filter:?GLenum>>).
3884
4745
 
3885
4746
%% @spec (Target::enum(),Samples::integer(),Internalformat::enum(),Width::integer(),Height::integer()) -> ok
3886
4747
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRenderbufferStorageMultisample.xml">external</a> documentation.
 
4748
-spec renderbufferStorageMultisample(enum(),integer(),enum(),integer(),integer()) -> ok.
3887
4749
renderbufferStorageMultisample(Target,Samples,Internalformat,Width,Height) ->
3888
 
  wxe_util:cast(5657, <<Target:?GLenum,Samples:?GLsizei,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei>>).
 
4750
  cast(5667, <<Target:?GLenum,Samples:?GLsizei,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei>>).
3889
4751
 
3890
4752
%% @spec (Target::enum(),Attachment::enum(),Texture::integer(),Level::integer(),Layer::integer()) -> ok
3891
4753
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFramebufferTextureLayer.xml">external</a> documentation.
 
4754
-spec framebufferTextureLayer(enum(),enum(),integer(),integer(),integer()) -> ok.
3892
4755
framebufferTextureLayer(Target,Attachment,Texture,Level,Layer) ->
3893
 
  wxe_util:cast(5658, <<Target:?GLenum,Attachment:?GLenum,Texture:?GLuint,Level:?GLint,Layer:?GLint>>).
3894
 
 
3895
 
%% @spec (Program::integer(),Pname::enum(),Value::integer()) -> ok
3896
 
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramParameterARB.xml">external</a> documentation.
3897
 
programParameteriARB(Program,Pname,Value) ->
3898
 
  wxe_util:cast(5659, <<Program:?GLuint,Pname:?GLenum,Value:?GLint>>).
3899
 
 
3900
 
%% @spec (Target::enum(),Attachment::enum(),Texture::integer(),Level::integer()) -> ok
3901
 
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFramebufferTextureARB.xml">external</a> documentation.
3902
 
framebufferTextureARB(Target,Attachment,Texture,Level) ->
3903
 
  wxe_util:cast(5660, <<Target:?GLenum,Attachment:?GLenum,Texture:?GLuint,Level:?GLint>>).
 
4756
  cast(5668, <<Target:?GLenum,Attachment:?GLenum,Texture:?GLuint,Level:?GLint,Layer:?GLint>>).
3904
4757
 
3905
4758
%% @spec (Target::enum(),Attachment::enum(),Texture::integer(),Level::integer(),Face::enum()) -> ok
3906
4759
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFramebufferTextureFaceARB.xml">external</a> documentation.
 
4760
-spec framebufferTextureFaceARB(enum(),enum(),integer(),integer(),enum()) -> ok.
3907
4761
framebufferTextureFaceARB(Target,Attachment,Texture,Level,Face) ->
3908
 
  wxe_util:cast(5661, <<Target:?GLenum,Attachment:?GLenum,Texture:?GLuint,Level:?GLint,Face:?GLenum>>).
3909
 
 
3910
 
%% @spec (Index::integer(),Divisor::integer()) -> ok
3911
 
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribDivisorARB.xml">external</a> documentation.
3912
 
vertexAttribDivisorARB(Index,Divisor) ->
3913
 
  wxe_util:cast(5662, <<Index:?GLuint,Divisor:?GLuint>>).
 
4762
  cast(5669, <<Target:?GLenum,Attachment:?GLenum,Texture:?GLuint,Level:?GLint,Face:?GLenum>>).
3914
4763
 
3915
4764
%% @spec (Target::enum(),Offset::integer(),Length::integer()) -> ok
3916
4765
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFlushMappedBufferRange.xml">external</a> documentation.
 
4766
-spec flushMappedBufferRange(enum(),integer(),integer()) -> ok.
3917
4767
flushMappedBufferRange(Target,Offset,Length) ->
3918
 
  wxe_util:cast(5663, <<Target:?GLenum,0:32,Offset:?GLintptr,Length:?GLsizeiptr>>).
 
4768
  cast(5670, <<Target:?GLenum,0:32,Offset:?GLintptr,Length:?GLsizeiptr>>).
3919
4769
 
3920
4770
%% @spec (Array::integer()) -> ok
3921
4771
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindVertexArray.xml">external</a> documentation.
 
4772
-spec bindVertexArray(integer()) -> ok.
3922
4773
bindVertexArray(Array) ->
3923
 
  wxe_util:cast(5664, <<Array:?GLuint>>).
 
4774
  cast(5671, <<Array:?GLuint>>).
3924
4775
 
3925
4776
%% @spec (Arrays::[integer()]) -> ok
3926
4777
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteVertexArrays.xml">external</a> documentation.
 
4778
-spec deleteVertexArrays([integer()]) -> ok.
3927
4779
deleteVertexArrays(Arrays) ->
3928
 
  wxe_util:cast(5665, <<(length(Arrays)):?GLuint,
 
4780
  cast(5672, <<(length(Arrays)):?GLuint,
3929
4781
        (<< <<C:?GLuint>> || C <- Arrays>>)/binary,0:(((1+length(Arrays)) rem 2)*32)>>).
3930
4782
 
3931
4783
%% @spec (N::integer()) -> [integer()]
3932
4784
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenVertexArrays.xml">external</a> documentation.
 
4785
-spec genVertexArrays(integer()) -> [integer()].
3933
4786
genVertexArrays(N) ->
3934
 
  wxe_util:call(5666, <<N:?GLsizei>>).
 
4787
  call(5673, <<N:?GLsizei>>).
3935
4788
 
3936
4789
%% @spec (Array::integer()) -> 0|1
3937
4790
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsVertexArray.xml">external</a> documentation.
 
4791
-spec isVertexArray(integer()) -> 0|1.
3938
4792
isVertexArray(Array) ->
3939
 
  wxe_util:call(5667, <<Array:?GLuint>>).
 
4793
  call(5674, <<Array:?GLuint>>).
3940
4794
 
3941
4795
%% @spec (Program::integer(),UniformNames::[string()]) -> [integer()]
3942
4796
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniformIndices.xml">external</a> documentation.
 
4797
-spec getUniformIndices(integer(),[string()]) -> [integer()].
3943
4798
getUniformIndices(Program,UniformNames) ->
3944
4799
 UniformNamesTemp = list_to_binary([[Str|[0]] || Str <- UniformNames ]),
3945
 
  wxe_util:call(5668, <<Program:?GLuint,(length(UniformNames)):?GLuint,(size(UniformNamesTemp)):?GLuint,(UniformNamesTemp)/binary,0:((8-((size(UniformNamesTemp)+0) rem 8)) rem 8)>>).
 
4800
  call(5675, <<Program:?GLuint,(length(UniformNames)):?GLuint,(size(UniformNamesTemp)):?GLuint,(UniformNamesTemp)/binary,0:((8-((size(UniformNamesTemp)+0) rem 8)) rem 8)>>).
3946
4801
 
3947
4802
%% @spec (Program::integer(),UniformIndices::[integer()],Pname::enum()) -> [integer()]
3948
4803
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveUniforms.xml">external</a> documentation.
 
4804
-spec getActiveUniformsiv(integer(),[integer()],enum()) -> [integer()].
3949
4805
getActiveUniformsiv(Program,UniformIndices,Pname) ->
3950
 
  wxe_util:call(5669, <<Program:?GLuint,(length(UniformIndices)):?GLuint,
 
4806
  call(5676, <<Program:?GLuint,(length(UniformIndices)):?GLuint,
3951
4807
        (<< <<C:?GLuint>> || C <- UniformIndices>>)/binary,0:(((length(UniformIndices)) rem 2)*32),Pname:?GLenum>>).
3952
4808
 
3953
4809
%% @spec (Program::integer(),UniformIndex::integer(),BufSize::integer()) -> string()
3954
4810
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveUniformName.xml">external</a> documentation.
 
4811
-spec getActiveUniformName(integer(),integer(),integer()) -> string().
3955
4812
getActiveUniformName(Program,UniformIndex,BufSize) ->
3956
 
  wxe_util:call(5670, <<Program:?GLuint,UniformIndex:?GLuint,BufSize:?GLsizei>>).
 
4813
  call(5677, <<Program:?GLuint,UniformIndex:?GLuint,BufSize:?GLsizei>>).
3957
4814
 
3958
4815
%% @spec (Program::integer(),UniformBlockName::string()) -> integer()
3959
4816
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniformBlockIndex.xml">external</a> documentation.
 
4817
-spec getUniformBlockIndex(integer(),string()) -> integer().
3960
4818
getUniformBlockIndex(Program,UniformBlockName) ->
3961
 
  wxe_util:call(5671, <<Program:?GLuint,(list_to_binary([UniformBlockName|[0]]))/binary,0:((8-((length(UniformBlockName)+ 5) rem 8)) rem 8)>>).
 
4819
  call(5678, <<Program:?GLuint,(list_to_binary([UniformBlockName|[0]]))/binary,0:((8-((length(UniformBlockName)+ 5) rem 8)) rem 8)>>).
3962
4820
 
3963
 
%% @spec (Program::integer(),UniformBlockIndex::integer(),Pname::enum(),Params::wx:wx_mem()) -> ok
 
4821
%% @spec (Program::integer(),UniformBlockIndex::integer(),Pname::enum(),Params::mem()) -> ok
3964
4822
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveUniformBlock.xml">external</a> documentation.
 
4823
-spec getActiveUniformBlockiv(integer(),integer(),enum(),mem()) -> ok.
3965
4824
getActiveUniformBlockiv(Program,UniformBlockIndex,Pname,Params) ->
3966
 
  wxe_util:send_bin(Params#wx_mem.bin),
3967
 
  wxe_util:call(5672, <<Program:?GLuint,UniformBlockIndex:?GLuint,Pname:?GLenum>>).
 
4825
  send_bin(Params),
 
4826
  call(5679, <<Program:?GLuint,UniformBlockIndex:?GLuint,Pname:?GLenum>>).
3968
4827
 
3969
4828
%% @spec (Program::integer(),UniformBlockIndex::integer(),BufSize::integer()) -> string()
3970
4829
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveUniformBlockName.xml">external</a> documentation.
 
4830
-spec getActiveUniformBlockName(integer(),integer(),integer()) -> string().
3971
4831
getActiveUniformBlockName(Program,UniformBlockIndex,BufSize) ->
3972
 
  wxe_util:call(5673, <<Program:?GLuint,UniformBlockIndex:?GLuint,BufSize:?GLsizei>>).
 
4832
  call(5680, <<Program:?GLuint,UniformBlockIndex:?GLuint,BufSize:?GLsizei>>).
3973
4833
 
3974
4834
%% @spec (Program::integer(),UniformBlockIndex::integer(),UniformBlockBinding::integer()) -> ok
3975
4835
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformBlockBinding.xml">external</a> documentation.
 
4836
-spec uniformBlockBinding(integer(),integer(),integer()) -> ok.
3976
4837
uniformBlockBinding(Program,UniformBlockIndex,UniformBlockBinding) ->
3977
 
  wxe_util:cast(5674, <<Program:?GLuint,UniformBlockIndex:?GLuint,UniformBlockBinding:?GLuint>>).
 
4838
  cast(5681, <<Program:?GLuint,UniformBlockIndex:?GLuint,UniformBlockBinding:?GLuint>>).
3978
4839
 
3979
4840
%% @spec (ReadTarget::enum(),WriteTarget::enum(),ReadOffset::integer(),WriteOffset::integer(),Size::integer()) -> ok
3980
4841
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyBufferSubData.xml">external</a> documentation.
 
4842
-spec copyBufferSubData(enum(),enum(),integer(),integer(),integer()) -> ok.
3981
4843
copyBufferSubData(ReadTarget,WriteTarget,ReadOffset,WriteOffset,Size) ->
3982
 
  wxe_util:cast(5675, <<ReadTarget:?GLenum,WriteTarget:?GLenum,ReadOffset:?GLintptr,WriteOffset:?GLintptr,Size:?GLsizeiptr>>).
 
4844
  cast(5682, <<ReadTarget:?GLenum,WriteTarget:?GLenum,ReadOffset:?GLintptr,WriteOffset:?GLintptr,Size:?GLsizeiptr>>).
 
4845
 
 
4846
%% @spec (Mode::enum(),Count::integer(),Type::enum(),Indices::offset()|mem(),Basevertex::integer()) -> ok
 
4847
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawElementsBaseVertex.xml">external</a> documentation.
 
4848
-spec drawElementsBaseVertex(enum(),integer(),enum(),offset()|mem(),integer()) -> ok.
 
4849
drawElementsBaseVertex(Mode,Count,Type,Indices,Basevertex) when  is_integer(Indices) ->
 
4850
  cast(5683, <<Mode:?GLenum,Count:?GLsizei,Type:?GLenum,Indices:?GLuint,Basevertex:?GLint>>);
 
4851
drawElementsBaseVertex(Mode,Count,Type,Indices,Basevertex) ->
 
4852
  send_bin(Indices),
 
4853
  cast(5684, <<Mode:?GLenum,Count:?GLsizei,Type:?GLenum,Basevertex:?GLint>>).
 
4854
 
 
4855
%% @spec (Mode::enum(),Start::integer(),End::integer(),Count::integer(),Type::enum(),Indices::offset()|mem(),Basevertex::integer()) -> ok
 
4856
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawRangeElementsBaseVertex.xml">external</a> documentation.
 
4857
-spec drawRangeElementsBaseVertex(enum(),integer(),integer(),integer(),enum(),offset()|mem(),integer()) -> ok.
 
4858
drawRangeElementsBaseVertex(Mode,Start,End,Count,Type,Indices,Basevertex) when  is_integer(Indices) ->
 
4859
  cast(5685, <<Mode:?GLenum,Start:?GLuint,End:?GLuint,Count:?GLsizei,Type:?GLenum,Indices:?GLuint,Basevertex:?GLint>>);
 
4860
drawRangeElementsBaseVertex(Mode,Start,End,Count,Type,Indices,Basevertex) ->
 
4861
  send_bin(Indices),
 
4862
  cast(5686, <<Mode:?GLenum,Start:?GLuint,End:?GLuint,Count:?GLsizei,Type:?GLenum,Basevertex:?GLint>>).
 
4863
 
 
4864
%% @spec (Mode::enum(),Count::integer(),Type::enum(),Indices::offset()|mem(),Primcount::integer(),Basevertex::integer()) -> ok
 
4865
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawElementsInstancedBaseVertex.xml">external</a> documentation.
 
4866
-spec drawElementsInstancedBaseVertex(enum(),integer(),enum(),offset()|mem(),integer(),integer()) -> ok.
 
4867
drawElementsInstancedBaseVertex(Mode,Count,Type,Indices,Primcount,Basevertex) when  is_integer(Indices) ->
 
4868
  cast(5687, <<Mode:?GLenum,Count:?GLsizei,Type:?GLenum,Indices:?GLuint,Primcount:?GLsizei,Basevertex:?GLint>>);
 
4869
drawElementsInstancedBaseVertex(Mode,Count,Type,Indices,Primcount,Basevertex) ->
 
4870
  send_bin(Indices),
 
4871
  cast(5688, <<Mode:?GLenum,Count:?GLsizei,Type:?GLenum,Primcount:?GLsizei,Basevertex:?GLint>>).
 
4872
 
 
4873
%% @spec (Mode::enum()) -> ok
 
4874
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProvokingVertex.xml">external</a> documentation.
 
4875
-spec provokingVertex(enum()) -> ok.
 
4876
provokingVertex(Mode) ->
 
4877
  cast(5689, <<Mode:?GLenum>>).
 
4878
 
 
4879
%% @spec (Condition::enum(),Flags::integer()) -> integer()
 
4880
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFenceSync.xml">external</a> documentation.
 
4881
-spec fenceSync(enum(),integer()) -> integer().
 
4882
fenceSync(Condition,Flags) ->
 
4883
  call(5690, <<Condition:?GLenum,Flags:?GLbitfield>>).
 
4884
 
 
4885
%% @spec (Sync::integer()) -> 0|1
 
4886
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsSync.xml">external</a> documentation.
 
4887
-spec isSync(integer()) -> 0|1.
 
4888
isSync(Sync) ->
 
4889
  call(5691, <<Sync:?GLsync>>).
 
4890
 
 
4891
%% @spec (Sync::integer()) -> ok
 
4892
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteSync.xml">external</a> documentation.
 
4893
-spec deleteSync(integer()) -> ok.
 
4894
deleteSync(Sync) ->
 
4895
  cast(5692, <<Sync:?GLsync>>).
 
4896
 
 
4897
%% @spec (Sync::integer(),Flags::integer(),Timeout::integer()) -> enum()
 
4898
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClientWaitSync.xml">external</a> documentation.
 
4899
-spec clientWaitSync(integer(),integer(),integer()) -> enum().
 
4900
clientWaitSync(Sync,Flags,Timeout) ->
 
4901
  call(5693, <<Sync:?GLsync,Flags:?GLbitfield,0:32,Timeout:?GLuint64>>).
 
4902
 
 
4903
%% @spec (Sync::integer(),Flags::integer(),Timeout::integer()) -> ok
 
4904
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWaitSync.xml">external</a> documentation.
 
4905
-spec waitSync(integer(),integer(),integer()) -> ok.
 
4906
waitSync(Sync,Flags,Timeout) ->
 
4907
  cast(5694, <<Sync:?GLsync,Flags:?GLbitfield,0:32,Timeout:?GLuint64>>).
 
4908
 
 
4909
%% @spec (Pname::enum()) -> [integer()]
 
4910
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetInteger64v.xml">external</a> documentation.
 
4911
-spec getInteger64v(enum()) -> [integer()].
 
4912
getInteger64v(Pname) ->
 
4913
  call(5695, <<Pname:?GLenum>>).
 
4914
 
 
4915
%% @spec (Sync::integer(),Pname::enum(),BufSize::integer()) -> [integer()]
 
4916
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetSync.xml">external</a> documentation.
 
4917
-spec getSynciv(integer(),enum(),integer()) -> [integer()].
 
4918
getSynciv(Sync,Pname,BufSize) ->
 
4919
  call(5696, <<Sync:?GLsync,Pname:?GLenum,BufSize:?GLsizei>>).
 
4920
 
 
4921
%% @spec (Target::enum(),Samples::integer(),Internalformat::integer(),Width::integer(),Height::integer(),Fixedsamplelocations::0|1) -> ok
 
4922
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexImage2DMultisample.xml">external</a> documentation.
 
4923
-spec texImage2DMultisample(enum(),integer(),integer(),integer(),integer(),0|1) -> ok.
 
4924
texImage2DMultisample(Target,Samples,Internalformat,Width,Height,Fixedsamplelocations) ->
 
4925
  cast(5697, <<Target:?GLenum,Samples:?GLsizei,Internalformat:?GLint,Width:?GLsizei,Height:?GLsizei,Fixedsamplelocations:?GLboolean>>).
 
4926
 
 
4927
%% @spec (Target::enum(),Samples::integer(),Internalformat::integer(),Width::integer(),Height::integer(),Depth::integer(),Fixedsamplelocations::0|1) -> ok
 
4928
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexImage3DMultisample.xml">external</a> documentation.
 
4929
-spec texImage3DMultisample(enum(),integer(),integer(),integer(),integer(),integer(),0|1) -> ok.
 
4930
texImage3DMultisample(Target,Samples,Internalformat,Width,Height,Depth,Fixedsamplelocations) ->
 
4931
  cast(5698, <<Target:?GLenum,Samples:?GLsizei,Internalformat:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Fixedsamplelocations:?GLboolean>>).
 
4932
 
 
4933
%% @spec (Pname::enum(),Index::integer()) -> {float(),float()}
 
4934
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMultisample.xml">external</a> documentation.
 
4935
-spec getMultisamplefv(enum(),integer()) -> {float(),float()}.
 
4936
getMultisamplefv(Pname,Index) ->
 
4937
  call(5699, <<Pname:?GLenum,Index:?GLuint>>).
 
4938
 
 
4939
%% @spec (Index::integer(),Mask::integer()) -> ok
 
4940
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSampleMaski.xml">external</a> documentation.
 
4941
-spec sampleMaski(integer(),integer()) -> ok.
 
4942
sampleMaski(Index,Mask) ->
 
4943
  cast(5700, <<Index:?GLuint,Mask:?GLbitfield>>).
 
4944
 
 
4945
%% @spec (Type::enum(),Name::string(),String::string()) -> ok
 
4946
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glNamedStringARB.xml">external</a> documentation.
 
4947
-spec namedStringARB(enum(),string(),string()) -> ok.
 
4948
namedStringARB(Type,Name,String) ->
 
4949
  cast(5701, <<Type:?GLenum,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 5) rem 8)) rem 8),(list_to_binary([String|[0]]))/binary,0:((8-((length(String)+ 1) rem 8)) rem 8)>>).
 
4950
 
 
4951
%% @spec (Name::string()) -> ok
 
4952
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteNamedStringARB.xml">external</a> documentation.
 
4953
-spec deleteNamedStringARB(string()) -> ok.
 
4954
deleteNamedStringARB(Name) ->
 
4955
  cast(5702, <<(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8)>>).
 
4956
 
 
4957
%% @spec (Shader::integer(),Path::[string()]) -> ok
 
4958
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompileShaderIncludeARB.xml">external</a> documentation.
 
4959
-spec compileShaderIncludeARB(integer(),[string()]) -> ok.
 
4960
compileShaderIncludeARB(Shader,Path) ->
 
4961
 PathTemp = list_to_binary([[Str|[0]] || Str <- Path ]),
 
4962
  cast(5703, <<Shader:?GLuint,(length(Path)):?GLuint,(size(PathTemp)):?GLuint,(PathTemp)/binary,0:((8-((size(PathTemp)+0) rem 8)) rem 8)>>).
 
4963
 
 
4964
%% @spec (Name::string()) -> 0|1
 
4965
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsNamedStringARB.xml">external</a> documentation.
 
4966
-spec isNamedStringARB(string()) -> 0|1.
 
4967
isNamedStringARB(Name) ->
 
4968
  call(5704, <<(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8)>>).
 
4969
 
 
4970
%% @spec (Name::string(),BufSize::integer()) -> string()
 
4971
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetNamedStringARB.xml">external</a> documentation.
 
4972
-spec getNamedStringARB(string(),integer()) -> string().
 
4973
getNamedStringARB(Name,BufSize) ->
 
4974
  call(5705, <<(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8),BufSize:?GLsizei>>).
 
4975
 
 
4976
%% @spec (Name::string(),Pname::enum()) -> integer()
 
4977
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetNamedStringARB.xml">external</a> documentation.
 
4978
-spec getNamedStringivARB(string(),enum()) -> integer().
 
4979
getNamedStringivARB(Name,Pname) ->
 
4980
  call(5706, <<(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8),Pname:?GLenum>>).
 
4981
 
 
4982
%% @spec (Program::integer(),ColorNumber::integer(),Index::integer(),Name::string()) -> ok
 
4983
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindFragDataLocationIndexe.xml">external</a> documentation.
 
4984
-spec bindFragDataLocationIndexed(integer(),integer(),integer(),string()) -> ok.
 
4985
bindFragDataLocationIndexed(Program,ColorNumber,Index,Name) ->
 
4986
  cast(5707, <<Program:?GLuint,ColorNumber:?GLuint,Index:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 5) rem 8)) rem 8)>>).
 
4987
 
 
4988
%% @spec (Program::integer(),Name::string()) -> integer()
 
4989
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetFragDataIndex.xml">external</a> documentation.
 
4990
-spec getFragDataIndex(integer(),string()) -> integer().
 
4991
getFragDataIndex(Program,Name) ->
 
4992
  call(5708, <<Program:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 5) rem 8)) rem 8)>>).
 
4993
 
 
4994
%% @spec (Count::integer()) -> [integer()]
 
4995
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenSamplers.xml">external</a> documentation.
 
4996
-spec genSamplers(integer()) -> [integer()].
 
4997
genSamplers(Count) ->
 
4998
  call(5709, <<Count:?GLsizei>>).
 
4999
 
 
5000
%% @spec (Samplers::[integer()]) -> ok
 
5001
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteSamplers.xml">external</a> documentation.
 
5002
-spec deleteSamplers([integer()]) -> ok.
 
5003
deleteSamplers(Samplers) ->
 
5004
  cast(5710, <<(length(Samplers)):?GLuint,
 
5005
        (<< <<C:?GLuint>> || C <- Samplers>>)/binary,0:(((1+length(Samplers)) rem 2)*32)>>).
 
5006
 
 
5007
%% @spec (Sampler::integer()) -> 0|1
 
5008
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsSampler.xml">external</a> documentation.
 
5009
-spec isSampler(integer()) -> 0|1.
 
5010
isSampler(Sampler) ->
 
5011
  call(5711, <<Sampler:?GLuint>>).
 
5012
 
 
5013
%% @spec (Unit::integer(),Sampler::integer()) -> ok
 
5014
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindSampler.xml">external</a> documentation.
 
5015
-spec bindSampler(integer(),integer()) -> ok.
 
5016
bindSampler(Unit,Sampler) ->
 
5017
  cast(5712, <<Unit:?GLuint,Sampler:?GLuint>>).
 
5018
 
 
5019
%% @spec (Sampler::integer(),Pname::enum(),Param::integer()) -> ok
 
5020
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSamplerParameter.xml">external</a> documentation.
 
5021
-spec samplerParameteri(integer(),enum(),integer()) -> ok.
 
5022
samplerParameteri(Sampler,Pname,Param) ->
 
5023
  cast(5713, <<Sampler:?GLuint,Pname:?GLenum,Param:?GLint>>).
 
5024
 
 
5025
%% @spec (Sampler::integer(),Pname::enum(),Param::[integer()]) -> ok
 
5026
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSamplerParameter.xml">external</a> documentation.
 
5027
-spec samplerParameteriv(integer(),enum(),[integer()]) -> ok.
 
5028
samplerParameteriv(Sampler,Pname,Param) ->
 
5029
  cast(5714, <<Sampler:?GLuint,Pname:?GLenum,(length(Param)):?GLuint,
 
5030
        (<< <<C:?GLint>> || C <- Param>>)/binary,0:(((1+length(Param)) rem 2)*32)>>).
 
5031
 
 
5032
%% @spec (Sampler::integer(),Pname::enum(),Param::float()) -> ok
 
5033
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSamplerParameter.xml">external</a> documentation.
 
5034
-spec samplerParameterf(integer(),enum(),float()) -> ok.
 
5035
samplerParameterf(Sampler,Pname,Param) ->
 
5036
  cast(5715, <<Sampler:?GLuint,Pname:?GLenum,Param:?GLfloat>>).
 
5037
 
 
5038
%% @spec (Sampler::integer(),Pname::enum(),Param::[float()]) -> ok
 
5039
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSamplerParameter.xml">external</a> documentation.
 
5040
-spec samplerParameterfv(integer(),enum(),[float()]) -> ok.
 
5041
samplerParameterfv(Sampler,Pname,Param) ->
 
5042
  cast(5716, <<Sampler:?GLuint,Pname:?GLenum,(length(Param)):?GLuint,
 
5043
        (<< <<C:?GLfloat>> || C <- Param>>)/binary,0:(((1+length(Param)) rem 2)*32)>>).
 
5044
 
 
5045
%% @spec (Sampler::integer(),Pname::enum(),Param::[integer()]) -> ok
 
5046
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSamplerParameterI.xml">external</a> documentation.
 
5047
-spec samplerParameterIiv(integer(),enum(),[integer()]) -> ok.
 
5048
samplerParameterIiv(Sampler,Pname,Param) ->
 
5049
  cast(5717, <<Sampler:?GLuint,Pname:?GLenum,(length(Param)):?GLuint,
 
5050
        (<< <<C:?GLint>> || C <- Param>>)/binary,0:(((1+length(Param)) rem 2)*32)>>).
 
5051
 
 
5052
%% @spec (Sampler::integer(),Pname::enum(),Param::[integer()]) -> ok
 
5053
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSamplerParameterI.xml">external</a> documentation.
 
5054
-spec samplerParameterIuiv(integer(),enum(),[integer()]) -> ok.
 
5055
samplerParameterIuiv(Sampler,Pname,Param) ->
 
5056
  cast(5718, <<Sampler:?GLuint,Pname:?GLenum,(length(Param)):?GLuint,
 
5057
        (<< <<C:?GLuint>> || C <- Param>>)/binary,0:(((1+length(Param)) rem 2)*32)>>).
 
5058
 
 
5059
%% @spec (Sampler::integer(),Pname::enum()) -> [integer()]
 
5060
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetSamplerParameter.xml">external</a> documentation.
 
5061
-spec getSamplerParameteriv(integer(),enum()) -> [integer()].
 
5062
getSamplerParameteriv(Sampler,Pname) ->
 
5063
  call(5719, <<Sampler:?GLuint,Pname:?GLenum>>).
 
5064
 
 
5065
%% @spec (Sampler::integer(),Pname::enum()) -> [integer()]
 
5066
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetSamplerParameterI.xml">external</a> documentation.
 
5067
-spec getSamplerParameterIiv(integer(),enum()) -> [integer()].
 
5068
getSamplerParameterIiv(Sampler,Pname) ->
 
5069
  call(5720, <<Sampler:?GLuint,Pname:?GLenum>>).
 
5070
 
 
5071
%% @spec (Sampler::integer(),Pname::enum()) -> [float()]
 
5072
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetSamplerParameter.xml">external</a> documentation.
 
5073
-spec getSamplerParameterfv(integer(),enum()) -> [float()].
 
5074
getSamplerParameterfv(Sampler,Pname) ->
 
5075
  call(5721, <<Sampler:?GLuint,Pname:?GLenum>>).
 
5076
 
 
5077
%% @spec (Sampler::integer(),Pname::enum()) -> [integer()]
 
5078
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetSamplerParameterI.xml">external</a> documentation.
 
5079
-spec getSamplerParameterIuiv(integer(),enum()) -> [integer()].
 
5080
getSamplerParameterIuiv(Sampler,Pname) ->
 
5081
  call(5722, <<Sampler:?GLuint,Pname:?GLenum>>).
 
5082
 
 
5083
%% @spec (Id::integer(),Target::enum()) -> ok
 
5084
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glQueryCounter.xml">external</a> documentation.
 
5085
-spec queryCounter(integer(),enum()) -> ok.
 
5086
queryCounter(Id,Target) ->
 
5087
  cast(5723, <<Id:?GLuint,Target:?GLenum>>).
 
5088
 
 
5089
%% @spec (Id::integer(),Pname::enum()) -> integer()
 
5090
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetQueryObjecti64v.xml">external</a> documentation.
 
5091
-spec getQueryObjecti64v(integer(),enum()) -> integer().
 
5092
getQueryObjecti64v(Id,Pname) ->
 
5093
  call(5724, <<Id:?GLuint,Pname:?GLenum>>).
 
5094
 
 
5095
%% @spec (Id::integer(),Pname::enum()) -> integer()
 
5096
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetQueryObjectui64v.xml">external</a> documentation.
 
5097
-spec getQueryObjectui64v(integer(),enum()) -> integer().
 
5098
getQueryObjectui64v(Id,Pname) ->
 
5099
  call(5725, <<Id:?GLuint,Pname:?GLenum>>).
 
5100
 
 
5101
%% @spec (Mode::enum(),Indirect::offset()|mem()) -> ok
 
5102
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawArraysIndirect.xml">external</a> documentation.
 
5103
-spec drawArraysIndirect(enum(),offset()|mem()) -> ok.
 
5104
drawArraysIndirect(Mode,Indirect) when  is_integer(Indirect) ->
 
5105
  cast(5726, <<Mode:?GLenum,Indirect:?GLuint>>);
 
5106
drawArraysIndirect(Mode,Indirect) ->
 
5107
  send_bin(Indirect),
 
5108
  cast(5727, <<Mode:?GLenum>>).
 
5109
 
 
5110
%% @spec (Mode::enum(),Type::enum(),Indirect::offset()|mem()) -> ok
 
5111
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawElementsIndirect.xml">external</a> documentation.
 
5112
-spec drawElementsIndirect(enum(),enum(),offset()|mem()) -> ok.
 
5113
drawElementsIndirect(Mode,Type,Indirect) when  is_integer(Indirect) ->
 
5114
  cast(5728, <<Mode:?GLenum,Type:?GLenum,Indirect:?GLuint>>);
 
5115
drawElementsIndirect(Mode,Type,Indirect) ->
 
5116
  send_bin(Indirect),
 
5117
  cast(5729, <<Mode:?GLenum,Type:?GLenum>>).
 
5118
 
 
5119
%% @spec (Location::integer(),X::float()) -> ok
 
5120
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
5121
-spec uniform1d(integer(),float()) -> ok.
 
5122
uniform1d(Location,X) ->
 
5123
  cast(5730, <<Location:?GLint,0:32,X:?GLdouble>>).
 
5124
 
 
5125
%% @spec (Location::integer(),X::float(),Y::float()) -> ok
 
5126
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
5127
-spec uniform2d(integer(),float(),float()) -> ok.
 
5128
uniform2d(Location,X,Y) ->
 
5129
  cast(5731, <<Location:?GLint,0:32,X:?GLdouble,Y:?GLdouble>>).
 
5130
 
 
5131
%% @spec (Location::integer(),X::float(),Y::float(),Z::float()) -> ok
 
5132
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
5133
-spec uniform3d(integer(),float(),float(),float()) -> ok.
 
5134
uniform3d(Location,X,Y,Z) ->
 
5135
  cast(5732, <<Location:?GLint,0:32,X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
 
5136
 
 
5137
%% @spec (Location::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok
 
5138
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
5139
-spec uniform4d(integer(),float(),float(),float(),float()) -> ok.
 
5140
uniform4d(Location,X,Y,Z,W) ->
 
5141
  cast(5733, <<Location:?GLint,0:32,X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
 
5142
 
 
5143
%% @spec (Location::integer(),Value::[float()]) -> ok
 
5144
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
5145
-spec uniform1dv(integer(),[float()]) -> ok.
 
5146
uniform1dv(Location,Value) ->
 
5147
  cast(5734, <<Location:?GLint,0:32,(length(Value)):?GLuint,0:32,
 
5148
        (<< <<C:?GLdouble>> || C <- Value>>)/binary>>).
 
5149
 
 
5150
%% @spec (Location::integer(),Value::[{float(),float()}]) -> ok
 
5151
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
5152
-spec uniform2dv(integer(),[{float(),float()}]) -> ok.
 
5153
uniform2dv(Location,Value) ->
 
5154
  cast(5735, <<Location:?GLint,0:32,(length(Value)):?GLuint,0:32,
 
5155
        (<< <<V1:?GLdouble,V2:?GLdouble>> || {V1,V2} <- Value>>)/binary>>).
 
5156
 
 
5157
%% @spec (Location::integer(),Value::[{float(),float(),float()}]) -> ok
 
5158
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
5159
-spec uniform3dv(integer(),[{float(),float(),float()}]) -> ok.
 
5160
uniform3dv(Location,Value) ->
 
5161
  cast(5736, <<Location:?GLint,0:32,(length(Value)):?GLuint,0:32,
 
5162
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble>> || {V1,V2,V3} <- Value>>)/binary>>).
 
5163
 
 
5164
%% @spec (Location::integer(),Value::[{float(),float(),float(),float()}]) -> ok
 
5165
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
 
5166
-spec uniform4dv(integer(),[{float(),float(),float(),float()}]) -> ok.
 
5167
uniform4dv(Location,Value) ->
 
5168
  cast(5737, <<Location:?GLint,0:32,(length(Value)):?GLuint,0:32,
 
5169
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble>> || {V1,V2,V3,V4} <- Value>>)/binary>>).
 
5170
 
 
5171
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float()}]) -> ok
 
5172
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix.xml">external</a> documentation.
 
5173
-spec uniformMatrix2dv(integer(),0|1,[{float(),float(),float(),float()}]) -> ok.
 
5174
uniformMatrix2dv(Location,Transpose,Value) ->
 
5175
  cast(5738, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,0:32,
 
5176
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble>> || {V1,V2,V3,V4} <- Value>>)/binary>>).
 
5177
 
 
5178
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5179
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix.xml">external</a> documentation.
 
5180
-spec uniformMatrix3dv(integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5181
uniformMatrix3dv(Location,Transpose,Value) ->
 
5182
  cast(5739, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,0:32,
 
5183
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble,V5:?GLdouble,V6:?GLdouble,V7:?GLdouble,V8:?GLdouble,V9:?GLdouble>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9} <- Value>>)/binary>>).
 
5184
 
 
5185
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5186
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix.xml">external</a> documentation.
 
5187
-spec uniformMatrix4dv(integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5188
uniformMatrix4dv(Location,Transpose,Value) ->
 
5189
  cast(5740, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,0:32,
 
5190
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble,V5:?GLdouble,V6:?GLdouble,V7:?GLdouble,V8:?GLdouble,V9:?GLdouble,V10:?GLdouble,V11:?GLdouble,V12:?GLdouble,V13:?GLdouble,V14:?GLdouble,V15:?GLdouble,V16:?GLdouble>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12,V13,V14,V15,V16} <- Value>>)/binary>>).
 
5191
 
 
5192
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float()}]) -> ok
 
5193
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix2x.xml">external</a> documentation.
 
5194
-spec uniformMatrix2x3dv(integer(),0|1,[{float(),float(),float(),float(),float(),float()}]) -> ok.
 
5195
uniformMatrix2x3dv(Location,Transpose,Value) ->
 
5196
  cast(5741, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,0:32,
 
5197
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble,V5:?GLdouble,V6:?GLdouble>> || {V1,V2,V3,V4,V5,V6} <- Value>>)/binary>>).
 
5198
 
 
5199
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5200
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix2x.xml">external</a> documentation.
 
5201
-spec uniformMatrix2x4dv(integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5202
uniformMatrix2x4dv(Location,Transpose,Value) ->
 
5203
  cast(5742, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,0:32,
 
5204
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble,V5:?GLdouble,V6:?GLdouble,V7:?GLdouble,V8:?GLdouble>> || {V1,V2,V3,V4,V5,V6,V7,V8} <- Value>>)/binary>>).
 
5205
 
 
5206
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float()}]) -> ok
 
5207
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix3x.xml">external</a> documentation.
 
5208
-spec uniformMatrix3x2dv(integer(),0|1,[{float(),float(),float(),float(),float(),float()}]) -> ok.
 
5209
uniformMatrix3x2dv(Location,Transpose,Value) ->
 
5210
  cast(5743, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,0:32,
 
5211
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble,V5:?GLdouble,V6:?GLdouble>> || {V1,V2,V3,V4,V5,V6} <- Value>>)/binary>>).
 
5212
 
 
5213
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5214
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix3x.xml">external</a> documentation.
 
5215
-spec uniformMatrix3x4dv(integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5216
uniformMatrix3x4dv(Location,Transpose,Value) ->
 
5217
  cast(5744, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,0:32,
 
5218
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble,V5:?GLdouble,V6:?GLdouble,V7:?GLdouble,V8:?GLdouble,V9:?GLdouble,V10:?GLdouble,V11:?GLdouble,V12:?GLdouble>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12} <- Value>>)/binary>>).
 
5219
 
 
5220
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5221
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix4x.xml">external</a> documentation.
 
5222
-spec uniformMatrix4x2dv(integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5223
uniformMatrix4x2dv(Location,Transpose,Value) ->
 
5224
  cast(5745, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,0:32,
 
5225
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble,V5:?GLdouble,V6:?GLdouble,V7:?GLdouble,V8:?GLdouble>> || {V1,V2,V3,V4,V5,V6,V7,V8} <- Value>>)/binary>>).
 
5226
 
 
5227
%% @spec (Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5228
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix4x.xml">external</a> documentation.
 
5229
-spec uniformMatrix4x3dv(integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5230
uniformMatrix4x3dv(Location,Transpose,Value) ->
 
5231
  cast(5746, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,0:32,
 
5232
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble,V5:?GLdouble,V6:?GLdouble,V7:?GLdouble,V8:?GLdouble,V9:?GLdouble,V10:?GLdouble,V11:?GLdouble,V12:?GLdouble>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12} <- Value>>)/binary>>).
 
5233
 
 
5234
%% @spec (Program::integer(),Location::integer()) -> {float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}
 
5235
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniform.xml">external</a> documentation.
 
5236
-spec getUniformdv(integer(),integer()) -> {float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}.
 
5237
getUniformdv(Program,Location) ->
 
5238
  call(5747, <<Program:?GLuint,Location:?GLint>>).
 
5239
 
 
5240
%% @spec (Program::integer(),Shadertype::enum(),Name::string()) -> integer()
 
5241
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetSubroutineUniformLocation.xml">external</a> documentation.
 
5242
-spec getSubroutineUniformLocation(integer(),enum(),string()) -> integer().
 
5243
getSubroutineUniformLocation(Program,Shadertype,Name) ->
 
5244
  call(5748, <<Program:?GLuint,Shadertype:?GLenum,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8)>>).
 
5245
 
 
5246
%% @spec (Program::integer(),Shadertype::enum(),Name::string()) -> integer()
 
5247
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetSubroutineIndex.xml">external</a> documentation.
 
5248
-spec getSubroutineIndex(integer(),enum(),string()) -> integer().
 
5249
getSubroutineIndex(Program,Shadertype,Name) ->
 
5250
  call(5749, <<Program:?GLuint,Shadertype:?GLenum,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8)>>).
 
5251
 
 
5252
%% @spec (Program::integer(),Shadertype::enum(),Index::integer(),Bufsize::integer()) -> string()
 
5253
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveSubroutineUniformName.xml">external</a> documentation.
 
5254
-spec getActiveSubroutineUniformName(integer(),enum(),integer(),integer()) -> string().
 
5255
getActiveSubroutineUniformName(Program,Shadertype,Index,Bufsize) ->
 
5256
  call(5750, <<Program:?GLuint,Shadertype:?GLenum,Index:?GLuint,Bufsize:?GLsizei>>).
 
5257
 
 
5258
%% @spec (Program::integer(),Shadertype::enum(),Index::integer(),Bufsize::integer()) -> string()
 
5259
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveSubroutineName.xml">external</a> documentation.
 
5260
-spec getActiveSubroutineName(integer(),enum(),integer(),integer()) -> string().
 
5261
getActiveSubroutineName(Program,Shadertype,Index,Bufsize) ->
 
5262
  call(5751, <<Program:?GLuint,Shadertype:?GLenum,Index:?GLuint,Bufsize:?GLsizei>>).
 
5263
 
 
5264
%% @spec (Shadertype::enum(),Indices::[integer()]) -> ok
 
5265
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformSubroutines.xml">external</a> documentation.
 
5266
-spec uniformSubroutinesuiv(enum(),[integer()]) -> ok.
 
5267
uniformSubroutinesuiv(Shadertype,Indices) ->
 
5268
  cast(5752, <<Shadertype:?GLenum,(length(Indices)):?GLuint,
 
5269
        (<< <<C:?GLuint>> || C <- Indices>>)/binary,0:(((length(Indices)) rem 2)*32)>>).
 
5270
 
 
5271
%% @spec (Shadertype::enum(),Location::integer()) -> {integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer()}
 
5272
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniformSubroutine.xml">external</a> documentation.
 
5273
-spec getUniformSubroutineuiv(enum(),integer()) -> {integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer(),integer()}.
 
5274
getUniformSubroutineuiv(Shadertype,Location) ->
 
5275
  call(5753, <<Shadertype:?GLenum,Location:?GLint>>).
 
5276
 
 
5277
%% @spec (Program::integer(),Shadertype::enum(),Pname::enum()) -> integer()
 
5278
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgramStage.xml">external</a> documentation.
 
5279
-spec getProgramStageiv(integer(),enum(),enum()) -> integer().
 
5280
getProgramStageiv(Program,Shadertype,Pname) ->
 
5281
  call(5754, <<Program:?GLuint,Shadertype:?GLenum,Pname:?GLenum>>).
 
5282
 
 
5283
%% @spec (Pname::enum(),Value::integer()) -> ok
 
5284
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPatchParameter.xml">external</a> documentation.
 
5285
-spec patchParameteri(enum(),integer()) -> ok.
 
5286
patchParameteri(Pname,Value) ->
 
5287
  cast(5755, <<Pname:?GLenum,Value:?GLint>>).
 
5288
 
 
5289
%% @spec (Pname::enum(),Values::[float()]) -> ok
 
5290
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPatchParameter.xml">external</a> documentation.
 
5291
-spec patchParameterfv(enum(),[float()]) -> ok.
 
5292
patchParameterfv(Pname,Values) ->
 
5293
  cast(5756, <<Pname:?GLenum,(length(Values)):?GLuint,
 
5294
        (<< <<C:?GLfloat>> || C <- Values>>)/binary,0:(((length(Values)) rem 2)*32)>>).
 
5295
 
 
5296
%% @spec (Target::enum(),Id::integer()) -> ok
 
5297
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindTransformFeedback.xml">external</a> documentation.
 
5298
-spec bindTransformFeedback(enum(),integer()) -> ok.
 
5299
bindTransformFeedback(Target,Id) ->
 
5300
  cast(5757, <<Target:?GLenum,Id:?GLuint>>).
 
5301
 
 
5302
%% @spec (Ids::[integer()]) -> ok
 
5303
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteTransformFeedbacks.xml">external</a> documentation.
 
5304
-spec deleteTransformFeedbacks([integer()]) -> ok.
 
5305
deleteTransformFeedbacks(Ids) ->
 
5306
  cast(5758, <<(length(Ids)):?GLuint,
 
5307
        (<< <<C:?GLuint>> || C <- Ids>>)/binary,0:(((1+length(Ids)) rem 2)*32)>>).
 
5308
 
 
5309
%% @spec (N::integer()) -> [integer()]
 
5310
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenTransformFeedbacks.xml">external</a> documentation.
 
5311
-spec genTransformFeedbacks(integer()) -> [integer()].
 
5312
genTransformFeedbacks(N) ->
 
5313
  call(5759, <<N:?GLsizei>>).
 
5314
 
 
5315
%% @spec (Id::integer()) -> 0|1
 
5316
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsTransformFeedback.xml">external</a> documentation.
 
5317
-spec isTransformFeedback(integer()) -> 0|1.
 
5318
isTransformFeedback(Id) ->
 
5319
  call(5760, <<Id:?GLuint>>).
 
5320
 
 
5321
%% @spec () -> ok
 
5322
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPauseTransformFeedback.xml">external</a> documentation.
 
5323
-spec pauseTransformFeedback() -> ok.
 
5324
pauseTransformFeedback() ->
 
5325
  cast(5761, <<>>).
 
5326
 
 
5327
%% @spec () -> ok
 
5328
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glResumeTransformFeedback.xml">external</a> documentation.
 
5329
-spec resumeTransformFeedback() -> ok.
 
5330
resumeTransformFeedback() ->
 
5331
  cast(5762, <<>>).
 
5332
 
 
5333
%% @spec (Mode::enum(),Id::integer()) -> ok
 
5334
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawTransformFeedback.xml">external</a> documentation.
 
5335
-spec drawTransformFeedback(enum(),integer()) -> ok.
 
5336
drawTransformFeedback(Mode,Id) ->
 
5337
  cast(5763, <<Mode:?GLenum,Id:?GLuint>>).
 
5338
 
 
5339
%% @spec (Mode::enum(),Id::integer(),Stream::integer()) -> ok
 
5340
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawTransformFeedbackStream.xml">external</a> documentation.
 
5341
-spec drawTransformFeedbackStream(enum(),integer(),integer()) -> ok.
 
5342
drawTransformFeedbackStream(Mode,Id,Stream) ->
 
5343
  cast(5764, <<Mode:?GLenum,Id:?GLuint,Stream:?GLuint>>).
 
5344
 
 
5345
%% @spec (Target::enum(),Index::integer(),Id::integer()) -> ok
 
5346
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBeginQueryIndexe.xml">external</a> documentation.
 
5347
-spec beginQueryIndexed(enum(),integer(),integer()) -> ok.
 
5348
beginQueryIndexed(Target,Index,Id) ->
 
5349
  cast(5765, <<Target:?GLenum,Index:?GLuint,Id:?GLuint>>).
 
5350
 
 
5351
%% @spec (Target::enum(),Index::integer()) -> ok
 
5352
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEndQueryIndexe.xml">external</a> documentation.
 
5353
-spec endQueryIndexed(enum(),integer()) -> ok.
 
5354
endQueryIndexed(Target,Index) ->
 
5355
  cast(5766, <<Target:?GLenum,Index:?GLuint>>).
 
5356
 
 
5357
%% @spec (Target::enum(),Index::integer(),Pname::enum()) -> integer()
 
5358
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetQueryIndexed.xml">external</a> documentation.
 
5359
-spec getQueryIndexediv(enum(),integer(),enum()) -> integer().
 
5360
getQueryIndexediv(Target,Index,Pname) ->
 
5361
  call(5767, <<Target:?GLenum,Index:?GLuint,Pname:?GLenum>>).
 
5362
 
 
5363
%% @spec () -> ok
 
5364
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glReleaseShaderCompiler.xml">external</a> documentation.
 
5365
-spec releaseShaderCompiler() -> ok.
 
5366
releaseShaderCompiler() ->
 
5367
  cast(5768, <<>>).
 
5368
 
 
5369
%% @spec (Shaders::[integer()],Binaryformat::enum(),Binary::binary()) -> ok
 
5370
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glShaderBinary.xml">external</a> documentation.
 
5371
-spec shaderBinary([integer()],enum(),binary()) -> ok.
 
5372
shaderBinary(Shaders,Binaryformat,Binary) ->
 
5373
  send_bin(Binary),
 
5374
  cast(5769, <<(length(Shaders)):?GLuint,
 
5375
        (<< <<C:?GLuint>> || C <- Shaders>>)/binary,0:(((1+length(Shaders)) rem 2)*32),Binaryformat:?GLenum>>).
 
5376
 
 
5377
%% @spec (Shadertype::enum(),Precisiontype::enum()) -> {Range::{integer(),integer()},Precision::integer()}
 
5378
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetShaderPrecisionFormat.xml">external</a> documentation.
 
5379
-spec getShaderPrecisionFormat(enum(),enum()) -> {{integer(),integer()},integer()}.
 
5380
getShaderPrecisionFormat(Shadertype,Precisiontype) ->
 
5381
  call(5770, <<Shadertype:?GLenum,Precisiontype:?GLenum>>).
 
5382
 
 
5383
%% @spec (N::clamp(),F::clamp()) -> ok
 
5384
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDepthRange.xml">external</a> documentation.
 
5385
-spec depthRangef(clamp(),clamp()) -> ok.
 
5386
depthRangef(N,F) ->
 
5387
  cast(5771, <<N:?GLclampf,F:?GLclampf>>).
 
5388
 
 
5389
%% @spec (D::clamp()) -> ok
 
5390
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearDepthf.xml">external</a> documentation.
 
5391
-spec clearDepthf(clamp()) -> ok.
 
5392
clearDepthf(D) ->
 
5393
  cast(5772, <<D:?GLclampf>>).
 
5394
 
 
5395
%% @spec (Program::integer(),BufSize::integer()) -> {BinaryFormat::enum(),Binary::binary()}
 
5396
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgramBinary.xml">external</a> documentation.
 
5397
-spec getProgramBinary(integer(),integer()) -> {enum(),binary()}.
 
5398
getProgramBinary(Program,BufSize) ->
 
5399
  call(5773, <<Program:?GLuint,BufSize:?GLsizei>>).
 
5400
 
 
5401
%% @spec (Program::integer(),BinaryFormat::enum(),Binary::binary()) -> ok
 
5402
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramBinary.xml">external</a> documentation.
 
5403
-spec programBinary(integer(),enum(),binary()) -> ok.
 
5404
programBinary(Program,BinaryFormat,Binary) ->
 
5405
  send_bin(Binary),
 
5406
  cast(5774, <<Program:?GLuint,BinaryFormat:?GLenum>>).
 
5407
 
 
5408
%% @spec (Program::integer(),Pname::enum(),Value::integer()) -> ok
 
5409
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramParameter.xml">external</a> documentation.
 
5410
-spec programParameteri(integer(),enum(),integer()) -> ok.
 
5411
programParameteri(Program,Pname,Value) ->
 
5412
  cast(5775, <<Program:?GLuint,Pname:?GLenum,Value:?GLint>>).
 
5413
 
 
5414
%% @spec (Pipeline::integer(),Stages::integer(),Program::integer()) -> ok
 
5415
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUseProgramStages.xml">external</a> documentation.
 
5416
-spec useProgramStages(integer(),integer(),integer()) -> ok.
 
5417
useProgramStages(Pipeline,Stages,Program) ->
 
5418
  cast(5776, <<Pipeline:?GLuint,Stages:?GLbitfield,Program:?GLuint>>).
 
5419
 
 
5420
%% @spec (Pipeline::integer(),Program::integer()) -> ok
 
5421
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glActiveShaderProgram.xml">external</a> documentation.
 
5422
-spec activeShaderProgram(integer(),integer()) -> ok.
 
5423
activeShaderProgram(Pipeline,Program) ->
 
5424
  cast(5777, <<Pipeline:?GLuint,Program:?GLuint>>).
 
5425
 
 
5426
%% @spec (Type::enum(),Strings::[string()]) -> integer()
 
5427
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCreateShaderProgramv.xml">external</a> documentation.
 
5428
-spec createShaderProgramv(enum(),[string()]) -> integer().
 
5429
createShaderProgramv(Type,Strings) ->
 
5430
 StringsTemp = list_to_binary([[Str|[0]] || Str <- Strings ]),
 
5431
  call(5778, <<Type:?GLenum,(length(Strings)):?GLuint,(size(StringsTemp)):?GLuint,(StringsTemp)/binary,0:((8-((size(StringsTemp)+0) rem 8)) rem 8)>>).
 
5432
 
 
5433
%% @spec (Pipeline::integer()) -> ok
 
5434
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindProgramPipeline.xml">external</a> documentation.
 
5435
-spec bindProgramPipeline(integer()) -> ok.
 
5436
bindProgramPipeline(Pipeline) ->
 
5437
  cast(5779, <<Pipeline:?GLuint>>).
 
5438
 
 
5439
%% @spec (Pipelines::[integer()]) -> ok
 
5440
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteProgramPipelines.xml">external</a> documentation.
 
5441
-spec deleteProgramPipelines([integer()]) -> ok.
 
5442
deleteProgramPipelines(Pipelines) ->
 
5443
  cast(5780, <<(length(Pipelines)):?GLuint,
 
5444
        (<< <<C:?GLuint>> || C <- Pipelines>>)/binary,0:(((1+length(Pipelines)) rem 2)*32)>>).
 
5445
 
 
5446
%% @spec (N::integer()) -> [integer()]
 
5447
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenProgramPipelines.xml">external</a> documentation.
 
5448
-spec genProgramPipelines(integer()) -> [integer()].
 
5449
genProgramPipelines(N) ->
 
5450
  call(5781, <<N:?GLsizei>>).
 
5451
 
 
5452
%% @spec (Pipeline::integer()) -> 0|1
 
5453
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsProgramPipeline.xml">external</a> documentation.
 
5454
-spec isProgramPipeline(integer()) -> 0|1.
 
5455
isProgramPipeline(Pipeline) ->
 
5456
  call(5782, <<Pipeline:?GLuint>>).
 
5457
 
 
5458
%% @spec (Pipeline::integer(),Pname::enum()) -> integer()
 
5459
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgramPipeline.xml">external</a> documentation.
 
5460
-spec getProgramPipelineiv(integer(),enum()) -> integer().
 
5461
getProgramPipelineiv(Pipeline,Pname) ->
 
5462
  call(5783, <<Pipeline:?GLuint,Pname:?GLenum>>).
 
5463
 
 
5464
%% @spec (Program::integer(),Location::integer(),V0::integer()) -> ok
 
5465
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5466
-spec programUniform1i(integer(),integer(),integer()) -> ok.
 
5467
programUniform1i(Program,Location,V0) ->
 
5468
  cast(5784, <<Program:?GLuint,Location:?GLint,V0:?GLint>>).
 
5469
 
 
5470
%% @spec (Program::integer(),Location::integer(),Value::[integer()]) -> ok
 
5471
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5472
-spec programUniform1iv(integer(),integer(),[integer()]) -> ok.
 
5473
programUniform1iv(Program,Location,Value) ->
 
5474
  cast(5785, <<Program:?GLuint,Location:?GLint,(length(Value)):?GLuint,
 
5475
        (<< <<C:?GLint>> || C <- Value>>)/binary,0:(((1+length(Value)) rem 2)*32)>>).
 
5476
 
 
5477
%% @spec (Program::integer(),Location::integer(),V0::float()) -> ok
 
5478
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5479
-spec programUniform1f(integer(),integer(),float()) -> ok.
 
5480
programUniform1f(Program,Location,V0) ->
 
5481
  cast(5786, <<Program:?GLuint,Location:?GLint,V0:?GLfloat>>).
 
5482
 
 
5483
%% @spec (Program::integer(),Location::integer(),Value::[float()]) -> ok
 
5484
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5485
-spec programUniform1fv(integer(),integer(),[float()]) -> ok.
 
5486
programUniform1fv(Program,Location,Value) ->
 
5487
  cast(5787, <<Program:?GLuint,Location:?GLint,(length(Value)):?GLuint,
 
5488
        (<< <<C:?GLfloat>> || C <- Value>>)/binary,0:(((1+length(Value)) rem 2)*32)>>).
 
5489
 
 
5490
%% @spec (Program::integer(),Location::integer(),V0::float()) -> ok
 
5491
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5492
-spec programUniform1d(integer(),integer(),float()) -> ok.
 
5493
programUniform1d(Program,Location,V0) ->
 
5494
  cast(5788, <<Program:?GLuint,Location:?GLint,V0:?GLdouble>>).
 
5495
 
 
5496
%% @spec (Program::integer(),Location::integer(),Value::[float()]) -> ok
 
5497
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5498
-spec programUniform1dv(integer(),integer(),[float()]) -> ok.
 
5499
programUniform1dv(Program,Location,Value) ->
 
5500
  cast(5789, <<Program:?GLuint,Location:?GLint,(length(Value)):?GLuint,0:32,
 
5501
        (<< <<C:?GLdouble>> || C <- Value>>)/binary>>).
 
5502
 
 
5503
%% @spec (Program::integer(),Location::integer(),V0::integer()) -> ok
 
5504
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5505
-spec programUniform1ui(integer(),integer(),integer()) -> ok.
 
5506
programUniform1ui(Program,Location,V0) ->
 
5507
  cast(5790, <<Program:?GLuint,Location:?GLint,V0:?GLuint>>).
 
5508
 
 
5509
%% @spec (Program::integer(),Location::integer(),Value::[integer()]) -> ok
 
5510
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5511
-spec programUniform1uiv(integer(),integer(),[integer()]) -> ok.
 
5512
programUniform1uiv(Program,Location,Value) ->
 
5513
  cast(5791, <<Program:?GLuint,Location:?GLint,(length(Value)):?GLuint,
 
5514
        (<< <<C:?GLuint>> || C <- Value>>)/binary,0:(((1+length(Value)) rem 2)*32)>>).
 
5515
 
 
5516
%% @spec (Program::integer(),Location::integer(),V0::integer(),V1::integer()) -> ok
 
5517
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5518
-spec programUniform2i(integer(),integer(),integer(),integer()) -> ok.
 
5519
programUniform2i(Program,Location,V0,V1) ->
 
5520
  cast(5792, <<Program:?GLuint,Location:?GLint,V0:?GLint,V1:?GLint>>).
 
5521
 
 
5522
%% @spec (Program::integer(),Location::integer(),Value::[{integer(),integer()}]) -> ok
 
5523
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5524
-spec programUniform2iv(integer(),integer(),[{integer(),integer()}]) -> ok.
 
5525
programUniform2iv(Program,Location,Value) ->
 
5526
  cast(5793, <<Program:?GLuint,Location:?GLint,(length(Value)):?GLuint,
 
5527
        (<< <<V1:?GLint,V2:?GLint>> || {V1,V2} <- Value>>)/binary>>).
 
5528
 
 
5529
%% @spec (Program::integer(),Location::integer(),V0::float(),V1::float()) -> ok
 
5530
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5531
-spec programUniform2f(integer(),integer(),float(),float()) -> ok.
 
5532
programUniform2f(Program,Location,V0,V1) ->
 
5533
  cast(5794, <<Program:?GLuint,Location:?GLint,V0:?GLfloat,V1:?GLfloat>>).
 
5534
 
 
5535
%% @spec (Program::integer(),Location::integer(),Value::[{float(),float()}]) -> ok
 
5536
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5537
-spec programUniform2fv(integer(),integer(),[{float(),float()}]) -> ok.
 
5538
programUniform2fv(Program,Location,Value) ->
 
5539
  cast(5795, <<Program:?GLuint,Location:?GLint,(length(Value)):?GLuint,
 
5540
        (<< <<V1:?GLfloat,V2:?GLfloat>> || {V1,V2} <- Value>>)/binary>>).
 
5541
 
 
5542
%% @spec (Program::integer(),Location::integer(),V0::float(),V1::float()) -> ok
 
5543
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5544
-spec programUniform2d(integer(),integer(),float(),float()) -> ok.
 
5545
programUniform2d(Program,Location,V0,V1) ->
 
5546
  cast(5796, <<Program:?GLuint,Location:?GLint,V0:?GLdouble,V1:?GLdouble>>).
 
5547
 
 
5548
%% @spec (Program::integer(),Location::integer(),Value::[{float(),float()}]) -> ok
 
5549
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5550
-spec programUniform2dv(integer(),integer(),[{float(),float()}]) -> ok.
 
5551
programUniform2dv(Program,Location,Value) ->
 
5552
  cast(5797, <<Program:?GLuint,Location:?GLint,(length(Value)):?GLuint,0:32,
 
5553
        (<< <<V1:?GLdouble,V2:?GLdouble>> || {V1,V2} <- Value>>)/binary>>).
 
5554
 
 
5555
%% @spec (Program::integer(),Location::integer(),V0::integer(),V1::integer()) -> ok
 
5556
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5557
-spec programUniform2ui(integer(),integer(),integer(),integer()) -> ok.
 
5558
programUniform2ui(Program,Location,V0,V1) ->
 
5559
  cast(5798, <<Program:?GLuint,Location:?GLint,V0:?GLuint,V1:?GLuint>>).
 
5560
 
 
5561
%% @spec (Program::integer(),Location::integer(),Value::[{integer(),integer()}]) -> ok
 
5562
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5563
-spec programUniform2uiv(integer(),integer(),[{integer(),integer()}]) -> ok.
 
5564
programUniform2uiv(Program,Location,Value) ->
 
5565
  cast(5799, <<Program:?GLuint,Location:?GLint,(length(Value)):?GLuint,
 
5566
        (<< <<V1:?GLuint,V2:?GLuint>> || {V1,V2} <- Value>>)/binary>>).
 
5567
 
 
5568
%% @spec (Program::integer(),Location::integer(),V0::integer(),V1::integer(),V2::integer()) -> ok
 
5569
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5570
-spec programUniform3i(integer(),integer(),integer(),integer(),integer()) -> ok.
 
5571
programUniform3i(Program,Location,V0,V1,V2) ->
 
5572
  cast(5800, <<Program:?GLuint,Location:?GLint,V0:?GLint,V1:?GLint,V2:?GLint>>).
 
5573
 
 
5574
%% @spec (Program::integer(),Location::integer(),Value::[{integer(),integer(),integer()}]) -> ok
 
5575
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5576
-spec programUniform3iv(integer(),integer(),[{integer(),integer(),integer()}]) -> ok.
 
5577
programUniform3iv(Program,Location,Value) ->
 
5578
  cast(5801, <<Program:?GLuint,Location:?GLint,(length(Value)):?GLuint,
 
5579
        (<< <<V1:?GLint,V2:?GLint,V3:?GLint>> || {V1,V2,V3} <- Value>>)/binary>>).
 
5580
 
 
5581
%% @spec (Program::integer(),Location::integer(),V0::float(),V1::float(),V2::float()) -> ok
 
5582
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5583
-spec programUniform3f(integer(),integer(),float(),float(),float()) -> ok.
 
5584
programUniform3f(Program,Location,V0,V1,V2) ->
 
5585
  cast(5802, <<Program:?GLuint,Location:?GLint,V0:?GLfloat,V1:?GLfloat,V2:?GLfloat>>).
 
5586
 
 
5587
%% @spec (Program::integer(),Location::integer(),Value::[{float(),float(),float()}]) -> ok
 
5588
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5589
-spec programUniform3fv(integer(),integer(),[{float(),float(),float()}]) -> ok.
 
5590
programUniform3fv(Program,Location,Value) ->
 
5591
  cast(5803, <<Program:?GLuint,Location:?GLint,(length(Value)):?GLuint,
 
5592
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat>> || {V1,V2,V3} <- Value>>)/binary>>).
 
5593
 
 
5594
%% @spec (Program::integer(),Location::integer(),V0::float(),V1::float(),V2::float()) -> ok
 
5595
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5596
-spec programUniform3d(integer(),integer(),float(),float(),float()) -> ok.
 
5597
programUniform3d(Program,Location,V0,V1,V2) ->
 
5598
  cast(5804, <<Program:?GLuint,Location:?GLint,V0:?GLdouble,V1:?GLdouble,V2:?GLdouble>>).
 
5599
 
 
5600
%% @spec (Program::integer(),Location::integer(),Value::[{float(),float(),float()}]) -> ok
 
5601
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5602
-spec programUniform3dv(integer(),integer(),[{float(),float(),float()}]) -> ok.
 
5603
programUniform3dv(Program,Location,Value) ->
 
5604
  cast(5805, <<Program:?GLuint,Location:?GLint,(length(Value)):?GLuint,0:32,
 
5605
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble>> || {V1,V2,V3} <- Value>>)/binary>>).
 
5606
 
 
5607
%% @spec (Program::integer(),Location::integer(),V0::integer(),V1::integer(),V2::integer()) -> ok
 
5608
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5609
-spec programUniform3ui(integer(),integer(),integer(),integer(),integer()) -> ok.
 
5610
programUniform3ui(Program,Location,V0,V1,V2) ->
 
5611
  cast(5806, <<Program:?GLuint,Location:?GLint,V0:?GLuint,V1:?GLuint,V2:?GLuint>>).
 
5612
 
 
5613
%% @spec (Program::integer(),Location::integer(),Value::[{integer(),integer(),integer()}]) -> ok
 
5614
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5615
-spec programUniform3uiv(integer(),integer(),[{integer(),integer(),integer()}]) -> ok.
 
5616
programUniform3uiv(Program,Location,Value) ->
 
5617
  cast(5807, <<Program:?GLuint,Location:?GLint,(length(Value)):?GLuint,
 
5618
        (<< <<V1:?GLuint,V2:?GLuint,V3:?GLuint>> || {V1,V2,V3} <- Value>>)/binary>>).
 
5619
 
 
5620
%% @spec (Program::integer(),Location::integer(),V0::integer(),V1::integer(),V2::integer(),V3::integer()) -> ok
 
5621
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5622
-spec programUniform4i(integer(),integer(),integer(),integer(),integer(),integer()) -> ok.
 
5623
programUniform4i(Program,Location,V0,V1,V2,V3) ->
 
5624
  cast(5808, <<Program:?GLuint,Location:?GLint,V0:?GLint,V1:?GLint,V2:?GLint,V3:?GLint>>).
 
5625
 
 
5626
%% @spec (Program::integer(),Location::integer(),Value::[{integer(),integer(),integer(),integer()}]) -> ok
 
5627
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5628
-spec programUniform4iv(integer(),integer(),[{integer(),integer(),integer(),integer()}]) -> ok.
 
5629
programUniform4iv(Program,Location,Value) ->
 
5630
  cast(5809, <<Program:?GLuint,Location:?GLint,(length(Value)):?GLuint,
 
5631
        (<< <<V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint>> || {V1,V2,V3,V4} <- Value>>)/binary>>).
 
5632
 
 
5633
%% @spec (Program::integer(),Location::integer(),V0::float(),V1::float(),V2::float(),V3::float()) -> ok
 
5634
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5635
-spec programUniform4f(integer(),integer(),float(),float(),float(),float()) -> ok.
 
5636
programUniform4f(Program,Location,V0,V1,V2,V3) ->
 
5637
  cast(5810, <<Program:?GLuint,Location:?GLint,V0:?GLfloat,V1:?GLfloat,V2:?GLfloat,V3:?GLfloat>>).
 
5638
 
 
5639
%% @spec (Program::integer(),Location::integer(),Value::[{float(),float(),float(),float()}]) -> ok
 
5640
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5641
-spec programUniform4fv(integer(),integer(),[{float(),float(),float(),float()}]) -> ok.
 
5642
programUniform4fv(Program,Location,Value) ->
 
5643
  cast(5811, <<Program:?GLuint,Location:?GLint,(length(Value)):?GLuint,
 
5644
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat>> || {V1,V2,V3,V4} <- Value>>)/binary>>).
 
5645
 
 
5646
%% @spec (Program::integer(),Location::integer(),V0::float(),V1::float(),V2::float(),V3::float()) -> ok
 
5647
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5648
-spec programUniform4d(integer(),integer(),float(),float(),float(),float()) -> ok.
 
5649
programUniform4d(Program,Location,V0,V1,V2,V3) ->
 
5650
  cast(5812, <<Program:?GLuint,Location:?GLint,V0:?GLdouble,V1:?GLdouble,V2:?GLdouble,V3:?GLdouble>>).
 
5651
 
 
5652
%% @spec (Program::integer(),Location::integer(),Value::[{float(),float(),float(),float()}]) -> ok
 
5653
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5654
-spec programUniform4dv(integer(),integer(),[{float(),float(),float(),float()}]) -> ok.
 
5655
programUniform4dv(Program,Location,Value) ->
 
5656
  cast(5813, <<Program:?GLuint,Location:?GLint,(length(Value)):?GLuint,0:32,
 
5657
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble>> || {V1,V2,V3,V4} <- Value>>)/binary>>).
 
5658
 
 
5659
%% @spec (Program::integer(),Location::integer(),V0::integer(),V1::integer(),V2::integer(),V3::integer()) -> ok
 
5660
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5661
-spec programUniform4ui(integer(),integer(),integer(),integer(),integer(),integer()) -> ok.
 
5662
programUniform4ui(Program,Location,V0,V1,V2,V3) ->
 
5663
  cast(5814, <<Program:?GLuint,Location:?GLint,V0:?GLuint,V1:?GLuint,V2:?GLuint,V3:?GLuint>>).
 
5664
 
 
5665
%% @spec (Program::integer(),Location::integer(),Value::[{integer(),integer(),integer(),integer()}]) -> ok
 
5666
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniform.xml">external</a> documentation.
 
5667
-spec programUniform4uiv(integer(),integer(),[{integer(),integer(),integer(),integer()}]) -> ok.
 
5668
programUniform4uiv(Program,Location,Value) ->
 
5669
  cast(5815, <<Program:?GLuint,Location:?GLint,(length(Value)):?GLuint,
 
5670
        (<< <<V1:?GLuint,V2:?GLuint,V3:?GLuint,V4:?GLuint>> || {V1,V2,V3,V4} <- Value>>)/binary>>).
 
5671
 
 
5672
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float()}]) -> ok
 
5673
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix.xml">external</a> documentation.
 
5674
-spec programUniformMatrix2fv(integer(),integer(),0|1,[{float(),float(),float(),float()}]) -> ok.
 
5675
programUniformMatrix2fv(Program,Location,Transpose,Value) ->
 
5676
  cast(5816, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
5677
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat>> || {V1,V2,V3,V4} <- Value>>)/binary>>).
 
5678
 
 
5679
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5680
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix.xml">external</a> documentation.
 
5681
-spec programUniformMatrix3fv(integer(),integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5682
programUniformMatrix3fv(Program,Location,Transpose,Value) ->
 
5683
  cast(5817, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
5684
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat,V9:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9} <- Value>>)/binary>>).
 
5685
 
 
5686
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5687
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix.xml">external</a> documentation.
 
5688
-spec programUniformMatrix4fv(integer(),integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5689
programUniformMatrix4fv(Program,Location,Transpose,Value) ->
 
5690
  cast(5818, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
5691
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat,V9:?GLfloat,V10:?GLfloat,V11:?GLfloat,V12:?GLfloat,V13:?GLfloat,V14:?GLfloat,V15:?GLfloat,V16:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12,V13,V14,V15,V16} <- Value>>)/binary>>).
 
5692
 
 
5693
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float()}]) -> ok
 
5694
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix.xml">external</a> documentation.
 
5695
-spec programUniformMatrix2dv(integer(),integer(),0|1,[{float(),float(),float(),float()}]) -> ok.
 
5696
programUniformMatrix2dv(Program,Location,Transpose,Value) ->
 
5697
  cast(5819, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:56,(length(Value)):?GLuint,0:32,
 
5698
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble>> || {V1,V2,V3,V4} <- Value>>)/binary>>).
 
5699
 
 
5700
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5701
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix.xml">external</a> documentation.
 
5702
-spec programUniformMatrix3dv(integer(),integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5703
programUniformMatrix3dv(Program,Location,Transpose,Value) ->
 
5704
  cast(5820, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:56,(length(Value)):?GLuint,0:32,
 
5705
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble,V5:?GLdouble,V6:?GLdouble,V7:?GLdouble,V8:?GLdouble,V9:?GLdouble>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9} <- Value>>)/binary>>).
 
5706
 
 
5707
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5708
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix.xml">external</a> documentation.
 
5709
-spec programUniformMatrix4dv(integer(),integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5710
programUniformMatrix4dv(Program,Location,Transpose,Value) ->
 
5711
  cast(5821, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:56,(length(Value)):?GLuint,0:32,
 
5712
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble,V5:?GLdouble,V6:?GLdouble,V7:?GLdouble,V8:?GLdouble,V9:?GLdouble,V10:?GLdouble,V11:?GLdouble,V12:?GLdouble,V13:?GLdouble,V14:?GLdouble,V15:?GLdouble,V16:?GLdouble>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12,V13,V14,V15,V16} <- Value>>)/binary>>).
 
5713
 
 
5714
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float()}]) -> ok
 
5715
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix2x.xml">external</a> documentation.
 
5716
-spec programUniformMatrix2x3fv(integer(),integer(),0|1,[{float(),float(),float(),float(),float(),float()}]) -> ok.
 
5717
programUniformMatrix2x3fv(Program,Location,Transpose,Value) ->
 
5718
  cast(5822, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
5719
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat>> || {V1,V2,V3,V4,V5,V6} <- Value>>)/binary>>).
 
5720
 
 
5721
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float()}]) -> ok
 
5722
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix3x.xml">external</a> documentation.
 
5723
-spec programUniformMatrix3x2fv(integer(),integer(),0|1,[{float(),float(),float(),float(),float(),float()}]) -> ok.
 
5724
programUniformMatrix3x2fv(Program,Location,Transpose,Value) ->
 
5725
  cast(5823, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
5726
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat>> || {V1,V2,V3,V4,V5,V6} <- Value>>)/binary>>).
 
5727
 
 
5728
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5729
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix2x.xml">external</a> documentation.
 
5730
-spec programUniformMatrix2x4fv(integer(),integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5731
programUniformMatrix2x4fv(Program,Location,Transpose,Value) ->
 
5732
  cast(5824, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
5733
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8} <- Value>>)/binary>>).
 
5734
 
 
5735
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5736
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix4x.xml">external</a> documentation.
 
5737
-spec programUniformMatrix4x2fv(integer(),integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5738
programUniformMatrix4x2fv(Program,Location,Transpose,Value) ->
 
5739
  cast(5825, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
5740
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8} <- Value>>)/binary>>).
 
5741
 
 
5742
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5743
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix3x.xml">external</a> documentation.
 
5744
-spec programUniformMatrix3x4fv(integer(),integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5745
programUniformMatrix3x4fv(Program,Location,Transpose,Value) ->
 
5746
  cast(5826, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
5747
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat,V9:?GLfloat,V10:?GLfloat,V11:?GLfloat,V12:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12} <- Value>>)/binary>>).
 
5748
 
 
5749
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5750
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix4x.xml">external</a> documentation.
 
5751
-spec programUniformMatrix4x3fv(integer(),integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5752
programUniformMatrix4x3fv(Program,Location,Transpose,Value) ->
 
5753
  cast(5827, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
 
5754
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat,V9:?GLfloat,V10:?GLfloat,V11:?GLfloat,V12:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12} <- Value>>)/binary>>).
 
5755
 
 
5756
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float()}]) -> ok
 
5757
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix2x.xml">external</a> documentation.
 
5758
-spec programUniformMatrix2x3dv(integer(),integer(),0|1,[{float(),float(),float(),float(),float(),float()}]) -> ok.
 
5759
programUniformMatrix2x3dv(Program,Location,Transpose,Value) ->
 
5760
  cast(5828, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:56,(length(Value)):?GLuint,0:32,
 
5761
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble,V5:?GLdouble,V6:?GLdouble>> || {V1,V2,V3,V4,V5,V6} <- Value>>)/binary>>).
 
5762
 
 
5763
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float()}]) -> ok
 
5764
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix3x.xml">external</a> documentation.
 
5765
-spec programUniformMatrix3x2dv(integer(),integer(),0|1,[{float(),float(),float(),float(),float(),float()}]) -> ok.
 
5766
programUniformMatrix3x2dv(Program,Location,Transpose,Value) ->
 
5767
  cast(5829, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:56,(length(Value)):?GLuint,0:32,
 
5768
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble,V5:?GLdouble,V6:?GLdouble>> || {V1,V2,V3,V4,V5,V6} <- Value>>)/binary>>).
 
5769
 
 
5770
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5771
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix2x.xml">external</a> documentation.
 
5772
-spec programUniformMatrix2x4dv(integer(),integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5773
programUniformMatrix2x4dv(Program,Location,Transpose,Value) ->
 
5774
  cast(5830, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:56,(length(Value)):?GLuint,0:32,
 
5775
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble,V5:?GLdouble,V6:?GLdouble,V7:?GLdouble,V8:?GLdouble>> || {V1,V2,V3,V4,V5,V6,V7,V8} <- Value>>)/binary>>).
 
5776
 
 
5777
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5778
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix4x.xml">external</a> documentation.
 
5779
-spec programUniformMatrix4x2dv(integer(),integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5780
programUniformMatrix4x2dv(Program,Location,Transpose,Value) ->
 
5781
  cast(5831, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:56,(length(Value)):?GLuint,0:32,
 
5782
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble,V5:?GLdouble,V6:?GLdouble,V7:?GLdouble,V8:?GLdouble>> || {V1,V2,V3,V4,V5,V6,V7,V8} <- Value>>)/binary>>).
 
5783
 
 
5784
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5785
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix3x.xml">external</a> documentation.
 
5786
-spec programUniformMatrix3x4dv(integer(),integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5787
programUniformMatrix3x4dv(Program,Location,Transpose,Value) ->
 
5788
  cast(5832, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:56,(length(Value)):?GLuint,0:32,
 
5789
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble,V5:?GLdouble,V6:?GLdouble,V7:?GLdouble,V8:?GLdouble,V9:?GLdouble,V10:?GLdouble,V11:?GLdouble,V12:?GLdouble>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12} <- Value>>)/binary>>).
 
5790
 
 
5791
%% @spec (Program::integer(),Location::integer(),Transpose::0|1,Value::[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok
 
5792
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramUniformMatrix4x.xml">external</a> documentation.
 
5793
-spec programUniformMatrix4x3dv(integer(),integer(),0|1,[{float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float(),float()}]) -> ok.
 
5794
programUniformMatrix4x3dv(Program,Location,Transpose,Value) ->
 
5795
  cast(5833, <<Program:?GLuint,Location:?GLint,Transpose:?GLboolean,0:56,(length(Value)):?GLuint,0:32,
 
5796
        (<< <<V1:?GLdouble,V2:?GLdouble,V3:?GLdouble,V4:?GLdouble,V5:?GLdouble,V6:?GLdouble,V7:?GLdouble,V8:?GLdouble,V9:?GLdouble,V10:?GLdouble,V11:?GLdouble,V12:?GLdouble>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12} <- Value>>)/binary>>).
 
5797
 
 
5798
%% @spec (Pipeline::integer()) -> ok
 
5799
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glValidateProgramPipeline.xml">external</a> documentation.
 
5800
-spec validateProgramPipeline(integer()) -> ok.
 
5801
validateProgramPipeline(Pipeline) ->
 
5802
  cast(5834, <<Pipeline:?GLuint>>).
 
5803
 
 
5804
%% @spec (Pipeline::integer(),BufSize::integer()) -> string()
 
5805
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgramPipelineInfoLog.xml">external</a> documentation.
 
5806
-spec getProgramPipelineInfoLog(integer(),integer()) -> string().
 
5807
getProgramPipelineInfoLog(Pipeline,BufSize) ->
 
5808
  call(5835, <<Pipeline:?GLuint,BufSize:?GLsizei>>).
 
5809
 
 
5810
%% @spec (Index::integer(),X::float()) -> ok
 
5811
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribL.xml">external</a> documentation.
 
5812
-spec vertexAttribL1d(integer(),float()) -> ok.
 
5813
vertexAttribL1d(Index,X) ->
 
5814
  cast(5836, <<Index:?GLuint,0:32,X:?GLdouble>>).
 
5815
 
 
5816
%% @spec (Index::integer(),X::float(),Y::float()) -> ok
 
5817
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribL.xml">external</a> documentation.
 
5818
-spec vertexAttribL2d(integer(),float(),float()) -> ok.
 
5819
vertexAttribL2d(Index,X,Y) ->
 
5820
  cast(5837, <<Index:?GLuint,0:32,X:?GLdouble,Y:?GLdouble>>).
 
5821
 
 
5822
%% @spec (Index::integer(),X::float(),Y::float(),Z::float()) -> ok
 
5823
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribL.xml">external</a> documentation.
 
5824
-spec vertexAttribL3d(integer(),float(),float(),float()) -> ok.
 
5825
vertexAttribL3d(Index,X,Y,Z) ->
 
5826
  cast(5838, <<Index:?GLuint,0:32,X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
 
5827
 
 
5828
%% @spec (Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok
 
5829
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribL.xml">external</a> documentation.
 
5830
-spec vertexAttribL4d(integer(),float(),float(),float(),float()) -> ok.
 
5831
vertexAttribL4d(Index,X,Y,Z,W) ->
 
5832
  cast(5839, <<Index:?GLuint,0:32,X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
 
5833
 
 
5834
%% @spec (Index,{X}) -> ok
 
5835
%% @equiv vertexAttribL1d(Index,X)
 
5836
-spec vertexAttribL1dv(integer(),{float()}) -> ok.
 
5837
vertexAttribL1dv(Index,{X}) ->  vertexAttribL1d(Index,X).
 
5838
 
 
5839
%% @spec (Index,{X,Y}) -> ok
 
5840
%% @equiv vertexAttribL2d(Index,X,Y)
 
5841
-spec vertexAttribL2dv(integer(),{float(),float()}) -> ok.
 
5842
vertexAttribL2dv(Index,{X,Y}) ->  vertexAttribL2d(Index,X,Y).
 
5843
 
 
5844
%% @spec (Index,{X,Y,Z}) -> ok
 
5845
%% @equiv vertexAttribL3d(Index,X,Y,Z)
 
5846
-spec vertexAttribL3dv(integer(),{float(),float(),float()}) -> ok.
 
5847
vertexAttribL3dv(Index,{X,Y,Z}) ->  vertexAttribL3d(Index,X,Y,Z).
 
5848
 
 
5849
%% @spec (Index,{X,Y,Z,W}) -> ok
 
5850
%% @equiv vertexAttribL4d(Index,X,Y,Z,W)
 
5851
-spec vertexAttribL4dv(integer(),{float(),float(),float(),float()}) -> ok.
 
5852
vertexAttribL4dv(Index,{X,Y,Z,W}) ->  vertexAttribL4d(Index,X,Y,Z,W).
 
5853
 
 
5854
%% @spec (Index::integer(),Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|mem()) -> ok
 
5855
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribLPointer.xml">external</a> documentation.
 
5856
-spec vertexAttribLPointer(integer(),integer(),enum(),integer(),offset()|mem()) -> ok.
 
5857
vertexAttribLPointer(Index,Size,Type,Stride,Pointer) when  is_integer(Pointer) ->
 
5858
  cast(5840, <<Index:?GLuint,Size:?GLint,Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
 
5859
vertexAttribLPointer(Index,Size,Type,Stride,Pointer) ->
 
5860
  send_bin(Pointer),
 
5861
  cast(5841, <<Index:?GLuint,Size:?GLint,Type:?GLenum,Stride:?GLsizei>>).
 
5862
 
 
5863
%% @spec (Index::integer(),Pname::enum()) -> {float(),float(),float(),float()}
 
5864
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetVertexAttribL.xml">external</a> documentation.
 
5865
-spec getVertexAttribLdv(integer(),enum()) -> {float(),float(),float(),float()}.
 
5866
getVertexAttribLdv(Index,Pname) ->
 
5867
  call(5842, <<Index:?GLuint,Pname:?GLenum>>).
 
5868
 
 
5869
%% @spec (First::integer(),V::[{float(),float(),float(),float()}]) -> ok
 
5870
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glViewportArrayv.xml">external</a> documentation.
 
5871
-spec viewportArrayv(integer(),[{float(),float(),float(),float()}]) -> ok.
 
5872
viewportArrayv(First,V) ->
 
5873
  cast(5843, <<First:?GLuint,(length(V)):?GLuint,
 
5874
        (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat>> || {V1,V2,V3,V4} <- V>>)/binary>>).
 
5875
 
 
5876
%% @spec (Index::integer(),X::float(),Y::float(),W::float(),H::float()) -> ok
 
5877
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glViewportIndexed.xml">external</a> documentation.
 
5878
-spec viewportIndexedf(integer(),float(),float(),float(),float()) -> ok.
 
5879
viewportIndexedf(Index,X,Y,W,H) ->
 
5880
  cast(5844, <<Index:?GLuint,X:?GLfloat,Y:?GLfloat,W:?GLfloat,H:?GLfloat>>).
 
5881
 
 
5882
%% @spec (Index::integer(),V::{float(),float(),float(),float()}) -> ok
 
5883
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glViewportIndexed.xml">external</a> documentation.
 
5884
-spec viewportIndexedfv(integer(),{float(),float(),float(),float()}) -> ok.
 
5885
viewportIndexedfv(Index,{V1,V2,V3,V4}) ->
 
5886
  cast(5845, <<Index:?GLuint,V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat>>).
 
5887
 
 
5888
%% @spec (First::integer(),V::[{integer(),integer(),integer(),integer()}]) -> ok
 
5889
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glScissorArrayv.xml">external</a> documentation.
 
5890
-spec scissorArrayv(integer(),[{integer(),integer(),integer(),integer()}]) -> ok.
 
5891
scissorArrayv(First,V) ->
 
5892
  cast(5846, <<First:?GLuint,(length(V)):?GLuint,
 
5893
        (<< <<V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint>> || {V1,V2,V3,V4} <- V>>)/binary>>).
 
5894
 
 
5895
%% @spec (Index::integer(),Left::integer(),Bottom::integer(),Width::integer(),Height::integer()) -> ok
 
5896
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glScissorIndexe.xml">external</a> documentation.
 
5897
-spec scissorIndexed(integer(),integer(),integer(),integer(),integer()) -> ok.
 
5898
scissorIndexed(Index,Left,Bottom,Width,Height) ->
 
5899
  cast(5847, <<Index:?GLuint,Left:?GLint,Bottom:?GLint,Width:?GLsizei,Height:?GLsizei>>).
 
5900
 
 
5901
%% @spec (Index::integer(),V::{integer(),integer(),integer(),integer()}) -> ok
 
5902
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glScissorIndexe.xml">external</a> documentation.
 
5903
-spec scissorIndexedv(integer(),{integer(),integer(),integer(),integer()}) -> ok.
 
5904
scissorIndexedv(Index,{V1,V2,V3,V4}) ->
 
5905
  cast(5848, <<Index:?GLuint,V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint>>).
 
5906
 
 
5907
%% @spec (First::integer(),V::[{clamp(),clamp()}]) -> ok
 
5908
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDepthRangeArrayv.xml">external</a> documentation.
 
5909
-spec depthRangeArrayv(integer(),[{clamp(),clamp()}]) -> ok.
 
5910
depthRangeArrayv(First,V) ->
 
5911
  cast(5849, <<First:?GLuint,0:32,(length(V)):?GLuint,0:32,
 
5912
        (<< <<V1:?GLclampd,V2:?GLclampd>> || {V1,V2} <- V>>)/binary>>).
 
5913
 
 
5914
%% @spec (Index::integer(),N::clamp(),F::clamp()) -> ok
 
5915
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDepthRangeIndexe.xml">external</a> documentation.
 
5916
-spec depthRangeIndexed(integer(),clamp(),clamp()) -> ok.
 
5917
depthRangeIndexed(Index,N,F) ->
 
5918
  cast(5850, <<Index:?GLuint,0:32,N:?GLclampd,F:?GLclampd>>).
 
5919
 
 
5920
%% @spec (Target::enum(),Index::integer()) -> [float()]
 
5921
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetFloati_v.xml">external</a> documentation.
 
5922
-spec getFloati_v(enum(),integer()) -> [float()].
 
5923
getFloati_v(Target,Index) ->
 
5924
  call(5851, <<Target:?GLenum,Index:?GLuint>>).
 
5925
 
 
5926
%% @spec (Target::enum(),Index::integer()) -> [float()]
 
5927
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetDoublei_v.xml">external</a> documentation.
 
5928
-spec getDoublei_v(enum(),integer()) -> [float()].
 
5929
getDoublei_v(Target,Index) ->
 
5930
  call(5852, <<Target:?GLenum,Index:?GLuint>>).
 
5931
 
 
5932
%% @spec (Source::enum(),Type::enum(),Severity::enum(),Ids::[integer()],Enabled::0|1) -> ok
 
5933
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDebugMessageControlARB.xml">external</a> documentation.
 
5934
-spec debugMessageControlARB(enum(),enum(),enum(),[integer()],0|1) -> ok.
 
5935
debugMessageControlARB(Source,Type,Severity,Ids,Enabled) ->
 
5936
  cast(5853, <<Source:?GLenum,Type:?GLenum,Severity:?GLenum,(length(Ids)):?GLuint,
 
5937
        (<< <<C:?GLuint>> || C <- Ids>>)/binary,0:(((length(Ids)) rem 2)*32),Enabled:?GLboolean>>).
 
5938
 
 
5939
%% @spec (Source::enum(),Type::enum(),Id::integer(),Severity::enum(),Buf::string()) -> ok
 
5940
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDebugMessageInsertARB.xml">external</a> documentation.
 
5941
-spec debugMessageInsertARB(enum(),enum(),integer(),enum(),string()) -> ok.
 
5942
debugMessageInsertARB(Source,Type,Id,Severity,Buf) ->
 
5943
  cast(5854, <<Source:?GLenum,Type:?GLenum,Id:?GLuint,Severity:?GLenum,(list_to_binary([Buf|[0]]))/binary,0:((8-((length(Buf)+ 1) rem 8)) rem 8)>>).
 
5944
 
 
5945
%% @spec (Count::integer(),Bufsize::integer()) -> {integer(),Sources::[enum()],Types::[enum()],Ids::[integer()],Severities::[enum()],MessageLog::[string()]}
 
5946
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetDebugMessageLogARB.xml">external</a> documentation.
 
5947
-spec getDebugMessageLogARB(integer(),integer()) -> {integer(),[enum()],[enum()],[integer()],[enum()],[string()]}.
 
5948
getDebugMessageLogARB(Count,Bufsize) ->
 
5949
  call(5855, <<Count:?GLuint,Bufsize:?GLsizei>>).
 
5950
 
 
5951
%% @spec () -> enum()
 
5952
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetGraphicsResetStatusARB.xml">external</a> documentation.
 
5953
-spec getGraphicsResetStatusARB() -> enum().
 
5954
getGraphicsResetStatusARB() ->
 
5955
  call(5856, <<>>).
3983
5956
 
3984
5957
%% @spec () -> ok
3985
5958
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glResizeBuffersMESA.xml">external</a> documentation.
 
5959
-spec resizeBuffersMESA() -> ok.
3986
5960
resizeBuffersMESA() ->
3987
 
  wxe_util:cast(5676, <<>>).
 
5961
  cast(5857, <<>>).
3988
5962
 
3989
5963
%% @spec (X::float(),Y::float(),Z::float(),W::float()) -> ok
3990
5964
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos4dMESA.xml">external</a> documentation.
 
5965
-spec windowPos4dMESA(float(),float(),float(),float()) -> ok.
3991
5966
windowPos4dMESA(X,Y,Z,W) ->
3992
 
  wxe_util:cast(5677, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
 
5967
  cast(5858, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
3993
5968
 
3994
5969
%% @spec ({X,Y,Z,W}) -> ok
3995
5970
%% @equiv windowPos4dMESA(X,Y,Z,W)
 
5971
-spec windowPos4dvMESA({float(),float(),float(),float()}) -> ok.
3996
5972
windowPos4dvMESA({X,Y,Z,W}) ->  windowPos4dMESA(X,Y,Z,W).
3997
5973
 
3998
5974
%% @spec (X::float(),Y::float(),Z::float(),W::float()) -> ok
3999
5975
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos4fMESA.xml">external</a> documentation.
 
5976
-spec windowPos4fMESA(float(),float(),float(),float()) -> ok.
4000
5977
windowPos4fMESA(X,Y,Z,W) ->
4001
 
  wxe_util:cast(5678, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
 
5978
  cast(5859, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
4002
5979
 
4003
5980
%% @spec ({X,Y,Z,W}) -> ok
4004
5981
%% @equiv windowPos4fMESA(X,Y,Z,W)
 
5982
-spec windowPos4fvMESA({float(),float(),float(),float()}) -> ok.
4005
5983
windowPos4fvMESA({X,Y,Z,W}) ->  windowPos4fMESA(X,Y,Z,W).
4006
5984
 
4007
5985
%% @spec (X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
4008
5986
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos4iMESA.xml">external</a> documentation.
 
5987
-spec windowPos4iMESA(integer(),integer(),integer(),integer()) -> ok.
4009
5988
windowPos4iMESA(X,Y,Z,W) ->
4010
 
  wxe_util:cast(5679, <<X:?GLint,Y:?GLint,Z:?GLint,W:?GLint>>).
 
5989
  cast(5860, <<X:?GLint,Y:?GLint,Z:?GLint,W:?GLint>>).
4011
5990
 
4012
5991
%% @spec ({X,Y,Z,W}) -> ok
4013
5992
%% @equiv windowPos4iMESA(X,Y,Z,W)
 
5993
-spec windowPos4ivMESA({integer(),integer(),integer(),integer()}) -> ok.
4014
5994
windowPos4ivMESA({X,Y,Z,W}) ->  windowPos4iMESA(X,Y,Z,W).
4015
5995
 
4016
5996
%% @spec (X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
4017
5997
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos4sMESA.xml">external</a> documentation.
 
5998
-spec windowPos4sMESA(integer(),integer(),integer(),integer()) -> ok.
4018
5999
windowPos4sMESA(X,Y,Z,W) ->
4019
 
  wxe_util:cast(5680, <<X:?GLshort,Y:?GLshort,Z:?GLshort,W:?GLshort>>).
 
6000
  cast(5861, <<X:?GLshort,Y:?GLshort,Z:?GLshort,W:?GLshort>>).
4020
6001
 
4021
6002
%% @spec ({X,Y,Z,W}) -> ok
4022
6003
%% @equiv windowPos4sMESA(X,Y,Z,W)
 
6004
-spec windowPos4svMESA({integer(),integer(),integer(),integer()}) -> ok.
4023
6005
windowPos4svMESA({X,Y,Z,W}) ->  windowPos4sMESA(X,Y,Z,W).
4024
6006
 
4025
6007
%% @spec (Zmin::clamp(),Zmax::clamp()) -> ok
4026
6008
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDepthBoundsEXT.xml">external</a> documentation.
 
6009
-spec depthBoundsEXT(clamp(),clamp()) -> ok.
4027
6010
depthBoundsEXT(Zmin,Zmax) ->
4028
 
  wxe_util:cast(5681, <<Zmin:?GLclampd,Zmax:?GLclampd>>).
 
6011
  cast(5862, <<Zmin:?GLclampd,Zmax:?GLclampd>>).
4029
6012
 
4030
6013
%% @spec (StencilTagBits::integer(),StencilClearTag::integer()) -> ok
4031
6014
%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glStencilClearTagEXT.xml">external</a> documentation.
 
6015
-spec stencilClearTagEXT(integer(),integer()) -> ok.
4032
6016
stencilClearTagEXT(StencilTagBits,StencilClearTag) ->
4033
 
  wxe_util:cast(5682, <<StencilTagBits:?GLsizei,StencilClearTag:?GLuint>>).
 
6017
  cast(5863, <<StencilTagBits:?GLsizei,StencilClearTag:?GLuint>>).
4034
6018