%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 2008-2010. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Public License along with this software. If not, it can be
%% retrieved online at http://www.erlang.org/.
%%
%% Software distributed under the License is distributed on an "AS IS"
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
%% the License for the specific language governing rights and limitations
%% under the License.
%%
%% %CopyrightEnd%
%% OPENGL API
%% This file is generated DO NOT EDIT
%% @doc Standard OpenGL api.
%% See www.opengl.org
%%
%% Booleans are represented by integers 0 and 1.
%% @type mem(). memory block
%% @type enum(). An integer defined in gl.hrl
%% @type offset(). An integer which is an offset in an array
%% @type clamp(). A float clamped between 0.0 - 1.0
-module(gl).
-compile(inline).
-define(GLenum,32/native-unsigned).
-define(GLboolean,8/native-unsigned).
-define(GLbitfield,32/native-unsigned).
-define(GLbyte,8/native-signed).
-define(GLshort,16/native-signed).
-define(GLint,32/native-signed).
-define(GLubyte,8/native-unsigned).
-define(GLushort,16/native-unsigned).
-define(GLuint,32/native-unsigned).
-define(GLsizei,32/native-signed).
-define(GLfloat,32/native-float).
-define(GLclampf,32/native-float).
-define(GLdouble,64/native-float).
-define(GLclampd,64/native-float).
-define(GLsizeiptr,64/native-unsigned).
-define(GLintptr,64/native-unsigned).
-define(GLUquadric,64/native-unsigned).
-define(GLhandleARB,64/native-unsigned).
-export([accum/2,alphaFunc/2,areTexturesResident/1,arrayElement/1,'begin'/1,
bindTexture/2,bitmap/7,blendFunc/2,callList/1,callLists/1,clear/1,clearAccum/4,
clearColor/4,clearDepth/1,clearIndex/1,clearStencil/1,clipPlane/2,
color3b/3,color3bv/1,color3d/3,color3dv/1,color3f/3,color3fv/1,color3i/3,
color3iv/1,color3s/3,color3sv/1,color3ub/3,color3ubv/1,color3ui/3,color3uiv/1,
color3us/3,color3usv/1,color4b/4,color4bv/1,color4d/4,color4dv/1,color4f/4,
color4fv/1,color4i/4,color4iv/1,color4s/4,color4sv/1,color4ub/4,color4ubv/1,
color4ui/4,color4uiv/1,color4us/4,color4usv/1,colorMask/4,colorMaterial/2,
colorPointer/4,copyPixels/5,copyTexImage1D/7,copyTexImage2D/8,copyTexSubImage1D/6,
copyTexSubImage2D/8,cullFace/1,deleteLists/2,deleteTextures/1,depthFunc/1,
depthMask/1,depthRange/2,disable/1,disableClientState/1,drawArrays/3,
drawBuffer/1,drawElements/4,drawPixels/5,edgeFlag/1,edgeFlagPointer/2,
edgeFlagv/1,enable/1,enableClientState/1,'end'/0,endList/0,evalCoord1d/1,
evalCoord1dv/1,evalCoord1f/1,evalCoord1fv/1,evalCoord2d/2,evalCoord2dv/1,
evalCoord2f/2,evalCoord2fv/1,evalMesh1/3,evalMesh2/5,evalPoint1/1,
evalPoint2/2,feedbackBuffer/3,finish/0,flush/0,fogf/2,fogfv/2,fogi/2,
fogiv/2,frontFace/1,frustum/6,genLists/1,genTextures/1,getBooleanv/1,
getClipPlane/1,getDoublev/1,getError/0,getFloatv/1,getIntegerv/1,getLightfv/2,
getLightiv/2,getMapdv/3,getMapfv/3,getMapiv/3,getMaterialfv/2,getMaterialiv/2,
getPixelMapfv/2,getPixelMapuiv/2,getPixelMapusv/2,getPolygonStipple/0,
getString/1,getTexEnvfv/2,getTexEnviv/2,getTexGendv/2,getTexGenfv/2,
getTexGeniv/2,getTexImage/5,getTexLevelParameterfv/3,getTexLevelParameteriv/3,
getTexParameterfv/2,getTexParameteriv/2,hint/2,indexMask/1,indexPointer/3,
indexd/1,indexdv/1,indexf/1,indexfv/1,indexi/1,indexiv/1,indexs/1,indexsv/1,
indexub/1,indexubv/1,initNames/0,interleavedArrays/3,isEnabled/1,isList/1,
isTexture/1,lightModelf/2,lightModelfv/2,lightModeli/2,lightModeliv/2,
lightf/3,lightfv/3,lighti/3,lightiv/3,lineStipple/2,lineWidth/1,listBase/1,
loadIdentity/0,loadMatrixd/1,loadMatrixf/1,loadName/1,logicOp/1,map1d/6,
map1f/6,map2d/10,map2f/10,mapGrid1d/3,mapGrid1f/3,mapGrid2d/6,mapGrid2f/6,
materialf/3,materialfv/3,materiali/3,materialiv/3,matrixMode/1,multMatrixd/1,
multMatrixf/1,newList/2,normal3b/3,normal3bv/1,normal3d/3,normal3dv/1,
normal3f/3,normal3fv/1,normal3i/3,normal3iv/1,normal3s/3,normal3sv/1,
normalPointer/3,ortho/6,passThrough/1,pixelMapfv/3,pixelMapuiv/3,pixelMapusv/3,
pixelStoref/2,pixelStorei/2,pixelTransferf/2,pixelTransferi/2,pixelZoom/2,
pointSize/1,polygonMode/2,polygonOffset/2,polygonStipple/1,popAttrib/0,
popClientAttrib/0,popMatrix/0,popName/0,prioritizeTextures/2,pushAttrib/1,
pushClientAttrib/1,pushMatrix/0,pushName/1,rasterPos2d/2,rasterPos2dv/1,
rasterPos2f/2,rasterPos2fv/1,rasterPos2i/2,rasterPos2iv/1,rasterPos2s/2,
rasterPos2sv/1,rasterPos3d/3,rasterPos3dv/1,rasterPos3f/3,rasterPos3fv/1,
rasterPos3i/3,rasterPos3iv/1,rasterPos3s/3,rasterPos3sv/1,rasterPos4d/4,
rasterPos4dv/1,rasterPos4f/4,rasterPos4fv/1,rasterPos4i/4,rasterPos4iv/1,
rasterPos4s/4,rasterPos4sv/1,readBuffer/1,readPixels/7,rectd/4,rectdv/2,
rectf/4,rectfv/2,recti/4,rectiv/2,rects/4,rectsv/2,renderMode/1,rotated/4,
rotatef/4,scaled/3,scalef/3,scissor/4,selectBuffer/2,shadeModel/1,stencilFunc/3,
stencilMask/1,stencilOp/3,texCoord1d/1,texCoord1dv/1,texCoord1f/1,
texCoord1fv/1,texCoord1i/1,texCoord1iv/1,texCoord1s/1,texCoord1sv/1,
texCoord2d/2,texCoord2dv/1,texCoord2f/2,texCoord2fv/1,texCoord2i/2,
texCoord2iv/1,texCoord2s/2,texCoord2sv/1,texCoord3d/3,texCoord3dv/1,
texCoord3f/3,texCoord3fv/1,texCoord3i/3,texCoord3iv/1,texCoord3s/3,
texCoord3sv/1,texCoord4d/4,texCoord4dv/1,texCoord4f/4,texCoord4fv/1,
texCoord4i/4,texCoord4iv/1,texCoord4s/4,texCoord4sv/1,texCoordPointer/4,
texEnvf/3,texEnvfv/3,texEnvi/3,texEnviv/3,texGend/3,texGendv/3,texGenf/3,
texGenfv/3,texGeni/3,texGeniv/3,texImage1D/8,texImage2D/9,texParameterf/3,
texParameterfv/3,texParameteri/3,texParameteriv/3,texSubImage1D/7,
texSubImage2D/9,translated/3,translatef/3,vertex2d/2,vertex2dv/1,vertex2f/2,
vertex2fv/1,vertex2i/2,vertex2iv/1,vertex2s/2,vertex2sv/1,vertex3d/3,
vertex3dv/1,vertex3f/3,vertex3fv/1,vertex3i/3,vertex3iv/1,vertex3s/3,
vertex3sv/1,vertex4d/4,vertex4dv/1,vertex4f/4,vertex4fv/1,vertex4i/4,
vertex4iv/1,vertex4s/4,vertex4sv/1,vertexPointer/4,viewport/4,blendColor/4,
blendEquation/1,drawRangeElements/6,texImage3D/10,texSubImage3D/11,
copyTexSubImage3D/9,colorTable/6,colorTableParameterfv/3,colorTableParameteriv/3,
copyColorTable/5,getColorTable/4,getColorTableParameterfv/2,getColorTableParameteriv/2,
colorSubTable/6,copyColorSubTable/5,convolutionFilter1D/6,convolutionFilter2D/7,
convolutionParameterf/3,convolutionParameterfv/3,convolutionParameteri/3,
convolutionParameteriv/3,copyConvolutionFilter1D/5,copyConvolutionFilter2D/6,
getConvolutionFilter/4,getConvolutionParameterfv/2,getConvolutionParameteriv/2,
separableFilter2D/8,getHistogram/5,getHistogramParameterfv/2,getHistogramParameteriv/2,
getMinmax/5,getMinmaxParameterfv/2,getMinmaxParameteriv/2,histogram/4,
minmax/3,resetHistogram/1,resetMinmax/1,activeTexture/1,sampleCoverage/2,
compressedTexImage3D/9,compressedTexImage2D/8,compressedTexImage1D/7,
compressedTexSubImage3D/11,compressedTexSubImage2D/9,compressedTexSubImage1D/7,
getCompressedTexImage/3,clientActiveTexture/1,multiTexCoord1d/2,
multiTexCoord1dv/2,multiTexCoord1f/2,multiTexCoord1fv/2,multiTexCoord1i/2,
multiTexCoord1iv/2,multiTexCoord1s/2,multiTexCoord1sv/2,multiTexCoord2d/3,
multiTexCoord2dv/2,multiTexCoord2f/3,multiTexCoord2fv/2,multiTexCoord2i/3,
multiTexCoord2iv/2,multiTexCoord2s/3,multiTexCoord2sv/2,multiTexCoord3d/4,
multiTexCoord3dv/2,multiTexCoord3f/4,multiTexCoord3fv/2,multiTexCoord3i/4,
multiTexCoord3iv/2,multiTexCoord3s/4,multiTexCoord3sv/2,multiTexCoord4d/5,
multiTexCoord4dv/2,multiTexCoord4f/5,multiTexCoord4fv/2,multiTexCoord4i/5,
multiTexCoord4iv/2,multiTexCoord4s/5,multiTexCoord4sv/2,loadTransposeMatrixf/1,
loadTransposeMatrixd/1,multTransposeMatrixf/1,multTransposeMatrixd/1,
blendFuncSeparate/4,multiDrawArrays/3,pointParameterf/2,pointParameterfv/2,
pointParameteri/2,pointParameteriv/2,fogCoordf/1,fogCoordfv/1,fogCoordd/1,
fogCoorddv/1,fogCoordPointer/3,secondaryColor3b/3,secondaryColor3bv/1,
secondaryColor3d/3,secondaryColor3dv/1,secondaryColor3f/3,secondaryColor3fv/1,
secondaryColor3i/3,secondaryColor3iv/1,secondaryColor3s/3,secondaryColor3sv/1,
secondaryColor3ub/3,secondaryColor3ubv/1,secondaryColor3ui/3,secondaryColor3uiv/1,
secondaryColor3us/3,secondaryColor3usv/1,secondaryColorPointer/4,
windowPos2d/2,windowPos2dv/1,windowPos2f/2,windowPos2fv/1,windowPos2i/2,
windowPos2iv/1,windowPos2s/2,windowPos2sv/1,windowPos3d/3,windowPos3dv/1,
windowPos3f/3,windowPos3fv/1,windowPos3i/3,windowPos3iv/1,windowPos3s/3,
windowPos3sv/1,genQueries/1,deleteQueries/1,isQuery/1,beginQuery/2,
endQuery/1,getQueryiv/2,getQueryObjectiv/2,getQueryObjectuiv/2,bindBuffer/2,
deleteBuffers/1,genBuffers/1,isBuffer/1,bufferData/4,bufferSubData/4,
getBufferSubData/4,getBufferParameteriv/2,blendEquationSeparate/2,
drawBuffers/1,stencilOpSeparate/4,stencilFuncSeparate/4,stencilMaskSeparate/2,
attachShader/2,bindAttribLocation/3,compileShader/1,createProgram/0,
createShader/1,deleteProgram/1,deleteShader/1,detachShader/2,disableVertexAttribArray/1,
enableVertexAttribArray/1,getActiveAttrib/3,getActiveUniform/3,getAttachedShaders/2,
getAttribLocation/2,getProgramiv/2,getProgramInfoLog/2,getShaderiv/2,
getShaderInfoLog/2,getShaderSource/2,getUniformLocation/2,getUniformfv/2,
getUniformiv/2,getVertexAttribdv/2,getVertexAttribfv/2,getVertexAttribiv/2,
isProgram/1,isShader/1,linkProgram/1,shaderSource/2,useProgram/1,uniform1f/2,
uniform2f/3,uniform3f/4,uniform4f/5,uniform1i/2,uniform2i/3,uniform3i/4,
uniform4i/5,uniform1fv/2,uniform2fv/2,uniform3fv/2,uniform4fv/2,uniform1iv/2,
uniform2iv/2,uniform3iv/2,uniform4iv/2,uniformMatrix2fv/3,uniformMatrix3fv/3,
uniformMatrix4fv/3,validateProgram/1,vertexAttrib1d/2,vertexAttrib1dv/2,
vertexAttrib1f/2,vertexAttrib1fv/2,vertexAttrib1s/2,vertexAttrib1sv/2,
vertexAttrib2d/3,vertexAttrib2dv/2,vertexAttrib2f/3,vertexAttrib2fv/2,
vertexAttrib2s/3,vertexAttrib2sv/2,vertexAttrib3d/4,vertexAttrib3dv/2,
vertexAttrib3f/4,vertexAttrib3fv/2,vertexAttrib3s/4,vertexAttrib3sv/2,
vertexAttrib4Nbv/2,vertexAttrib4Niv/2,vertexAttrib4Nsv/2,vertexAttrib4Nub/5,
vertexAttrib4Nubv/2,vertexAttrib4Nuiv/2,vertexAttrib4Nusv/2,vertexAttrib4bv/2,
vertexAttrib4d/5,vertexAttrib4dv/2,vertexAttrib4f/5,vertexAttrib4fv/2,
vertexAttrib4iv/2,vertexAttrib4s/5,vertexAttrib4sv/2,vertexAttrib4ubv/2,
vertexAttrib4uiv/2,vertexAttrib4usv/2,vertexAttribPointer/6,uniformMatrix2x3fv/3,
uniformMatrix3x2fv/3,uniformMatrix2x4fv/3,uniformMatrix4x2fv/3,uniformMatrix3x4fv/3,
uniformMatrix4x3fv/3,colorMaski/5,getBooleani_v/2,getIntegeri_v/2,
enablei/2,disablei/2,isEnabledi/2,beginTransformFeedback/1,endTransformFeedback/0,
bindBufferRange/5,bindBufferBase/3,transformFeedbackVaryings/3,getTransformFeedbackVarying/3,
clampColor/2,beginConditionalRender/2,endConditionalRender/0,vertexAttribIPointer/5,
getVertexAttribIiv/2,getVertexAttribIuiv/2,getUniformuiv/2,bindFragDataLocation/3,
getFragDataLocation/2,uniform1ui/2,uniform2ui/3,uniform3ui/4,uniform4ui/5,
uniform1uiv/2,uniform2uiv/2,uniform3uiv/2,uniform4uiv/2,texParameterIiv/3,
texParameterIuiv/3,getTexParameterIiv/2,getTexParameterIuiv/2,clearBufferiv/3,
clearBufferuiv/3,clearBufferfv/3,clearBufferfi/4,getStringi/2,vertexAttribI1i/2,
vertexAttribI2i/3,vertexAttribI3i/4,vertexAttribI4i/5,vertexAttribI1ui/2,
vertexAttribI2ui/3,vertexAttribI3ui/4,vertexAttribI4ui/5,vertexAttribI1iv/2,
vertexAttribI2iv/2,vertexAttribI3iv/2,vertexAttribI4iv/2,vertexAttribI1uiv/2,
vertexAttribI2uiv/2,vertexAttribI3uiv/2,vertexAttribI4uiv/2,vertexAttribI4bv/2,
vertexAttribI4sv/2,vertexAttribI4ubv/2,vertexAttribI4usv/2,drawArraysInstanced/4,
drawElementsInstanced/5,texBuffer/3,primitiveRestartIndex/1,loadTransposeMatrixfARB/1,
loadTransposeMatrixdARB/1,multTransposeMatrixfARB/1,multTransposeMatrixdARB/1,
weightbvARB/1,weightsvARB/1,weightivARB/1,weightfvARB/1,weightdvARB/1,
weightubvARB/1,weightusvARB/1,weightuivARB/1,vertexBlendARB/1,currentPaletteMatrixARB/1,
matrixIndexubvARB/1,matrixIndexusvARB/1,matrixIndexuivARB/1,programStringARB/3,
bindProgramARB/2,deleteProgramsARB/1,genProgramsARB/1,programEnvParameter4dARB/6,
programEnvParameter4dvARB/3,programEnvParameter4fARB/6,programEnvParameter4fvARB/3,
programLocalParameter4dARB/6,programLocalParameter4dvARB/3,programLocalParameter4fARB/6,
programLocalParameter4fvARB/3,getProgramEnvParameterdvARB/2,getProgramEnvParameterfvARB/2,
getProgramLocalParameterdvARB/2,getProgramLocalParameterfvARB/2,
getProgramStringARB/3,deleteObjectARB/1,getHandleARB/1,detachObjectARB/2,
createShaderObjectARB/1,shaderSourceARB/2,compileShaderARB/1,createProgramObjectARB/0,
attachObjectARB/2,linkProgramARB/1,useProgramObjectARB/1,validateProgramARB/1,
getObjectParameterfvARB/2,getObjectParameterivARB/2,getInfoLogARB/2,
getAttachedObjectsARB/2,getUniformLocationARB/2,getActiveUniformARB/3,
getUniformfvARB/2,getUniformivARB/2,getShaderSourceARB/2,bindAttribLocationARB/3,
getActiveAttribARB/3,getAttribLocationARB/2,isRenderbuffer/1,bindRenderbuffer/2,
deleteRenderbuffers/1,genRenderbuffers/1,renderbufferStorage/4,getRenderbufferParameteriv/2,
isFramebuffer/1,bindFramebuffer/2,deleteFramebuffers/1,genFramebuffers/1,
checkFramebufferStatus/1,framebufferTexture1D/5,framebufferTexture2D/5,
framebufferTexture3D/6,framebufferRenderbuffer/4,getFramebufferAttachmentParameteriv/3,
generateMipmap/1,blitFramebuffer/10,renderbufferStorageMultisample/5,
framebufferTextureLayer/5,programParameteriARB/3,framebufferTextureARB/4,
framebufferTextureFaceARB/5,vertexAttribDivisorARB/2,flushMappedBufferRange/3,
bindVertexArray/1,deleteVertexArrays/1,genVertexArrays/1,isVertexArray/1,
getUniformIndices/2,getActiveUniformsiv/3,getActiveUniformName/3,
getUniformBlockIndex/2,getActiveUniformBlockiv/4,getActiveUniformBlockName/3,
uniformBlockBinding/3,copyBufferSubData/5,resizeBuffersMESA/0,windowPos4dMESA/4,
windowPos4dvMESA/1,windowPos4fMESA/4,windowPos4fvMESA/1,windowPos4iMESA/4,
windowPos4ivMESA/1,windowPos4sMESA/4,windowPos4svMESA/1,depthBoundsEXT/2,
stencilClearTagEXT/2]).
-export([call/2, cast/2, send_bin/1]).
%% @hidden
call(Op, Args) ->
Port = get(opengl_port),
_ = erlang:port_control(Port,Op,Args),
rec().
%% @hidden
cast(Op, Args) ->
Port = get(opengl_port),
_ = erlang:port_control(Port,Op,Args),
ok.
%% @hidden
rec() ->
receive
{'_egl_result_', Res} -> Res;
{'_egl_error_', Res} -> error({error,Res})
end.
%% @hidden
send_bin(Bin) when is_binary(Bin) ->
Port = get(opengl_port),
erlang:port_command(Port,Bin);
send_bin(Tuple) when is_tuple(Tuple) ->
Port = get(opengl_port),
case element(2, Tuple) of
Bin when is_binary(Bin) ->
erlang:port_command(Port,Bin)
end.
%% API
%% @spec (Op::enum(),Value::float()) -> ok
%% @doc See external documentation.
accum(Op,Value) ->
cast(5037, <>).
%% @spec (Func::enum(),Ref::clamp()) -> ok
%% @doc See external documentation.
alphaFunc(Func,Ref) ->
cast(5038, <>).
%% @spec (Textures::[integer()]) -> {0|1,Residences::[0|1]}
%% @doc See external documentation.
areTexturesResident(Textures) ->
call(5039, <<(length(Textures)):?GLuint,
(<< <> || C <- Textures>>)/binary,0:(((1+length(Textures)) rem 2)*32)>>).
%% @spec (I::integer()) -> ok
%% @doc See external documentation.
arrayElement(I) ->
cast(5040, <>).
%% @spec (Mode::enum()) -> ok
%% @doc See external documentation.
'begin'(Mode) ->
cast(5041, <>).
%% @spec (Target::enum(),Texture::integer()) -> ok
%% @doc See external documentation.
bindTexture(Target,Texture) ->
cast(5042, <>).
%% @spec (Width::integer(),Height::integer(),Xorig::float(),Yorig::float(),Xmove::float(),Ymove::float(),Bitmap::offset()|binary()) -> ok
%% @doc See external documentation.
bitmap(Width,Height,Xorig,Yorig,Xmove,Ymove,Bitmap) when is_integer(Bitmap) ->
cast(5043, <>);
bitmap(Width,Height,Xorig,Yorig,Xmove,Ymove,Bitmap) ->
send_bin(Bitmap),
cast(5044, <>).
%% @spec (Sfactor::enum(),Dfactor::enum()) -> ok
%% @doc See external documentation.
blendFunc(Sfactor,Dfactor) ->
cast(5045, <>).
%% @spec (List::integer()) -> ok
%% @doc See external documentation.
callList(List) ->
cast(5046, <>).
%% @spec (Lists::[integer()]) -> ok
%% @doc See external documentation.
callLists(Lists) ->
cast(5047, <<(length(Lists)):?GLuint,
(<< <> || C <- Lists>>)/binary,0:(((1+length(Lists)) rem 2)*32)>>).
%% @spec (Mask::integer()) -> ok
%% @doc See external documentation.
clear(Mask) ->
cast(5048, <>).
%% @spec (Red::float(),Green::float(),Blue::float(),Alpha::float()) -> ok
%% @doc See external documentation.
clearAccum(Red,Green,Blue,Alpha) ->
cast(5049, <>).
%% @spec (Red::clamp(),Green::clamp(),Blue::clamp(),Alpha::clamp()) -> ok
%% @doc See external documentation.
clearColor(Red,Green,Blue,Alpha) ->
cast(5050, <>).
%% @spec (Depth::clamp()) -> ok
%% @doc See external documentation.
clearDepth(Depth) ->
cast(5051, <>).
%% @spec (C::float()) -> ok
%% @doc See external documentation.
clearIndex(C) ->
cast(5052, <>).
%% @spec (S::integer()) -> ok
%% @doc See external documentation.
clearStencil(S) ->
cast(5053, <>).
%% @spec (Plane::enum(),Equation::{float()}) -> ok
%% @doc See external documentation.
clipPlane(Plane,{E1,E2,E3,E4}) ->
cast(5054, <>).
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
%% @doc See external documentation.
color3b(Red,Green,Blue) ->
cast(5055, <>).
%% @spec ({Red,Green,Blue}) -> ok
%% @equiv color3b(Red,Green,Blue)
color3bv({Red,Green,Blue}) -> color3b(Red,Green,Blue).
%% @spec (Red::float(),Green::float(),Blue::float()) -> ok
%% @doc See external documentation.
color3d(Red,Green,Blue) ->
cast(5056, <>).
%% @spec ({Red,Green,Blue}) -> ok
%% @equiv color3d(Red,Green,Blue)
color3dv({Red,Green,Blue}) -> color3d(Red,Green,Blue).
%% @spec (Red::float(),Green::float(),Blue::float()) -> ok
%% @doc See external documentation.
color3f(Red,Green,Blue) ->
cast(5057, <>).
%% @spec ({Red,Green,Blue}) -> ok
%% @equiv color3f(Red,Green,Blue)
color3fv({Red,Green,Blue}) -> color3f(Red,Green,Blue).
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
%% @doc See external documentation.
color3i(Red,Green,Blue) ->
cast(5058, <>).
%% @spec ({Red,Green,Blue}) -> ok
%% @equiv color3i(Red,Green,Blue)
color3iv({Red,Green,Blue}) -> color3i(Red,Green,Blue).
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
%% @doc See external documentation.
color3s(Red,Green,Blue) ->
cast(5059, <>).
%% @spec ({Red,Green,Blue}) -> ok
%% @equiv color3s(Red,Green,Blue)
color3sv({Red,Green,Blue}) -> color3s(Red,Green,Blue).
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
%% @doc See external documentation.
color3ub(Red,Green,Blue) ->
cast(5060, <>).
%% @spec ({Red,Green,Blue}) -> ok
%% @equiv color3ub(Red,Green,Blue)
color3ubv({Red,Green,Blue}) -> color3ub(Red,Green,Blue).
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
%% @doc See external documentation.
color3ui(Red,Green,Blue) ->
cast(5061, <>).
%% @spec ({Red,Green,Blue}) -> ok
%% @equiv color3ui(Red,Green,Blue)
color3uiv({Red,Green,Blue}) -> color3ui(Red,Green,Blue).
%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
%% @doc See external documentation.
color3us(Red,Green,Blue) ->
cast(5062, <>).
%% @spec ({Red,Green,Blue}) -> ok
%% @equiv color3us(Red,Green,Blue)
color3usv({Red,Green,Blue}) -> color3us(Red,Green,Blue).
%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
%% @doc See external documentation.
color4b(Red,Green,Blue,Alpha) ->
cast(5063, <>).
%% @spec ({Red,Green,Blue,Alpha}) -> ok
%% @equiv color4b(Red,Green,Blue,Alpha)
color4bv({Red,Green,Blue,Alpha}) -> color4b(Red,Green,Blue,Alpha).
%% @spec (Red::float(),Green::float(),Blue::float(),Alpha::float()) -> ok
%% @doc See external documentation.
color4d(Red,Green,Blue,Alpha) ->
cast(5064, <>).
%% @spec ({Red,Green,Blue,Alpha}) -> ok
%% @equiv color4d(Red,Green,Blue,Alpha)
color4dv({Red,Green,Blue,Alpha}) -> color4d(Red,Green,Blue,Alpha).
%% @spec (Red::float(),Green::float(),Blue::float(),Alpha::float()) -> ok
%% @doc See external documentation.
color4f(Red,Green,Blue,Alpha) ->
cast(5065, <>).
%% @spec ({Red,Green,Blue,Alpha}) -> ok
%% @equiv color4f(Red,Green,Blue,Alpha)
color4fv({Red,Green,Blue,Alpha}) -> color4f(Red,Green,Blue,Alpha).
%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
%% @doc See external documentation.
color4i(Red,Green,Blue,Alpha) ->
cast(5066, <>).
%% @spec ({Red,Green,Blue,Alpha}) -> ok
%% @equiv color4i(Red,Green,Blue,Alpha)
color4iv({Red,Green,Blue,Alpha}) -> color4i(Red,Green,Blue,Alpha).
%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
%% @doc See external documentation.
color4s(Red,Green,Blue,Alpha) ->
cast(5067, <>).
%% @spec ({Red,Green,Blue,Alpha}) -> ok
%% @equiv color4s(Red,Green,Blue,Alpha)
color4sv({Red,Green,Blue,Alpha}) -> color4s(Red,Green,Blue,Alpha).
%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
%% @doc See external documentation.
color4ub(Red,Green,Blue,Alpha) ->
cast(5068, <>).
%% @spec ({Red,Green,Blue,Alpha}) -> ok
%% @equiv color4ub(Red,Green,Blue,Alpha)
color4ubv({Red,Green,Blue,Alpha}) -> color4ub(Red,Green,Blue,Alpha).
%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
%% @doc See external documentation.
color4ui(Red,Green,Blue,Alpha) ->
cast(5069, <>).
%% @spec ({Red,Green,Blue,Alpha}) -> ok
%% @equiv color4ui(Red,Green,Blue,Alpha)
color4uiv({Red,Green,Blue,Alpha}) -> color4ui(Red,Green,Blue,Alpha).
%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
%% @doc See external documentation.
color4us(Red,Green,Blue,Alpha) ->
cast(5070, <>).
%% @spec ({Red,Green,Blue,Alpha}) -> ok
%% @equiv color4us(Red,Green,Blue,Alpha)
color4usv({Red,Green,Blue,Alpha}) -> color4us(Red,Green,Blue,Alpha).
%% @spec (Red::0|1,Green::0|1,Blue::0|1,Alpha::0|1) -> ok
%% @doc See external documentation.
colorMask(Red,Green,Blue,Alpha) ->
cast(5071, <>).
%% @spec (Face::enum(),Mode::enum()) -> ok
%% @doc See external documentation.
colorMaterial(Face,Mode) ->
cast(5072, <>).
%% @spec (Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
%% @doc See external documentation.
colorPointer(Size,Type,Stride,Pointer) when is_integer(Pointer) ->
cast(5073, <>);
colorPointer(Size,Type,Stride,Pointer) ->
send_bin(Pointer),
cast(5074, <>).
%% @spec (X::integer(),Y::integer(),Width::integer(),Height::integer(),Type::enum()) -> ok
%% @doc See external documentation.
copyPixels(X,Y,Width,Height,Type) ->
cast(5075, <>).
%% @spec (Target::enum(),Level::integer(),InternalFormat::enum(),X::integer(),Y::integer(),Width::integer(),Border::integer()) -> ok
%% @doc See external documentation.
copyTexImage1D(Target,Level,InternalFormat,X,Y,Width,Border) ->
cast(5076, <>).
%% @spec (Target::enum(),Level::integer(),InternalFormat::enum(),X::integer(),Y::integer(),Width::integer(),Height::integer(),Border::integer()) -> ok
%% @doc See external documentation.
copyTexImage2D(Target,Level,InternalFormat,X,Y,Width,Height,Border) ->
cast(5077, <>).
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),X::integer(),Y::integer(),Width::integer()) -> ok
%% @doc See external documentation.
copyTexSubImage1D(Target,Level,Xoffset,X,Y,Width) ->
cast(5078, <>).
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),X::integer(),Y::integer(),Width::integer(),Height::integer()) -> ok
%% @doc See external documentation.
copyTexSubImage2D(Target,Level,Xoffset,Yoffset,X,Y,Width,Height) ->
cast(5079, <>).
%% @spec (Mode::enum()) -> ok
%% @doc See external documentation.
cullFace(Mode) ->
cast(5080, <>).
%% @spec (List::integer(),Range::integer()) -> ok
%% @doc See external documentation.
deleteLists(List,Range) ->
cast(5081, <>).
%% @spec (Textures::[integer()]) -> ok
%% @doc See external documentation.
deleteTextures(Textures) ->
cast(5082, <<(length(Textures)):?GLuint,
(<< <> || C <- Textures>>)/binary,0:(((1+length(Textures)) rem 2)*32)>>).
%% @spec (Func::enum()) -> ok
%% @doc See external documentation.
depthFunc(Func) ->
cast(5083, <>).
%% @spec (Flag::0|1) -> ok
%% @doc See external documentation.
depthMask(Flag) ->
cast(5084, <>).
%% @spec (ZNear::clamp(),ZFar::clamp()) -> ok
%% @doc See external documentation.
depthRange(ZNear,ZFar) ->
cast(5085, <>).
%% @spec (Cap::enum()) -> ok
%% @doc See external documentation.
disable(Cap) ->
cast(5086, <>).
%% @spec (Array::enum()) -> ok
%% @doc See external documentation.
disableClientState(Array) ->
cast(5087, <>).
%% @spec (Mode::enum(),First::integer(),Count::integer()) -> ok
%% @doc See external documentation.
drawArrays(Mode,First,Count) ->
cast(5088, <>).
%% @spec (Mode::enum()) -> ok
%% @doc See external documentation.
drawBuffer(Mode) ->
cast(5089, <>).
%% @spec (Mode::enum(),Count::integer(),Type::enum(),Indices::offset()|binary()) -> ok
%% @doc See external documentation.
drawElements(Mode,Count,Type,Indices) when is_integer(Indices) ->
cast(5090, <>);
drawElements(Mode,Count,Type,Indices) ->
send_bin(Indices),
cast(5091, <>).
%% @spec (Width::integer(),Height::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
%% @doc See external documentation.
drawPixels(Width,Height,Format,Type,Pixels) when is_integer(Pixels) ->
cast(5092, <>);
drawPixels(Width,Height,Format,Type,Pixels) ->
send_bin(Pixels),
cast(5093, <>).
%% @spec (Flag::0|1) -> ok
%% @doc See external documentation.
edgeFlag(Flag) ->
cast(5094, <>).
%% @spec (Stride::integer(),Pointer::offset()|binary()) -> ok
%% @doc See external documentation.
edgeFlagPointer(Stride,Pointer) when is_integer(Pointer) ->
cast(5095, <>);
edgeFlagPointer(Stride,Pointer) ->
send_bin(Pointer),
cast(5096, <>).
%% @spec ({Flag}) -> ok
%% @equiv edgeFlag(Flag)
edgeFlagv({Flag}) -> edgeFlag(Flag).
%% @spec (Cap::enum()) -> ok
%% @doc See external documentation.
enable(Cap) ->
cast(5097, <>).
%% @spec (Array::enum()) -> ok
%% @doc See external documentation.
enableClientState(Array) ->
cast(5098, <>).
%% @spec () -> ok
%% @doc See external documentation.
'end'() ->
cast(5099, <<>>).
%% @spec () -> ok
%% @doc See external documentation.
endList() ->
cast(5100, <<>>).
%% @spec (U::float()) -> ok
%% @doc See external documentation.
evalCoord1d(U) ->
cast(5101, <>).
%% @spec ({U}) -> ok
%% @equiv evalCoord1d(U)
evalCoord1dv({U}) -> evalCoord1d(U).
%% @spec (U::float()) -> ok
%% @doc See external documentation.
evalCoord1f(U) ->
cast(5102, <>).
%% @spec ({U}) -> ok
%% @equiv evalCoord1f(U)
evalCoord1fv({U}) -> evalCoord1f(U).
%% @spec (U::float(),V::float()) -> ok
%% @doc See external documentation.
evalCoord2d(U,V) ->
cast(5103, <>).
%% @spec ({U,V}) -> ok
%% @equiv evalCoord2d(U,V)
evalCoord2dv({U,V}) -> evalCoord2d(U,V).
%% @spec (U::float(),V::float()) -> ok
%% @doc See external documentation.
evalCoord2f(U,V) ->
cast(5104, <>).
%% @spec ({U,V}) -> ok
%% @equiv evalCoord2f(U,V)
evalCoord2fv({U,V}) -> evalCoord2f(U,V).
%% @spec (Mode::enum(),I1::integer(),I2::integer()) -> ok
%% @doc See external documentation.
evalMesh1(Mode,I1,I2) ->
cast(5105, <>).
%% @spec (Mode::enum(),I1::integer(),I2::integer(),J1::integer(),J2::integer()) -> ok
%% @doc See external documentation.
evalMesh2(Mode,I1,I2,J1,J2) ->
cast(5106, <>).
%% @spec (I::integer()) -> ok
%% @doc See external documentation.
evalPoint1(I) ->
cast(5107, <>).
%% @spec (I::integer(),J::integer()) -> ok
%% @doc See external documentation.
evalPoint2(I,J) ->
cast(5108, <>).
%% @spec (Size::integer(),Type::enum(),Buffer::mem()) -> ok
%% @doc See external documentation.
feedbackBuffer(Size,Type,Buffer) ->
send_bin(Buffer),
call(5109, <>).
%% @spec () -> ok
%% @doc See external documentation.
finish() ->
cast(5110, <<>>).
%% @spec () -> ok
%% @doc See external documentation.
flush() ->
cast(5111, <<>>).
%% @spec (Pname::enum(),Param::float()) -> ok
%% @doc See external documentation.
fogf(Pname,Param) ->
cast(5112, <>).
%% @spec (Pname::enum(),Params::{float()}) -> ok
%% @doc See external documentation.
fogfv(Pname,Params) ->
cast(5113, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>).
%% @spec (Pname::enum(),Param::integer()) -> ok
%% @doc See external documentation.
fogi(Pname,Param) ->
cast(5114, <>).
%% @spec (Pname::enum(),Params::{integer()}) -> ok
%% @doc See external documentation.
fogiv(Pname,Params) ->
cast(5115, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>).
%% @spec (Mode::enum()) -> ok
%% @doc See external documentation.
frontFace(Mode) ->
cast(5116, <>).
%% @spec (Left::float(),Right::float(),Bottom::float(),Top::float(),ZNear::float(),ZFar::float()) -> ok
%% @doc See external documentation.
frustum(Left,Right,Bottom,Top,ZNear,ZFar) ->
cast(5117, <>).
%% @spec (Range::integer()) -> integer()
%% @doc See external documentation.
genLists(Range) ->
call(5118, <>).
%% @spec (N::integer()) -> [integer()]
%% @doc See external documentation.
genTextures(N) ->
call(5119, <>).
%% @spec (Pname::enum()) -> [0|1]
%% @doc See external documentation.
getBooleanv(Pname) ->
call(5120, <>).
%% @spec (Plane::enum()) -> {float()}
%% @doc See external documentation.
getClipPlane(Plane) ->
call(5121, <>).
%% @spec (Pname::enum()) -> [float()]
%% @doc See external documentation.
getDoublev(Pname) ->
call(5122, <>).
%% @spec () -> enum()
%% @doc See external documentation.
getError() ->
call(5123, <<>>).
%% @spec (Pname::enum()) -> [float()]
%% @doc See external documentation.
getFloatv(Pname) ->
call(5124, <>).
%% @spec (Pname::enum()) -> [integer()]
%% @doc See external documentation.
getIntegerv(Pname) ->
call(5125, <>).
%% @spec (Light::enum(),Pname::enum()) -> {float()}
%% @doc See external documentation.
getLightfv(Light,Pname) ->
call(5126, <>).
%% @spec (Light::enum(),Pname::enum()) -> {integer()}
%% @doc See external documentation.
getLightiv(Light,Pname) ->
call(5127, <>).
%% @spec (Target::enum(),Query::enum(),V::mem()) -> ok
%% @doc See external documentation.
getMapdv(Target,Query,V) ->
send_bin(V),
call(5128, <>).
%% @spec (Target::enum(),Query::enum(),V::mem()) -> ok
%% @doc See external documentation.
getMapfv(Target,Query,V) ->
send_bin(V),
call(5129, <>).
%% @spec (Target::enum(),Query::enum(),V::mem()) -> ok
%% @doc See external documentation.
getMapiv(Target,Query,V) ->
send_bin(V),
call(5130, <>).
%% @spec (Face::enum(),Pname::enum()) -> {float()}
%% @doc See external documentation.
getMaterialfv(Face,Pname) ->
call(5131, <>).
%% @spec (Face::enum(),Pname::enum()) -> {integer()}
%% @doc See external documentation.
getMaterialiv(Face,Pname) ->
call(5132, <>).
%% @spec (Map::enum(),Values::mem()) -> ok
%% @doc See external documentation.
getPixelMapfv(Map,Values) ->
send_bin(Values),
call(5133, <>).
%% @spec (Map::enum(),Values::mem()) -> ok
%% @doc See external documentation.
getPixelMapuiv(Map,Values) ->
send_bin(Values),
call(5134, <>).
%% @spec (Map::enum(),Values::mem()) -> ok
%% @doc See external documentation.
getPixelMapusv(Map,Values) ->
send_bin(Values),
call(5135, <>).
%% @spec () -> binary()
%% @doc See external documentation.
getPolygonStipple() ->
call(5136, <<>>).
%% @spec (Name::enum()) -> string()
%% @doc See external documentation.
getString(Name) ->
call(5137, <>).
%% @spec (Target::enum(),Pname::enum()) -> {float()}
%% @doc See external documentation.
getTexEnvfv(Target,Pname) ->
call(5138, <>).
%% @spec (Target::enum(),Pname::enum()) -> {integer()}
%% @doc See external documentation.
getTexEnviv(Target,Pname) ->
call(5139, <>).
%% @spec (Coord::enum(),Pname::enum()) -> {float()}
%% @doc See external documentation.
getTexGendv(Coord,Pname) ->
call(5140, <>).
%% @spec (Coord::enum(),Pname::enum()) -> {float()}
%% @doc See external documentation.
getTexGenfv(Coord,Pname) ->
call(5141, <>).
%% @spec (Coord::enum(),Pname::enum()) -> {integer()}
%% @doc See external documentation.
getTexGeniv(Coord,Pname) ->
call(5142, <>).
%% @spec (Target::enum(),Level::integer(),Format::enum(),Type::enum(),Pixels::mem()) -> ok
%% @doc See external documentation.
getTexImage(Target,Level,Format,Type,Pixels) ->
send_bin(Pixels),
call(5143, <>).
%% @spec (Target::enum(),Level::integer(),Pname::enum()) -> {float()}
%% @doc See external documentation.
getTexLevelParameterfv(Target,Level,Pname) ->
call(5144, <>).
%% @spec (Target::enum(),Level::integer(),Pname::enum()) -> {integer()}
%% @doc See external documentation.
getTexLevelParameteriv(Target,Level,Pname) ->
call(5145, <>).
%% @spec (Target::enum(),Pname::enum()) -> {float()}
%% @doc See external documentation.
getTexParameterfv(Target,Pname) ->
call(5146, <>).
%% @spec (Target::enum(),Pname::enum()) -> {integer()}
%% @doc See external documentation.
getTexParameteriv(Target,Pname) ->
call(5147, <>).
%% @spec (Target::enum(),Mode::enum()) -> ok
%% @doc See external documentation.
hint(Target,Mode) ->
cast(5148, <>).
%% @spec (Mask::integer()) -> ok
%% @doc See external documentation.
indexMask(Mask) ->
cast(5149, <>).
%% @spec (Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
%% @doc See external documentation.
indexPointer(Type,Stride,Pointer) when is_integer(Pointer) ->
cast(5150, <>);
indexPointer(Type,Stride,Pointer) ->
send_bin(Pointer),
cast(5151, <>).
%% @spec (C::float()) -> ok
%% @doc See external documentation.
indexd(C) ->
cast(5152, <>).
%% @spec ({C}) -> ok
%% @equiv indexd(C)
indexdv({C}) -> indexd(C).
%% @spec (C::float()) -> ok
%% @doc See external documentation.
indexf(C) ->
cast(5153, <>).
%% @spec ({C}) -> ok
%% @equiv indexf(C)
indexfv({C}) -> indexf(C).
%% @spec (C::integer()) -> ok
%% @doc See external documentation.
indexi(C) ->
cast(5154, <>).
%% @spec ({C}) -> ok
%% @equiv indexi(C)
indexiv({C}) -> indexi(C).
%% @spec (C::integer()) -> ok
%% @doc See external documentation.
indexs(C) ->
cast(5155, <>).
%% @spec ({C}) -> ok
%% @equiv indexs(C)
indexsv({C}) -> indexs(C).
%% @spec (C::integer()) -> ok
%% @doc See external documentation.
indexub(C) ->
cast(5156, <>).
%% @spec ({C}) -> ok
%% @equiv indexub(C)
indexubv({C}) -> indexub(C).
%% @spec () -> ok
%% @doc See external documentation.
initNames() ->
cast(5157, <<>>).
%% @spec (Format::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
%% @doc See external documentation.
interleavedArrays(Format,Stride,Pointer) when is_integer(Pointer) ->
cast(5158, <>);
interleavedArrays(Format,Stride,Pointer) ->
send_bin(Pointer),
cast(5159, <>).
%% @spec (Cap::enum()) -> 0|1
%% @doc See external documentation.
isEnabled(Cap) ->
call(5160, <>).
%% @spec (List::integer()) -> 0|1
%% @doc See external documentation.
isList(List) ->
call(5161, <>).
%% @spec (Texture::integer()) -> 0|1
%% @doc See external documentation.
isTexture(Texture) ->
call(5162, <>).
%% @spec (Pname::enum(),Param::float()) -> ok
%% @doc See external documentation.
lightModelf(Pname,Param) ->
cast(5163, <>).
%% @spec (Pname::enum(),Params::{float()}) -> ok
%% @doc See external documentation.
lightModelfv(Pname,Params) ->
cast(5164, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>).
%% @spec (Pname::enum(),Param::integer()) -> ok
%% @doc See external documentation.
lightModeli(Pname,Param) ->
cast(5165, <>).
%% @spec (Pname::enum(),Params::{integer()}) -> ok
%% @doc See external documentation.
lightModeliv(Pname,Params) ->
cast(5166, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>).
%% @spec (Light::enum(),Pname::enum(),Param::float()) -> ok
%% @doc See external documentation.
lightf(Light,Pname,Param) ->
cast(5167, <>).
%% @spec (Light::enum(),Pname::enum(),Params::{float()}) -> ok
%% @doc See external documentation.
lightfv(Light,Pname,Params) ->
cast(5168, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
%% @spec (Light::enum(),Pname::enum(),Param::integer()) -> ok
%% @doc See external documentation.
lighti(Light,Pname,Param) ->
cast(5169, <>).
%% @spec (Light::enum(),Pname::enum(),Params::{integer()}) -> ok
%% @doc See external documentation.
lightiv(Light,Pname,Params) ->
cast(5170, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
%% @spec (Factor::integer(),Pattern::integer()) -> ok
%% @doc See external documentation.
lineStipple(Factor,Pattern) ->
cast(5171, <>).
%% @spec (Width::float()) -> ok
%% @doc See external documentation.
lineWidth(Width) ->
cast(5172, <>).
%% @spec (Base::integer()) -> ok
%% @doc See external documentation.
listBase(Base) ->
cast(5173, <>).
%% @spec () -> ok
%% @doc See external documentation.
loadIdentity() ->
cast(5174, <<>>).
%% @spec (M::{float()}) -> ok
%% @doc See external documentation.
loadMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
cast(5175, <>);
loadMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
cast(5175, <>).
%% @spec (M::{float()}) -> ok
%% @doc See external documentation.
loadMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
cast(5176, <>);
loadMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
cast(5176, <>).
%% @spec (Name::integer()) -> ok
%% @doc See external documentation.
loadName(Name) ->
cast(5177, <>).
%% @spec (Opcode::enum()) -> ok
%% @doc See external documentation.
logicOp(Opcode) ->
cast(5178, <>).
%% @spec (Target::enum(),U1::float(),U2::float(),Stride::integer(),Order::integer(),Points::binary()) -> ok
%% @doc See external documentation.
map1d(Target,U1,U2,Stride,Order,Points) ->
send_bin(Points),
cast(5179, <>).
%% @spec (Target::enum(),U1::float(),U2::float(),Stride::integer(),Order::integer(),Points::binary()) -> ok
%% @doc See external documentation.
map1f(Target,U1,U2,Stride,Order,Points) ->
send_bin(Points),
cast(5180, <>).
%% @spec (Target::enum(),U1::float(),U2::float(),Ustride::integer(),Uorder::integer(),V1::float(),V2::float(),Vstride::integer(),Vorder::integer(),Points::binary()) -> ok
%% @doc See external documentation.
map2d(Target,U1,U2,Ustride,Uorder,V1,V2,Vstride,Vorder,Points) ->
send_bin(Points),
cast(5181, <>).
%% @spec (Target::enum(),U1::float(),U2::float(),Ustride::integer(),Uorder::integer(),V1::float(),V2::float(),Vstride::integer(),Vorder::integer(),Points::binary()) -> ok
%% @doc See external documentation.
map2f(Target,U1,U2,Ustride,Uorder,V1,V2,Vstride,Vorder,Points) ->
send_bin(Points),
cast(5182, <>).
%% @spec (Un::integer(),U1::float(),U2::float()) -> ok
%% @doc See external documentation.
mapGrid1d(Un,U1,U2) ->
cast(5183, <>).
%% @spec (Un::integer(),U1::float(),U2::float()) -> ok
%% @doc See external documentation.
mapGrid1f(Un,U1,U2) ->
cast(5184, <>).
%% @spec (Un::integer(),U1::float(),U2::float(),Vn::integer(),V1::float(),V2::float()) -> ok
%% @doc See external documentation.
mapGrid2d(Un,U1,U2,Vn,V1,V2) ->
cast(5185, <>).
%% @spec (Un::integer(),U1::float(),U2::float(),Vn::integer(),V1::float(),V2::float()) -> ok
%% @doc See external documentation.
mapGrid2f(Un,U1,U2,Vn,V1,V2) ->
cast(5186, <>).
%% @spec (Face::enum(),Pname::enum(),Param::float()) -> ok
%% @doc See external documentation.
materialf(Face,Pname,Param) ->
cast(5187, <>).
%% @spec (Face::enum(),Pname::enum(),Params::{float()}) -> ok
%% @doc See external documentation.
materialfv(Face,Pname,Params) ->
cast(5188, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
%% @spec (Face::enum(),Pname::enum(),Param::integer()) -> ok
%% @doc See external documentation.
materiali(Face,Pname,Param) ->
cast(5189, <>).
%% @spec (Face::enum(),Pname::enum(),Params::{integer()}) -> ok
%% @doc See external documentation.
materialiv(Face,Pname,Params) ->
cast(5190, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
%% @spec (Mode::enum()) -> ok
%% @doc See external documentation.
matrixMode(Mode) ->
cast(5191, <>).
%% @spec (M::{float()}) -> ok
%% @doc See external documentation.
multMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
cast(5192, <>);
multMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
cast(5192, <>).
%% @spec (M::{float()}) -> ok
%% @doc See external documentation.
multMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
cast(5193, <>);
multMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
cast(5193, <>).
%% @spec (List::integer(),Mode::enum()) -> ok
%% @doc See external documentation.
newList(List,Mode) ->
cast(5194, <>).
%% @spec (Nx::integer(),Ny::integer(),Nz::integer()) -> ok
%% @doc See external documentation.
normal3b(Nx,Ny,Nz) ->
cast(5195, <>).
%% @spec ({Nx,Ny,Nz}) -> ok
%% @equiv normal3b(Nx,Ny,Nz)
normal3bv({Nx,Ny,Nz}) -> normal3b(Nx,Ny,Nz).
%% @spec (Nx::float(),Ny::float(),Nz::float()) -> ok
%% @doc See external documentation.
normal3d(Nx,Ny,Nz) ->
cast(5196, <>).
%% @spec ({Nx,Ny,Nz}) -> ok
%% @equiv normal3d(Nx,Ny,Nz)
normal3dv({Nx,Ny,Nz}) -> normal3d(Nx,Ny,Nz).
%% @spec (Nx::float(),Ny::float(),Nz::float()) -> ok
%% @doc See external documentation.
normal3f(Nx,Ny,Nz) ->
cast(5197, <>).
%% @spec ({Nx,Ny,Nz}) -> ok
%% @equiv normal3f(Nx,Ny,Nz)
normal3fv({Nx,Ny,Nz}) -> normal3f(Nx,Ny,Nz).
%% @spec (Nx::integer(),Ny::integer(),Nz::integer()) -> ok
%% @doc See external documentation.
normal3i(Nx,Ny,Nz) ->
cast(5198, <>).
%% @spec ({Nx,Ny,Nz}) -> ok
%% @equiv normal3i(Nx,Ny,Nz)
normal3iv({Nx,Ny,Nz}) -> normal3i(Nx,Ny,Nz).
%% @spec (Nx::integer(),Ny::integer(),Nz::integer()) -> ok
%% @doc See external documentation.
normal3s(Nx,Ny,Nz) ->
cast(5199, <>).
%% @spec ({Nx,Ny,Nz}) -> ok
%% @equiv normal3s(Nx,Ny,Nz)
normal3sv({Nx,Ny,Nz}) -> normal3s(Nx,Ny,Nz).
%% @spec (Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
%% @doc See external documentation.
normalPointer(Type,Stride,Pointer) when is_integer(Pointer) ->
cast(5200, <>);
normalPointer(Type,Stride,Pointer) ->
send_bin(Pointer),
cast(5201, <>).
%% @spec (Left::float(),Right::float(),Bottom::float(),Top::float(),ZNear::float(),ZFar::float()) -> ok
%% @doc See external documentation.
ortho(Left,Right,Bottom,Top,ZNear,ZFar) ->
cast(5202, <>).
%% @spec (Token::float()) -> ok
%% @doc See external documentation.
passThrough(Token) ->
cast(5203, <>).
%% @spec (Map::enum(),Mapsize::integer(),Values::binary()) -> ok
%% @doc See external documentation.
pixelMapfv(Map,Mapsize,Values) ->
send_bin(Values),
cast(5204, <>).
%% @spec (Map::enum(),Mapsize::integer(),Values::binary()) -> ok
%% @doc See external documentation.
pixelMapuiv(Map,Mapsize,Values) ->
send_bin(Values),
cast(5205, <>).
%% @spec (Map::enum(),Mapsize::integer(),Values::binary()) -> ok
%% @doc See external documentation.
pixelMapusv(Map,Mapsize,Values) ->
send_bin(Values),
cast(5206, <>).
%% @spec (Pname::enum(),Param::float()) -> ok
%% @doc See external documentation.
pixelStoref(Pname,Param) ->
cast(5207, <>).
%% @spec (Pname::enum(),Param::integer()) -> ok
%% @doc See external documentation.
pixelStorei(Pname,Param) ->
cast(5208, <>).
%% @spec (Pname::enum(),Param::float()) -> ok
%% @doc See external documentation.
pixelTransferf(Pname,Param) ->
cast(5209, <>).
%% @spec (Pname::enum(),Param::integer()) -> ok
%% @doc See external documentation.
pixelTransferi(Pname,Param) ->
cast(5210, <>).
%% @spec (Xfactor::float(),Yfactor::float()) -> ok
%% @doc See external documentation.
pixelZoom(Xfactor,Yfactor) ->
cast(5211, <>).
%% @spec (Size::float()) -> ok
%% @doc See external documentation.
pointSize(Size) ->
cast(5212, <>).
%% @spec (Face::enum(),Mode::enum()) -> ok
%% @doc See external documentation.
polygonMode(Face,Mode) ->
cast(5213, <>).
%% @spec (Factor::float(),Units::float()) -> ok
%% @doc See external documentation.
polygonOffset(Factor,Units) ->
cast(5214, <>).
%% @spec (Mask::binary()) -> ok
%% @doc See external documentation.
polygonStipple(Mask) ->
send_bin(Mask),
cast(5215, <<>>).
%% @spec () -> ok
%% @doc See external documentation.
popAttrib() ->
cast(5216, <<>>).
%% @spec () -> ok
%% @doc See external documentation.
popClientAttrib() ->
cast(5217, <<>>).
%% @spec () -> ok
%% @doc See external documentation.
popMatrix() ->
cast(5218, <<>>).
%% @spec () -> ok
%% @doc See external documentation.
popName() ->
cast(5219, <<>>).
%% @spec (Textures::[integer()],Priorities::[clamp()]) -> ok
%% @doc See external documentation.
prioritizeTextures(Textures,Priorities) ->
cast(5220, <<(length(Textures)):?GLuint,
(<< <> || C <- Textures>>)/binary,0:(((1+length(Textures)) rem 2)*32),(length(Priorities)):?GLuint,
(<< <> || C <- Priorities>>)/binary,0:(((1+length(Priorities)) rem 2)*32)>>).
%% @spec (Mask::integer()) -> ok
%% @doc See external documentation.
pushAttrib(Mask) ->
cast(5221, <>).
%% @spec (Mask::integer()) -> ok
%% @doc See external documentation.
pushClientAttrib(Mask) ->
cast(5222, <>).
%% @spec () -> ok
%% @doc See external documentation.
pushMatrix() ->
cast(5223, <<>>).
%% @spec (Name::integer()) -> ok
%% @doc See external documentation.
pushName(Name) ->
cast(5224, <>).
%% @spec (X::float(),Y::float()) -> ok
%% @doc See external documentation.
rasterPos2d(X,Y) ->
cast(5225, <>).
%% @spec ({X,Y}) -> ok
%% @equiv rasterPos2d(X,Y)
rasterPos2dv({X,Y}) -> rasterPos2d(X,Y).
%% @spec (X::float(),Y::float()) -> ok
%% @doc See external documentation.
rasterPos2f(X,Y) ->
cast(5226, <>).
%% @spec ({X,Y}) -> ok
%% @equiv rasterPos2f(X,Y)
rasterPos2fv({X,Y}) -> rasterPos2f(X,Y).
%% @spec (X::integer(),Y::integer()) -> ok
%% @doc See external documentation.
rasterPos2i(X,Y) ->
cast(5227, <>).
%% @spec ({X,Y}) -> ok
%% @equiv rasterPos2i(X,Y)
rasterPos2iv({X,Y}) -> rasterPos2i(X,Y).
%% @spec (X::integer(),Y::integer()) -> ok
%% @doc See external documentation.
rasterPos2s(X,Y) ->
cast(5228, <>).
%% @spec ({X,Y}) -> ok
%% @equiv rasterPos2s(X,Y)
rasterPos2sv({X,Y}) -> rasterPos2s(X,Y).
%% @spec (X::float(),Y::float(),Z::float()) -> ok
%% @doc See external documentation.
rasterPos3d(X,Y,Z) ->
cast(5229, <>).
%% @spec ({X,Y,Z}) -> ok
%% @equiv rasterPos3d(X,Y,Z)
rasterPos3dv({X,Y,Z}) -> rasterPos3d(X,Y,Z).
%% @spec (X::float(),Y::float(),Z::float()) -> ok
%% @doc See external documentation.
rasterPos3f(X,Y,Z) ->
cast(5230, <>).
%% @spec ({X,Y,Z}) -> ok
%% @equiv rasterPos3f(X,Y,Z)
rasterPos3fv({X,Y,Z}) -> rasterPos3f(X,Y,Z).
%% @spec (X::integer(),Y::integer(),Z::integer()) -> ok
%% @doc See external documentation.
rasterPos3i(X,Y,Z) ->
cast(5231, <>).
%% @spec ({X,Y,Z}) -> ok
%% @equiv rasterPos3i(X,Y,Z)
rasterPos3iv({X,Y,Z}) -> rasterPos3i(X,Y,Z).
%% @spec (X::integer(),Y::integer(),Z::integer()) -> ok
%% @doc See external documentation.
rasterPos3s(X,Y,Z) ->
cast(5232, <>).
%% @spec ({X,Y,Z}) -> ok
%% @equiv rasterPos3s(X,Y,Z)
rasterPos3sv({X,Y,Z}) -> rasterPos3s(X,Y,Z).
%% @spec (X::float(),Y::float(),Z::float(),W::float()) -> ok
%% @doc See external documentation.
rasterPos4d(X,Y,Z,W) ->
cast(5233, <>).
%% @spec ({X,Y,Z,W}) -> ok
%% @equiv rasterPos4d(X,Y,Z,W)
rasterPos4dv({X,Y,Z,W}) -> rasterPos4d(X,Y,Z,W).
%% @spec (X::float(),Y::float(),Z::float(),W::float()) -> ok
%% @doc See external documentation.
rasterPos4f(X,Y,Z,W) ->
cast(5234, <>).
%% @spec ({X,Y,Z,W}) -> ok
%% @equiv rasterPos4f(X,Y,Z,W)
rasterPos4fv({X,Y,Z,W}) -> rasterPos4f(X,Y,Z,W).
%% @spec (X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
%% @doc See external documentation.
rasterPos4i(X,Y,Z,W) ->
cast(5235, <>).
%% @spec ({X,Y,Z,W}) -> ok
%% @equiv rasterPos4i(X,Y,Z,W)
rasterPos4iv({X,Y,Z,W}) -> rasterPos4i(X,Y,Z,W).
%% @spec (X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
%% @doc See external documentation.
rasterPos4s(X,Y,Z,W) ->
cast(5236, <>).
%% @spec ({X,Y,Z,W}) -> ok
%% @equiv rasterPos4s(X,Y,Z,W)
rasterPos4sv({X,Y,Z,W}) -> rasterPos4s(X,Y,Z,W).
%% @spec (Mode::enum()) -> ok
%% @doc See external documentation.
readBuffer(Mode) ->
cast(5237, <>).
%% @spec (X::integer(),Y::integer(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Pixels::mem()) -> ok
%% @doc See external documentation.
readPixels(X,Y,Width,Height,Format,Type,Pixels) ->
send_bin(Pixels),
call(5238, <>).
%% @spec (X1::float(),Y1::float(),X2::float(),Y2::float()) -> ok
%% @doc See external documentation.
rectd(X1,Y1,X2,Y2) ->
cast(5239, <>).
%% @spec (V1::{float()},V2::{float()}) -> ok
%% @doc See external documentation.
rectdv({V1,V2},{V1,V2}) ->
cast(5240, <>).
%% @spec (X1::float(),Y1::float(),X2::float(),Y2::float()) -> ok
%% @doc See external documentation.
rectf(X1,Y1,X2,Y2) ->
cast(5241, <>).
%% @spec (V1::{float()},V2::{float()}) -> ok
%% @doc See external documentation.
rectfv({V1,V2},{V1,V2}) ->
cast(5242, <>).
%% @spec (X1::integer(),Y1::integer(),X2::integer(),Y2::integer()) -> ok
%% @doc See external documentation.
recti(X1,Y1,X2,Y2) ->
cast(5243, <>).
%% @spec (V1::{integer()},V2::{integer()}) -> ok
%% @doc See external documentation.
rectiv({V1,V2},{V1,V2}) ->
cast(5244, <>).
%% @spec (X1::integer(),Y1::integer(),X2::integer(),Y2::integer()) -> ok
%% @doc See external documentation.
rects(X1,Y1,X2,Y2) ->
cast(5245, <>).
%% @spec (V1::{integer()},V2::{integer()}) -> ok
%% @doc See external documentation.
rectsv({V1,V2},{V1,V2}) ->
cast(5246, <>).
%% @spec (Mode::enum()) -> integer()
%% @doc See external documentation.
renderMode(Mode) ->
call(5247, <>).
%% @spec (Angle::float(),X::float(),Y::float(),Z::float()) -> ok
%% @doc See external documentation.
rotated(Angle,X,Y,Z) ->
cast(5248, <>).
%% @spec (Angle::float(),X::float(),Y::float(),Z::float()) -> ok
%% @doc See external documentation.
rotatef(Angle,X,Y,Z) ->
cast(5249, <>).
%% @spec (X::float(),Y::float(),Z::float()) -> ok
%% @doc See external documentation.
scaled(X,Y,Z) ->
cast(5250, <>).
%% @spec (X::float(),Y::float(),Z::float()) -> ok
%% @doc See external documentation.
scalef(X,Y,Z) ->
cast(5251, <>).
%% @spec (X::integer(),Y::integer(),Width::integer(),Height::integer()) -> ok
%% @doc See external documentation.
scissor(X,Y,Width,Height) ->
cast(5252, <>).
%% @spec (Size::integer(),Buffer::mem()) -> ok
%% @doc See external documentation.
selectBuffer(Size,Buffer) ->
send_bin(Buffer),
call(5253, <>).
%% @spec (Mode::enum()) -> ok
%% @doc See external documentation.
shadeModel(Mode) ->
cast(5254, <>).
%% @spec (Func::enum(),Ref::integer(),Mask::integer()) -> ok
%% @doc See external documentation.
stencilFunc(Func,Ref,Mask) ->
cast(5255, <>).
%% @spec (Mask::integer()) -> ok
%% @doc See external documentation.
stencilMask(Mask) ->
cast(5256, <>).
%% @spec (Fail::enum(),Zfail::enum(),Zpass::enum()) -> ok
%% @doc See external documentation.
stencilOp(Fail,Zfail,Zpass) ->
cast(5257, <>).
%% @spec (S::float()) -> ok
%% @doc See external documentation.
texCoord1d(S) ->
cast(5258, <>).
%% @spec ({S}) -> ok
%% @equiv texCoord1d(S)
texCoord1dv({S}) -> texCoord1d(S).
%% @spec (S::float()) -> ok
%% @doc See external documentation.
texCoord1f(S) ->
cast(5259, <>).
%% @spec ({S}) -> ok
%% @equiv texCoord1f(S)
texCoord1fv({S}) -> texCoord1f(S).
%% @spec (S::integer()) -> ok
%% @doc See external documentation.
texCoord1i(S) ->
cast(5260, <>).
%% @spec ({S}) -> ok
%% @equiv texCoord1i(S)
texCoord1iv({S}) -> texCoord1i(S).
%% @spec (S::integer()) -> ok
%% @doc See external documentation.
texCoord1s(S) ->
cast(5261, <>).
%% @spec ({S}) -> ok
%% @equiv texCoord1s(S)
texCoord1sv({S}) -> texCoord1s(S).
%% @spec (S::float(),T::float()) -> ok
%% @doc See external documentation.
texCoord2d(S,T) ->
cast(5262, <>).
%% @spec ({S,T}) -> ok
%% @equiv texCoord2d(S,T)
texCoord2dv({S,T}) -> texCoord2d(S,T).
%% @spec (S::float(),T::float()) -> ok
%% @doc See external documentation.
texCoord2f(S,T) ->
cast(5263, <>).
%% @spec ({S,T}) -> ok
%% @equiv texCoord2f(S,T)
texCoord2fv({S,T}) -> texCoord2f(S,T).
%% @spec (S::integer(),T::integer()) -> ok
%% @doc See external documentation.
texCoord2i(S,T) ->
cast(5264, <>).
%% @spec ({S,T}) -> ok
%% @equiv texCoord2i(S,T)
texCoord2iv({S,T}) -> texCoord2i(S,T).
%% @spec (S::integer(),T::integer()) -> ok
%% @doc See external documentation.
texCoord2s(S,T) ->
cast(5265, <>).
%% @spec ({S,T}) -> ok
%% @equiv texCoord2s(S,T)
texCoord2sv({S,T}) -> texCoord2s(S,T).
%% @spec (S::float(),T::float(),R::float()) -> ok
%% @doc See external documentation.
texCoord3d(S,T,R) ->
cast(5266, <>).
%% @spec ({S,T,R}) -> ok
%% @equiv texCoord3d(S,T,R)
texCoord3dv({S,T,R}) -> texCoord3d(S,T,R).
%% @spec (S::float(),T::float(),R::float()) -> ok
%% @doc See external documentation.
texCoord3f(S,T,R) ->
cast(5267, <>).
%% @spec ({S,T,R}) -> ok
%% @equiv texCoord3f(S,T,R)
texCoord3fv({S,T,R}) -> texCoord3f(S,T,R).
%% @spec (S::integer(),T::integer(),R::integer()) -> ok
%% @doc See external documentation.
texCoord3i(S,T,R) ->
cast(5268, <>).
%% @spec ({S,T,R}) -> ok
%% @equiv texCoord3i(S,T,R)
texCoord3iv({S,T,R}) -> texCoord3i(S,T,R).
%% @spec (S::integer(),T::integer(),R::integer()) -> ok
%% @doc See external documentation.
texCoord3s(S,T,R) ->
cast(5269, <>).
%% @spec ({S,T,R}) -> ok
%% @equiv texCoord3s(S,T,R)
texCoord3sv({S,T,R}) -> texCoord3s(S,T,R).
%% @spec (S::float(),T::float(),R::float(),Q::float()) -> ok
%% @doc See external documentation.
texCoord4d(S,T,R,Q) ->
cast(5270, <>).
%% @spec ({S,T,R,Q}) -> ok
%% @equiv texCoord4d(S,T,R,Q)
texCoord4dv({S,T,R,Q}) -> texCoord4d(S,T,R,Q).
%% @spec (S::float(),T::float(),R::float(),Q::float()) -> ok
%% @doc See external documentation.
texCoord4f(S,T,R,Q) ->
cast(5271, <>).
%% @spec ({S,T,R,Q}) -> ok
%% @equiv texCoord4f(S,T,R,Q)
texCoord4fv({S,T,R,Q}) -> texCoord4f(S,T,R,Q).
%% @spec (S::integer(),T::integer(),R::integer(),Q::integer()) -> ok
%% @doc See external documentation.
texCoord4i(S,T,R,Q) ->
cast(5272, <>).
%% @spec ({S,T,R,Q}) -> ok
%% @equiv texCoord4i(S,T,R,Q)
texCoord4iv({S,T,R,Q}) -> texCoord4i(S,T,R,Q).
%% @spec (S::integer(),T::integer(),R::integer(),Q::integer()) -> ok
%% @doc See external documentation.
texCoord4s(S,T,R,Q) ->
cast(5273, <>).
%% @spec ({S,T,R,Q}) -> ok
%% @equiv texCoord4s(S,T,R,Q)
texCoord4sv({S,T,R,Q}) -> texCoord4s(S,T,R,Q).
%% @spec (Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
%% @doc See external documentation.
texCoordPointer(Size,Type,Stride,Pointer) when is_integer(Pointer) ->
cast(5274, <>);
texCoordPointer(Size,Type,Stride,Pointer) ->
send_bin(Pointer),
cast(5275, <>).
%% @spec (Target::enum(),Pname::enum(),Param::float()) -> ok
%% @doc See external documentation.
texEnvf(Target,Pname,Param) ->
cast(5276, <>).
%% @spec (Target::enum(),Pname::enum(),Params::{float()}) -> ok
%% @doc See external documentation.
texEnvfv(Target,Pname,Params) ->
cast(5277, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
%% @spec (Target::enum(),Pname::enum(),Param::integer()) -> ok
%% @doc See external documentation.
texEnvi(Target,Pname,Param) ->
cast(5278, <>).
%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok
%% @doc See external documentation.
texEnviv(Target,Pname,Params) ->
cast(5279, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
%% @spec (Coord::enum(),Pname::enum(),Param::float()) -> ok
%% @doc See external documentation.
texGend(Coord,Pname,Param) ->
cast(5280, <>).
%% @spec (Coord::enum(),Pname::enum(),Params::{float()}) -> ok
%% @doc See external documentation.
texGendv(Coord,Pname,Params) ->
cast(5281, <> ||C <- tuple_to_list(Params)>>)/binary>>).
%% @spec (Coord::enum(),Pname::enum(),Param::float()) -> ok
%% @doc See external documentation.
texGenf(Coord,Pname,Param) ->
cast(5282, <>).
%% @spec (Coord::enum(),Pname::enum(),Params::{float()}) -> ok
%% @doc See external documentation.
texGenfv(Coord,Pname,Params) ->
cast(5283, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
%% @spec (Coord::enum(),Pname::enum(),Param::integer()) -> ok
%% @doc See external documentation.
texGeni(Coord,Pname,Param) ->
cast(5284, <>).
%% @spec (Coord::enum(),Pname::enum(),Params::{integer()}) -> ok
%% @doc See external documentation.
texGeniv(Coord,Pname,Params) ->
cast(5285, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
%% @spec (Target::enum(),Level::integer(),Internalformat::integer(),Width::integer(),Border::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
%% @doc See external documentation.
texImage1D(Target,Level,Internalformat,Width,Border,Format,Type,Pixels) when is_integer(Pixels) ->
cast(5286, <>);
texImage1D(Target,Level,Internalformat,Width,Border,Format,Type,Pixels) ->
send_bin(Pixels),
cast(5287, <>).
%% @spec (Target::enum(),Level::integer(),Internalformat::integer(),Width::integer(),Height::integer(),Border::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
%% @doc See external documentation.
texImage2D(Target,Level,Internalformat,Width,Height,Border,Format,Type,Pixels) when is_integer(Pixels) ->
cast(5288, <>);
texImage2D(Target,Level,Internalformat,Width,Height,Border,Format,Type,Pixels) ->
send_bin(Pixels),
cast(5289, <>).
%% @spec (Target::enum(),Pname::enum(),Param::float()) -> ok
%% @doc See external documentation.
texParameterf(Target,Pname,Param) ->
cast(5290, <>).
%% @spec (Target::enum(),Pname::enum(),Params::{float()}) -> ok
%% @doc See external documentation.
texParameterfv(Target,Pname,Params) ->
cast(5291, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
%% @spec (Target::enum(),Pname::enum(),Param::integer()) -> ok
%% @doc See external documentation.
texParameteri(Target,Pname,Param) ->
cast(5292, <>).
%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok
%% @doc See external documentation.
texParameteriv(Target,Pname,Params) ->
cast(5293, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Width::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
%% @doc See external documentation.
texSubImage1D(Target,Level,Xoffset,Width,Format,Type,Pixels) when is_integer(Pixels) ->
cast(5294, <>);
texSubImage1D(Target,Level,Xoffset,Width,Format,Type,Pixels) ->
send_bin(Pixels),
cast(5295, <>).
%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
%% @doc See external documentation.
texSubImage2D(Target,Level,Xoffset,Yoffset,Width,Height,Format,Type,Pixels) when is_integer(Pixels) ->
cast(5296, <>);
texSubImage2D(Target,Level,Xoffset,Yoffset,Width,Height,Format,Type,Pixels) ->
send_bin(Pixels),
cast(5297, <>).
%% @spec (X::float(),Y::float(),Z::float()) -> ok
%% @doc See external documentation.
translated(X,Y,Z) ->
cast(5298, <>).
%% @spec (X::float(),Y::float(),Z::float()) -> ok
%% @doc See external documentation.
translatef(X,Y,Z) ->
cast(5299, <>).
%% @spec (X::float(),Y::float()) -> ok
%% @doc See