Monkey Documentation

Module opengl.gles20

The gles20 module provides a Monkey wrapper for the OpenGL ES 2.0 More...


Imports:
Constants:
  • GL_ACTIVE_ATTRIBUTES : Int
  • GL_ACTIVE_ATTRIBUTE_MAX_LENGTH : Int
  • GL_ACTIVE_TEXTURE : Int
  • GL_ACTIVE_UNIFORMS : Int
  • GL_ACTIVE_UNIFORM_MAX_LENGTH : Int
  • GL_ALIASED_LINE_WIDTH_RANGE : Int
  • GL_ALIASED_POINT_SIZE_RANGE : Int
  • GL_ALPHA : Int
  • GL_ALPHA_BITS : Int
  • GL_ALWAYS : Int
  • GL_ARRAY_BUFFER : Int
  • GL_ARRAY_BUFFER_BINDING : Int
  • GL_ATTACHED_SHADERS : Int
  • GL_BACK : Int
  • GL_BLEND : Int
  • GL_BLEND_COLOR : Int
  • GL_BLEND_DST_ALPHA : Int
  • GL_BLEND_DST_RGB : Int
  • GL_BLEND_EQUATION : Int
  • GL_BLEND_EQUATION_ALPHA : Int
  • GL_BLEND_EQUATION_RGB : Int
  • GL_BLEND_SRC_ALPHA : Int
  • GL_BLEND_SRC_RGB : Int
  • GL_BLUE_BITS : Int
  • GL_BOOL : Int
  • GL_BOOL_VEC2 : Int
  • GL_BOOL_VEC3 : Int
  • GL_BOOL_VEC4 : Int
  • GL_BUFFER_SIZE : Int
  • GL_BUFFER_USAGE : Int
  • GL_BYTE : Int
  • GL_CCW : Int
  • GL_CLAMP_TO_EDGE : Int
  • GL_COLOR_ATTACHMENT0 : Int
  • GL_COLOR_BUFFER_BIT : Int
  • GL_COLOR_CLEAR_VALUE : Int
  • GL_COLOR_WRITEMASK : Int
  • GL_COMPILE_STATUS : Int
  • GL_COMPRESSED_TEXTURE_FORMATS : Int
  • GL_CONSTANT_ALPHA : Int
  • GL_CONSTANT_COLOR : Int
  • GL_CULL_FACE : Int
  • GL_CULL_FACE_MODE : Int
  • GL_CURRENT_PROGRAM : Int
  • GL_CURRENT_VERTEX_ATTRIB : Int
  • GL_CW : Int
  • GL_DECR : Int
  • GL_DECR_WRAP : Int
  • GL_DELETE_STATUS : Int
  • GL_DEPTH_ATTACHMENT : Int
  • GL_DEPTH_BITS : Int
  • GL_DEPTH_BUFFER_BIT : Int
  • GL_DEPTH_CLEAR_VALUE : Int
  • GL_DEPTH_COMPONENT : Int
  • GL_DEPTH_COMPONENT16 : Int
  • GL_DEPTH_FUNC : Int
  • GL_DEPTH_RANGE : Int
  • GL_DEPTH_TEST : Int
  • GL_DEPTH_WRITEMASK : Int
  • GL_DITHER : Int
  • GL_DONT_CARE : Int
  • GL_DST_ALPHA : Int
  • GL_DST_COLOR : Int
  • GL_DYNAMIC_DRAW : Int
  • GL_ELEMENT_ARRAY_BUFFER : Int
  • GL_ELEMENT_ARRAY_BUFFER_BINDING : Int
  • GL_EQUAL : Int
  • GL_EXTENSIONS : Int
  • GL_FALSE : Int
  • GL_FASTEST : Int
  • GL_FIXED : Int
  • GL_FLOAT : Int
  • GL_FLOAT_MAT2 : Int
  • GL_FLOAT_MAT3 : Int
  • GL_FLOAT_MAT4 : Int
  • GL_FLOAT_VEC2 : Int
  • GL_FLOAT_VEC3 : Int
  • GL_FLOAT_VEC4 : Int
  • GL_FRAGMENT_SHADER : Int
  • GL_FRAMEBUFFER : Int
  • GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME : Int
  • GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE : Int
  • GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE : Int
  • GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL : Int
  • GL_FRAMEBUFFER_BINDING : Int
  • GL_FRAMEBUFFER_COMPLETE : Int
  • GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT : Int
  • GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS : Int
  • GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT : Int
  • GL_FRAMEBUFFER_UNSUPPORTED : Int
  • GL_FRONT : Int
  • GL_FRONT_AND_BACK : Int
  • GL_FRONT_FACE : Int
  • GL_FUNC_ADD : Int
  • GL_FUNC_REVERSE_SUBTRACT : Int
  • GL_FUNC_SUBTRACT : Int
  • GL_GENERATE_MIPMAP_HINT : Int
  • GL_GEQUAL : Int
  • GL_GREATER : Int
  • GL_GREEN_BITS : Int
  • GL_HIGH_FLOAT : Int
  • GL_HIGH_INT : Int
  • GL_IMPLEMENTATION_COLOR_READ_FORMAT : Int
  • GL_IMPLEMENTATION_COLOR_READ_TYPE : Int
  • GL_INCR : Int
  • GL_INCR_WRAP : Int
  • GL_INFO_LOG_LENGTH : Int
  • GL_INT : Int
  • GL_INT_VEC2 : Int
  • GL_INT_VEC3 : Int
  • GL_INT_VEC4 : Int
  • GL_INVALID_ENUM : Int
  • GL_INVALID_FRAMEBUFFER_OPERATION : Int
  • GL_INVALID_OPERATION : Int
  • GL_INVALID_VALUE : Int
  • GL_INVERT : Int
  • GL_KEEP : Int
  • GL_LEQUAL : Int
  • GL_LESS : Int
  • GL_LINEAR : Int
  • GL_LINEAR_MIPMAP_LINEAR : Int
  • GL_LINEAR_MIPMAP_NEAREST : Int
  • GL_LINES : Int
  • GL_LINE_LOOP : Int
  • GL_LINE_STRIP : Int
  • GL_LINE_WIDTH : Int
  • GL_LINK_STATUS : Int
  • GL_LOW_FLOAT : Int
  • GL_LOW_INT : Int
  • GL_LUMINANCE : Int
  • GL_LUMINANCE_ALPHA : Int
  • GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS : Int
  • GL_MAX_CUBE_MAP_TEXTURE_SIZE : Int
  • GL_MAX_FRAGMENT_UNIFORM_VECTORS : Int
  • GL_MAX_RENDERBUFFER_SIZE : Int
  • GL_MAX_TEXTURE_IMAGE_UNITS : Int
  • GL_MAX_TEXTURE_SIZE : Int
  • GL_MAX_VARYING_VECTORS : Int
  • GL_MAX_VERTEX_ATTRIBS : Int
  • GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS : Int
  • GL_MAX_VERTEX_UNIFORM_VECTORS : Int
  • GL_MAX_VIEWPORT_DIMS : Int
  • GL_MEDIUM_FLOAT : Int
  • GL_MEDIUM_INT : Int
  • GL_MIRRORED_REPEAT : Int
  • GL_NEAREST : Int
  • GL_NEAREST_MIPMAP_LINEAR : Int
  • GL_NEAREST_MIPMAP_NEAREST : Int
  • GL_NEVER : Int
  • GL_NICEST : Int
  • GL_NONE : Int
  • GL_NOTEQUAL : Int
  • GL_NO_ERROR : Int
  • GL_NUM_COMPRESSED_TEXTURE_FORMATS : Int
  • GL_NUM_SHADER_BINARY_FORMATS : Int
  • GL_ONE : Int
  • GL_ONE_MINUS_CONSTANT_ALPHA : Int
  • GL_ONE_MINUS_CONSTANT_COLOR : Int
  • GL_ONE_MINUS_DST_ALPHA : Int
  • GL_ONE_MINUS_DST_COLOR : Int
  • GL_ONE_MINUS_SRC_ALPHA : Int
  • GL_ONE_MINUS_SRC_COLOR : Int
  • GL_OUT_OF_MEMORY : Int
  • GL_PACK_ALIGNMENT : Int
  • GL_POINTS : Int
  • GL_POLYGON_OFFSET_FACTOR : Int
  • GL_POLYGON_OFFSET_FILL : Int
  • GL_POLYGON_OFFSET_UNITS : Int
  • GL_RED_BITS : Int
  • GL_RENDERBUFFER : Int
  • GL_RENDERBUFFER_ALPHA_SIZE : Int
  • GL_RENDERBUFFER_BINDING : Int
  • GL_RENDERBUFFER_BLUE_SIZE : Int
  • GL_RENDERBUFFER_DEPTH_SIZE : Int
  • GL_RENDERBUFFER_GREEN_SIZE : Int
  • GL_RENDERBUFFER_HEIGHT : Int
  • GL_RENDERBUFFER_INTERNAL_FORMAT : Int
  • GL_RENDERBUFFER_RED_SIZE : Int
  • GL_RENDERBUFFER_STENCIL_SIZE : Int
  • GL_RENDERBUFFER_WIDTH : Int
  • GL_RENDERER : Int
  • GL_REPEAT : Int
  • GL_REPLACE : Int
  • GL_RGB : Int
  • GL_RGB565 : Int
  • GL_RGB5_A1 : Int
  • GL_RGBA : Int
  • GL_RGBA4 : Int
  • GL_SAMPLER_2D : Int
  • GL_SAMPLER_CUBE : Int
  • GL_SAMPLES : Int
  • GL_SAMPLE_ALPHA_TO_COVERAGE : Int
  • GL_SAMPLE_BUFFERS : Int
  • GL_SAMPLE_COVERAGE : Int
  • GL_SAMPLE_COVERAGE_INVERT : Int
  • GL_SAMPLE_COVERAGE_VALUE : Int
  • GL_SCISSOR_BOX : Int
  • GL_SCISSOR_TEST : Int
  • GL_SHADER_BINARY_FORMATS : Int
  • GL_SHADER_COMPILER : Int
  • GL_SHADER_SOURCE_LENGTH : Int
  • GL_SHADER_TYPE : Int
  • GL_SHADING_LANGUAGE_VERSION : Int
  • GL_SHORT : Int
  • GL_SRC_ALPHA : Int
  • GL_SRC_ALPHA_SATURATE : Int
  • GL_SRC_COLOR : Int
  • GL_STATIC_DRAW : Int
  • GL_STENCIL_ATTACHMENT : Int
  • GL_STENCIL_BACK_FAIL : Int
  • GL_STENCIL_BACK_FUNC : Int
  • GL_STENCIL_BACK_PASS_DEPTH_FAIL : Int
  • GL_STENCIL_BACK_PASS_DEPTH_PASS : Int
  • GL_STENCIL_BACK_REF : Int
  • GL_STENCIL_BACK_VALUE_MASK : Int
  • GL_STENCIL_BACK_WRITEMASK : Int
  • GL_STENCIL_BITS : Int
  • GL_STENCIL_BUFFER_BIT : Int
  • GL_STENCIL_CLEAR_VALUE : Int
  • GL_STENCIL_FAIL : Int
  • GL_STENCIL_FUNC : Int
  • GL_STENCIL_INDEX : Int
  • GL_STENCIL_INDEX8 : Int
  • GL_STENCIL_PASS_DEPTH_FAIL : Int
  • GL_STENCIL_PASS_DEPTH_PASS : Int
  • GL_STENCIL_REF : Int
  • GL_STENCIL_TEST : Int
  • GL_STENCIL_VALUE_MASK : Int
  • GL_STENCIL_WRITEMASK : Int
  • GL_STREAM_DRAW : Int
  • GL_SUBPIXEL_BITS : Int
  • GL_TEXTURE : Int
  • GL_TEXTURE0 : Int
  • GL_TEXTURE1 : Int
  • GL_TEXTURE10 : Int
  • GL_TEXTURE11 : Int
  • GL_TEXTURE12 : Int
  • GL_TEXTURE13 : Int
  • GL_TEXTURE14 : Int
  • GL_TEXTURE15 : Int
  • GL_TEXTURE16 : Int
  • GL_TEXTURE17 : Int
  • GL_TEXTURE18 : Int
  • GL_TEXTURE19 : Int
  • GL_TEXTURE2 : Int
  • GL_TEXTURE20 : Int
  • GL_TEXTURE21 : Int
  • GL_TEXTURE22 : Int
  • GL_TEXTURE23 : Int
  • GL_TEXTURE24 : Int
  • GL_TEXTURE25 : Int
  • GL_TEXTURE26 : Int
  • GL_TEXTURE27 : Int
  • GL_TEXTURE28 : Int
  • GL_TEXTURE29 : Int
  • GL_TEXTURE3 : Int
  • GL_TEXTURE30 : Int
  • GL_TEXTURE31 : Int
  • GL_TEXTURE4 : Int
  • GL_TEXTURE5 : Int
  • GL_TEXTURE6 : Int
  • GL_TEXTURE7 : Int
  • GL_TEXTURE8 : Int
  • GL_TEXTURE9 : Int
  • GL_TEXTURE_2D : Int
  • GL_TEXTURE_BINDING_2D : Int
  • GL_TEXTURE_BINDING_CUBE_MAP : Int
  • GL_TEXTURE_CUBE_MAP : Int
  • GL_TEXTURE_CUBE_MAP_NEGATIVE_X : Int
  • GL_TEXTURE_CUBE_MAP_NEGATIVE_Y : Int
  • GL_TEXTURE_CUBE_MAP_NEGATIVE_Z : Int
  • GL_TEXTURE_CUBE_MAP_POSITIVE_X : Int
  • GL_TEXTURE_CUBE_MAP_POSITIVE_Y : Int
  • GL_TEXTURE_CUBE_MAP_POSITIVE_Z : Int
  • GL_TEXTURE_MAG_FILTER : Int
  • GL_TEXTURE_MIN_FILTER : Int
  • GL_TEXTURE_WRAP_S : Int
  • GL_TEXTURE_WRAP_T : Int
  • GL_TRIANGLES : Int
  • GL_TRIANGLE_FAN : Int
  • GL_TRIANGLE_STRIP : Int
  • GL_TRUE : Int
  • GL_UNPACK_ALIGNMENT : Int
  • GL_UNSIGNED_BYTE : Int
  • GL_UNSIGNED_INT : Int
  • GL_UNSIGNED_SHORT : Int
  • GL_UNSIGNED_SHORT_4_4_4_4 : Int
  • GL_UNSIGNED_SHORT_5_5_5_1 : Int
  • GL_UNSIGNED_SHORT_5_6_5 : Int
  • GL_VALIDATE_STATUS : Int
  • GL_VENDOR : Int
  • GL_VERSION : Int
  • GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING : Int
  • GL_VERTEX_ATTRIB_ARRAY_ENABLED : Int
  • GL_VERTEX_ATTRIB_ARRAY_NORMALIZED : Int
  • GL_VERTEX_ATTRIB_ARRAY_POINTER : Int
  • GL_VERTEX_ATTRIB_ARRAY_SIZE : Int
  • GL_VERTEX_ATTRIB_ARRAY_STRIDE : Int
  • GL_VERTEX_ATTRIB_ARRAY_TYPE : Int
  • GL_VERTEX_SHADER : Int
  • GL_VIEWPORT : Int
  • GL_ZERO : Int
Functions:

Detailed Discussion

The gles20 module provides a Monkey wrapper for the OpenGL ES 2.0 API on the android, glfw, html5 and ios targets.

The Monkey API is based on the 'C' API, with a few modifications:

  • The glGen and glDelete functions have been replaced with WebGL style glCreate and glDelete functions.
  • Monkey arrays are used to represent typed pointer parameters. It is up to you to ensure such arrays are large enough for the function being called - you should assume no runtime checking is performed.
  • DataBuffer objects are used to represent void pointer parameters. Again, it is up to you to ensure such databuffers are large enough for the function being called.
  • Versions of glTexImage that take image file paths have been added to all targets.
To import the gles20 module into your app, use: Import opengl.gles20.

The opengl modules currently depend on the the mojo module to create and manage opengl contexts, so you must also import mojo.

HTML5 notes

You will need a web browser that supports WebGL.

Client side arrays are not supported in WebGL, so the versions of glVertexAttribPointer and glDrawElements that take a DataBuffer parameter are also not supported. You must use vertex buffer objects for vertex and index data on the HTML5 target.

LoadImageData is not supported on HTML5, so the only way you can load an image file into a texture is by using the versions of glTexImage that take an image path parameter.

Android notes

GLES2.0 is only available on API 8 or higher. In addition, if you want to target API 8 (Android 2.2 'Froyo') and want to use vertex buffer objects, you must set the app config setting "ANDROID_NATIVE_GL_ENABLED" to "true". This will cause some 'native code' to be added to your app that works around an issue in Android API 8. Note that this is not necessary if you are targeting API 9 or higher.

GLFW notes

Your graphics driver must support OpenGL2.0 or higher.

See also DataBuffer, LoadImageData, App config settings, OpenGL ES 2.0 reference


Function Documentation

Function LoadImageData : DataBuffer ( path:String, info:Int[] )

LoadImageData is a helper function that loads an image in your app's .data directory into a databuffer.

Upon success, info[0] is initialized to the width of the image, and info[1] is initialized to the height of the image. If the info array is not long enough, info is not written.

The image is returned in tightly packed, byte-per-component R,G,B,A format.

IMPORTANT: LoadImageData is not currently available on the HTML5 target.

See also DataBuffer

Function glActiveTexture : Void ( texture:Int )

Function glAttachShader : Void ( program:Int, shader:Int )

Function glBindAttribLocation : Void ( program:Int, index:Int, name:String )

Function glBindBuffer : Void ( target:Int, buffer:Int )

Function glBindFramebuffer : Void ( target:Int, framebuffer:Int )

Function glBindRenderbuffer : Void ( target:Int, renderbuffer:Int )

Function glBindTexture : Void ( target:Int, texture:Int )

Function glBlendColor : Void ( red:Float, green:Float, blue:Float, alpha:Float )

Function glBlendEquation : Void ( mode:Int )

Function glBlendEquationSeparate : Void ( modeRGB:Int, modeAlpha:Int )

Function glBlendFunc : Void ( sfactor:Int, dfactor:Int )

Function glBlendFuncSeparate : Void ( srcRGB:Int, dstRGB:Int, srcAlpha:Int, dstAlpha:Int )

Function glBufferData : Void ( target:Int, size:Int, data:DataBuffer, usage:Int )

Function glBufferSubData : Void ( target:Int, offset:Int, size:Int, data:DataBuffer )

Function glCheckFramebufferStatus : Int ( target:Int )

Function glClear : Void ( mask:Int )

Function glClearColor : Void ( red:Float, green:Float, blue:Float, alpha:Float )

Function glClearDepthf : Void ( depth:Float )

Function glClearStencil : Void ( s:Int )

Function glColorMask : Void ( red:Bool, green:Bool, blue:Bool, alpha:Bool )

Function glCompileShader : Void ( shader:Int )

Function glCopyTexImage2D : Void ( target:Int, level:Int, internalformat:Int, x:Int, y:Int, width:Int, height:Int, border:Int )

Function glCopyTexSubImage2D : Void ( target:Int, level:Int, xoffset:Int, yoffset:Int, x:Int, y:Int, width:Int, height:Int )

Function glCreateBuffer : Int ()

Function glCreateFramebuffer : Int ()

Function glCreateProgram : Int ()

Function glCreateRenderbuffer : Int ()

Function glCreateShader : Int ( type:Int )

Function glCreateTexture : Int ()

Function glCullFace : Void ( mode:Int )

Function glDeleteBuffer : Void ( buffer:Int )

Function glDeleteFramebuffer : Void ( framebuffer:Int )

Function glDeleteProgram : Void ( program:Int )

Function glDeleteRenderbuffer : Void ( renderBuffer:Int )

Function glDeleteShader : Void ( shader:Int )

Function glDeleteTexture : Void ( texture:Int )

Function glDepthFunc : Void ( func:Int )

Function glDepthMask : Void ( flag:Bool )

Function glDepthRangef : Void ( zNear:Float, zFar:Float )

Function glDetachShader : Void ( program:Int, shader:Int )

Function glDisable : Void ( cap:Int )

Function glDisableVertexAttribArray : Void ( index:Int )

Function glDrawArrays : Void ( mode:Int, first:Int, count:Int )

Function glDrawElements : Void ( mode:Int, count:Int, type:Int, ptr:DataBuffer )

Function glDrawElements : Void ( mode:Int, count:Int, type:Int, offset:Int )

Function glEnable : Void ( cap:Int )

Function glEnableVertexAttribArray : Void ( index:Int )

Function glFinish : Void ()

Function glFlush : Void ()

Function glFramebufferRenderbuffer : Void ( target:Int, attachment:Int, renderbuffertarget:Int, renderbuffer:Int )

Function glFramebufferTexture2D : Void ( target:Int, attachment:Int, textarget:Int, texture:Int, level:Int )

Function glFrontFace : Void ( mode:Int )

Function glGenerateMipmap : Void ( target:Int )

Function glGetActiveAttrib : Void ( program:Int, index:Int, size:Int[], type:Int[], name:String[] )

Function glGetActiveUniform : Void ( program:Int, index:Int, size:Int[], type:Int[], name:String[] )

Function glGetAttachedShaders : Void ( program:Int, maxcount:Int, count:Int[], shaders:Int[] )

Function glGetAttribLocation : Int ( program:Int, name:String )

Function glGetBooleanv : Void ( pname:Int, params:Bool[] )

Function glGetBufferParameteriv : Void ( target:Int, pname:Int, params:Int[] )

Function glGetError : Int ()

Function glGetFloatv : Void ( pname:Int, params:Float[] )

Function glGetFramebufferAttachmentParameteriv : Void ( target:Int, attachment:Int, pname:Int, params:Int[] )

Function glGetIntegerv : Void ( pname:Int, params:Int[] )

Function glGetProgramInfoLog : String ( program:Int )

Function glGetProgramiv : Void ( program:Int, pname:Int, params:Int[] )

Function glGetRenderbufferParameteriv : Void ( target:Int, pname:Int, params:Int[] )

Function glGetShaderInfoLog : String ( shader:Int )

Function glGetShaderSource : String ( shader:Int )

Function glGetShaderiv : Void ( shader:Int, pname:Int, params:Int[] )

Function glGetString : String ( name:Int )

Function glGetTexParameterfv : Void ( target:Int, pname:Int, params:Float[] )

Function glGetTexParameteriv : Void ( target:Int, pname:Int, params:Int[] )

Function glGetUniformLocation : Int ( program:Int, name:String )

Function glGetUniformfv : Void ( program:Int, location:Int, params:Float[] )

Function glGetUniformiv : Void ( program:Int, location:Int, params:Int[] )

Function glGetVertexAttribfv : Void ( index:Int, pname:Int, params:Float[] )

Function glGetVertexAttribiv : Void ( index:Int, pname:Int, params:Int[] )

Function glHint : Void ( target:Int, mode:Int )

Function glIsBuffer : Bool ( buffer:Int )

Function glIsEnabled : Bool ( cap:Int )

Function glIsFramebuffer : Bool ( framebuffer:Int )

Function glIsProgram : Bool ( program:Int )

Function glIsRenderbuffer : Bool ( renderbuffer:Int )

Function glIsShader : Bool ( shader:Int )

Function glIsTexture : Bool ( texture:Int )

Function glLineWidth : Void ( width:Float )

Function glLinkProgram : Void ( program:Int )

Function glPixelStorei : Void ( pname:Int, param:Int )

Function glPolygonOffset : Void ( factor:Float, units:Float )

Function glReadPixels : Void ( x:Int, y:Int, width:Int, height:Int, format:Int, type:Int, pixels:DataBuffer )

Function glReleaseShaderCompiler : Void ()

Function glRenderbufferStorage : Void ( target:Int, internalformat:Int, width:Int, height:Int )

Function glSampleCoverage : Void ( value:Float, invert:Bool )

Function glScissor : Void ( x:Int, y:Int, width:Int, height:Int )

Function glShaderSource : Void ( shader:Int, source:String )

Function glStencilFunc : Void ( func:Int, ref:Int, mask:Int )

Function glStencilFuncSeparate : Void ( face:Int, func:Int, ref:Int, mask:Int )

Function glStencilMask : Void ( mask:Int )

Function glStencilMaskSeparate : Void ( face:Int, mask:Int )

Function glStencilOp : Void ( fail:Int, zfail:Int, zpass:Int )

Function glStencilOpSeparate : Void ( face:Int, fail:Int, zfail:Int, zpass:Int )

Function glTexImage2D : Void ( target:Int, level:Int, internalformat:Int, format:Int, type:Int, path:String )

Function glTexImage2D : Void ( target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, format:Int, type:Int, pixels:DataBuffer )

Function glTexParameterf : Void ( target:Int, pname:Int, param:Float )

Function glTexParameteri : Void ( target:Int, pname:Int, param:Int )

Function glTexSubImage2D : Void ( target:Int, level:Int, xoffset:Int, yoffset:Int, format:Int, type:Int, path:String )

Function glTexSubImage2D : Void ( target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, type:Int, pixels:DataBuffer )

Function glUniform1f : Void ( location:Int, x:Float )

Function glUniform1fv : Void ( location:Int, count:Int, v:Float[] )

Function glUniform1i : Void ( location:Int, x:Int )

Function glUniform1iv : Void ( location:Int, count:Int, v:Int[] )

Function glUniform2f : Void ( location:Int, x:Float, y:Float )

Function glUniform2fv : Void ( location:Int, count:Int, v:Float[] )

Function glUniform2i : Void ( location:Int, x:Int, y:Int )

Function glUniform2iv : Void ( location:Int, count:Int, v:Int[] )

Function glUniform3f : Void ( location:Int, x:Float, y:Float, z:Float )

Function glUniform3fv : Void ( location:Int, count:Int, v:Float[] )

Function glUniform3i : Void ( location:Int, x:Int, y:Int, z:Int )

Function glUniform3iv : Void ( location:Int, count:Int, v:Int[] )

Function glUniform4f : Void ( location:Int, x:Float, y:Float, z:Float, w:Float )

Function glUniform4fv : Void ( location:Int, count:Int, v:Float[] )

Function glUniform4i : Void ( location:Int, x:Int, y:Int, z:Int, w:Int )

Function glUniform4iv : Void ( location:Int, count:Int, v:Int[] )

Function glUniformMatrix2fv : Void ( location:Int, count:Int, transpose:Bool, value:Float[] )

Function glUniformMatrix3fv : Void ( location:Int, count:Int, transpose:Bool, value:Float[] )

Function glUniformMatrix4fv : Void ( location:Int, count:Int, transpose:Bool, value:Float[] )

Function glUseProgram : Void ( program:Int )

Function glValidateProgram : Void ( program:Int )

Function glVertexAttrib1f : Void ( indx:Int, x:Float )

Function glVertexAttrib1fv : Void ( indx:Int, values:Float[] )

Function glVertexAttrib2f : Void ( indx:Int, x:Float, y:Float )

Function glVertexAttrib2fv : Void ( indx:Int, values:Float[] )

Function glVertexAttrib3f : Void ( indx:Int, x:Float, y:Float, z:Float )

Function glVertexAttrib3fv : Void ( indx:Int, values:Float[] )

Function glVertexAttrib4f : Void ( indx:Int, x:Float, y:Float, z:Float, w:Float )

Function glVertexAttrib4fv : Void ( indx:Int, values:Float[] )

Function glVertexAttribPointer : Void ( indx:Int, size:Int, type:Int, normalized:Bool, stride:Int, data:DataBuffer )

Function glVertexAttribPointer : Void ( indx:Int, size:Int, type:Int, normalized:Bool, stride:Int, offset:Int )

Function glViewport : Void ( x:Int, y:Int, width:Int, height:Int )