Cerberus X Documentation

Module opengl.gles11

The gles11 module provides a Cerberus wrapper for the OpenGL ES 1.1 API on the android, glfw and ios target. More...

Declarations

Imports
brl.databuffer Databuffer objects provide storage for arbitrary data.
Constants
GL_ACTIVE_TEXTURE : Int
GL_ADD : Int
GL_ADD_SIGNED : Int
GL_ALIASED_LINE_WIDTH_RANGE : Int
GL_ALIASED_POINT_SIZE_RANGE : Int
GL_ALPHA : Int
GL_ALPHA_BITS : Int
GL_ALPHA_SCALE : Int
GL_ALPHA_TEST : Int
GL_ALPHA_TEST_FUNC : Int
GL_ALPHA_TEST_REF : Int
GL_ALWAYS : Int
GL_AMBIENT : Int
GL_AMBIENT_AND_DIFFUSE : Int
GL_AND : Int
GL_AND_INVERTED : Int
GL_AND_REVERSE : Int
GL_ARRAY_BUFFER : Int
GL_ARRAY_BUFFER_BINDING : Int
GL_BACK : Int
GL_BLEND : Int
GL_BLEND_DST : Int
GL_BLEND_SRC : Int
GL_BLUE_BITS : Int
GL_BUFFER_SIZE : Int
GL_BUFFER_USAGE : Int
GL_BYTE : Int
GL_CCW : Int
GL_CLAMP_TO_EDGE : Int
GL_CLEAR : Int
GL_CLIENT_ACTIVE_TEXTURE : Int
GL_CLIP_PLANE0 : Int
GL_CLIP_PLANE1 : Int
GL_CLIP_PLANE2 : Int
GL_CLIP_PLANE3 : Int
GL_CLIP_PLANE4 : Int
GL_CLIP_PLANE5 : Int
GL_COLOR_ARRAY : Int
GL_COLOR_ARRAY_BUFFER_BINDING : Int
GL_COLOR_ARRAY_POINTER : Int
GL_COLOR_ARRAY_SIZE : Int
GL_COLOR_ARRAY_STRIDE : Int
GL_COLOR_ARRAY_TYPE : Int
GL_COLOR_BUFFER_BIT : Int
GL_COLOR_CLEAR_VALUE : Int
GL_COLOR_LOGIC_OP : Int
GL_COLOR_MATERIAL : Int
GL_COLOR_WRITEMASK : Int
GL_COMBINE : Int
GL_COMBINE_ALPHA : Int
GL_COMBINE_RGB : Int
GL_COMPRESSED_TEXTURE_FORMATS : Int
GL_CONSTANT : Int
GL_CONSTANT_ATTENUATION : Int
GL_COPY : Int
GL_COPY_INVERTED : Int
GL_CULL_FACE : Int
GL_CULL_FACE_MODE : Int
GL_CURRENT_COLOR : Int
GL_CURRENT_NORMAL : Int
GL_CURRENT_TEXTURE_COORDS : Int
GL_CW : Int
GL_DECAL : Int
GL_DECR : Int
GL_DEPTH_BITS : Int
GL_DEPTH_BUFFER_BIT : Int
GL_DEPTH_CLEAR_VALUE : Int
GL_DEPTH_FUNC : Int
GL_DEPTH_RANGE : Int
GL_DEPTH_TEST : Int
GL_DEPTH_WRITEMASK : Int
GL_DIFFUSE : Int
GL_DITHER : Int
GL_DONT_CARE : Int
GL_DOT3_RGB : Int
GL_DOT3_RGBA : 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_EMISSION : Int
GL_EQUAL : Int
GL_EQUIV : Int
GL_EXP : Int
GL_EXP2 : Int
GL_EXTENSIONS : Int
GL_FALSE : Int
GL_FASTEST : Int
GL_FIXED : Int
GL_FLAT : Int
GL_FLOAT : Int
GL_FOG : Int
GL_FOG_COLOR : Int
GL_FOG_DENSITY : Int
GL_FOG_END : Int
GL_FOG_HINT : Int
GL_FOG_MODE : Int
GL_FOG_START : Int
GL_FRONT : Int
GL_FRONT_AND_BACK : Int
GL_FRONT_FACE : Int
GL_GENERATE_MIPMAP : Int
GL_GENERATE_MIPMAP_HINT : Int
GL_GEQUAL : Int
GL_GREATER : Int
GL_GREEN_BITS : Int
GL_INCR : Int
GL_INTERPOLATE : Int
GL_INVALID_ENUM : Int
GL_INVALID_OPERATION : Int
GL_INVALID_VALUE : Int
GL_INVERT : Int
GL_KEEP : Int
GL_LEQUAL : Int
GL_LESS : Int
GL_LIGHT0 : Int
GL_LIGHT1 : Int
GL_LIGHT2 : Int
GL_LIGHT3 : Int
GL_LIGHT4 : Int
GL_LIGHT5 : Int
GL_LIGHT6 : Int
GL_LIGHT7 : Int
GL_LIGHTING : Int
GL_LIGHT_MODEL_AMBIENT : Int
GL_LIGHT_MODEL_TWO_SIDE : Int
GL_LINEAR : Int
GL_LINEAR_ATTENUATION : Int
GL_LINEAR_MIPMAP_LINEAR : Int
GL_LINEAR_MIPMAP_NEAREST : Int
GL_LINES : Int
GL_LINE_LOOP : Int
GL_LINE_SMOOTH : Int
GL_LINE_SMOOTH_HINT : Int
GL_LINE_STRIP : Int
GL_LINE_WIDTH : Int
GL_LOGIC_OP_MODE : Int
GL_LUMINANCE : Int
GL_LUMINANCE_ALPHA : Int
GL_MATRIX_MODE : Int
GL_MAX_CLIP_PLANES : Int
GL_MAX_LIGHTS : Int
GL_MAX_MODELVIEW_STACK_DEPTH : Int
GL_MAX_PROJECTION_STACK_DEPTH : Int
GL_MAX_TEXTURE_SIZE : Int
GL_MAX_TEXTURE_STACK_DEPTH : Int
GL_MAX_TEXTURE_UNITS : Int
GL_MAX_VIEWPORT_DIMS : Int
GL_MODELVIEW : Int
GL_MODELVIEW_MATRIX : Int
GL_MODELVIEW_STACK_DEPTH : Int
GL_MODULATE : Int
GL_MULTISAMPLE : Int
GL_NAND : Int
GL_NEAREST : Int
GL_NEAREST_MIPMAP_LINEAR : Int
GL_NEAREST_MIPMAP_NEAREST : Int
GL_NEVER : Int
GL_NICEST : Int
GL_NOOP : Int
GL_NOR : Int
GL_NORMALIZE : Int
GL_NORMAL_ARRAY : Int
GL_NORMAL_ARRAY_BUFFER_BINDING : Int
GL_NORMAL_ARRAY_POINTER : Int
GL_NORMAL_ARRAY_STRIDE : Int
GL_NORMAL_ARRAY_TYPE : Int
GL_NOTEQUAL : Int
GL_NO_ERROR : Int
GL_NUM_COMPRESSED_TEXTURE_FORMATS : Int
GL_ONE : 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_OPERAND0_ALPHA : Int
GL_OPERAND0_RGB : Int
GL_OPERAND1_ALPHA : Int
GL_OPERAND1_RGB : Int
GL_OPERAND2_ALPHA : Int
GL_OPERAND2_RGB : Int
GL_OR : Int
GL_OR_INVERTED : Int
GL_OR_REVERSE : Int
GL_OUT_OF_MEMORY : Int
GL_PACK_ALIGNMENT : Int
GL_PERSPECTIVE_CORRECTION_HINT : Int
GL_POINTS : Int
GL_POINT_DISTANCE_ATTENUATION : Int
GL_POINT_FADE_THRESHOLD_SIZE : Int
GL_POINT_SIZE : Int
GL_POINT_SIZE_MAX : Int
GL_POINT_SIZE_MIN : Int
GL_POINT_SMOOTH : Int
GL_POINT_SMOOTH_HINT : Int
GL_POLYGON_OFFSET_FACTOR : Int
GL_POLYGON_OFFSET_FILL : Int
GL_POLYGON_OFFSET_UNITS : Int
GL_POSITION : Int
GL_PREVIOUS : Int
GL_PRIMARY_COLOR : Int
GL_PROJECTION : Int
GL_PROJECTION_MATRIX : Int
GL_PROJECTION_STACK_DEPTH : Int
GL_QUADRATIC_ATTENUATION : Int
GL_RED_BITS : Int
GL_RENDERER : Int
GL_REPEAT : Int
GL_REPLACE : Int
GL_RESCALE_NORMAL : Int
GL_RGB : Int
GL_RGBA : Int
GL_RGB_SCALE : Int
GL_SAMPLES : Int
GL_SAMPLE_ALPHA_TO_COVERAGE : Int
GL_SAMPLE_ALPHA_TO_ONE : 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_SET : Int
GL_SHADE_MODEL : Int
GL_SHININESS : Int
GL_SHORT : Int
GL_SMOOTH : Int
GL_SMOOTH_LINE_WIDTH_RANGE : Int
GL_SMOOTH_POINT_SIZE_RANGE : Int
GL_SPECULAR : Int
GL_SPOT_CUTOFF : Int
GL_SPOT_DIRECTION : Int
GL_SPOT_EXPONENT : Int
GL_SRC0_ALPHA : Int
GL_SRC0_RGB : Int
GL_SRC1_ALPHA : Int
GL_SRC1_RGB : Int
GL_SRC2_ALPHA : Int
GL_SRC2_RGB : Int
GL_SRC_ALPHA : Int
GL_SRC_ALPHA_SATURATE : Int
GL_SRC_COLOR : Int
GL_STACK_OVERFLOW : Int
GL_STACK_UNDERFLOW : Int
GL_STATIC_DRAW : 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_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_SUBPIXEL_BITS : Int
GL_SUBTRACT : 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_COORD_ARRAY : Int
GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING : Int
GL_TEXTURE_COORD_ARRAY_POINTER : Int
GL_TEXTURE_COORD_ARRAY_SIZE : Int
GL_TEXTURE_COORD_ARRAY_STRIDE : Int
GL_TEXTURE_COORD_ARRAY_TYPE : Int
GL_TEXTURE_ENV : Int
GL_TEXTURE_ENV_COLOR : Int
GL_TEXTURE_ENV_MODE : Int
GL_TEXTURE_MAG_FILTER : Int
GL_TEXTURE_MATRIX : Int
GL_TEXTURE_MIN_FILTER : Int
GL_TEXTURE_STACK_DEPTH : 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_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_VENDOR : Int
GL_VERSION : Int
GL_VERTEX_ARRAY : Int
GL_VERTEX_ARRAY_BUFFER_BINDING : Int
GL_VERTEX_ARRAY_POINTER : Int
GL_VERTEX_ARRAY_SIZE : Int
GL_VERTEX_ARRAY_STRIDE : Int
GL_VERTEX_ARRAY_TYPE : Int
GL_VIEWPORT : Int
GL_XOR : Int
GL_ZERO : Int
Functions
LoadImageData : DataBuffer ( path:String, info:Int[] ) LoadImageData is a helper function that loads an image in your app's .data directory into a databuffer.
glActiveTexture : Void ( texture:Int )
glAlphaFunc : Void ( func:Int, ref:Float )
glBindBuffer : Void ( target:Int, buffer:Int )
glBindTexture : Void ( target:Int, texture:Int )
glBlendFunc : Void ( sfactor:Int, dfactor:Int )
glBufferData : Void ( target:Int, size:Int, data:DataBuffer, usage:Int )
glBufferSubData : Void ( target:Int, offset:Int, size:Int, data:DataBuffer )
glClear : Void ( mask:Int )
glClearColor : Void ( red:Float, green:Float, blue:Float, alpha:Float )
glClearDepthf : Void ( depth:Float )
glClearStencil : Void ( s:Int )
glClientActiveTexture : Void ( texture:Int )
glClipPlanef : Void ( plane:Int, equation:Float[], offset:Int )
glColor4f : Void ( red:Float, green:Float, blue:Float, alpha:Float )
glColor4ub : Void ( red:Int, green:Int, blue:Int, alpha:Int )
glColorMask : Void ( red:Bool, green:Bool, blue:Bool, alpha:Bool )
glColorPointer : Void ( size:Int, type:Int, stride:Int, pointer:DataBuffer )
glColorPointer : Void ( size:Int, type:Int, stride:Int, offset:Int )
glCompressedTexImage2D : Void ( target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, imageSize:Int, Data:DataBuffer )
glCompressedTexSubImage2D : Void ( target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, imageSize:Int, data:DataBuffer )
glCopyTexImage2D : Void ( target:Int, level:Int, internalformat:Int, x:Int, y:Int, width:Int, height:Int, border:Int )
glCopyTexSubImage2D : Void ( target:Int, level:Int, xoffset:Int, yoffset:Int, x:Int, y:Int, width:Int, height:Int )
glCullFace : Void ( mode:Int )
glDeleteBuffers : Void ( n:Int, buffers:Int[], offset:Int )
glDeleteTextures : Void ( n:Int, textures:Int[], offset:Int )
glDepthFunc : Void ( func:Int )
glDepthMask : Void ( flag:Bool )
glDepthRangef : Void ( zNear:Float, zFar:Float )
glDisable : Void ( cap:Int )
glDisableClientState : Void ( arry:Int )
glDrawArrays : Void ( mode:Int, first:Int, count:Int )
glDrawElements : Void ( mode:Int, count:Int, type:Int, indices:DataBuffer )
glDrawElements : Void ( mode:Int, count:Int, type:Int, offset:Int )
glEnable : Void ( cap:Int )
glEnableClientState : Void ( arry:Int )
glFinish : Void ()
glFlush : Void ()
glFogf : Void ( pname:Int, param:Float )
glFogfv : Void ( pname:Int, params:Float[], offset:Int )
glFrontFace : Void ( mode:Int )
glFrustumf : Void ( left:Float, right:Float, bottom:Float, top:Float, zNear:Float, zFar:Float )
glGenBuffers : Void ( n:Int, buffers:Int[], offset:Int )
glGenTextures : Void ( n:Int, textures:Int[], offset:Int )
glGetBufferParameteriv : Void ( target:Int, pname:Int, params:Int[], offset:Int )
glGetClipPlanef : Void ( plane:Int, equation:Float[], offset:Int )
glGetError : Int ()
glGetFloatv : Void ( pname:Int, params:Float[], offset:Int )
glGetIntegerv : Void ( pname:Int, params:Int[], offset:Int )
glGetLightfv : Void ( light:Int, pname:Int, params:Float[], offset:Int )
glGetMaterialfv : Void ( face:Int, pname:Int, params:Float[], offset:Int )
glGetString : String ( name:Int )
glGetTexEnvfv : Void ( env:Int, pname:Int, params:Float[], offset:Int )
glGetTexEnviv : Void ( env:Int, pname:Int, params:Int[], offset:Int )
glGetTexParameterfv : Void ( target:Int, pname:Int, params:Float[], offset:Int )
glGetTexParameteriv : Void ( target:Int, pname:Int, params:Int[], offset:Int )
glHint : Void ( target:Int, mode:Int )
glIsBuffer : Bool ( buffer:Int )
glIsEnabled : Bool ( cap:Int )
glIsTexture : Bool ( texture:Int )
glLightModelf : Void ( pname:Int, param:Float )
glLightModelfv : Void ( pname:Int, params:Float[], offset:Int )
glLightf : Void ( light:Int, pname:Int, param:Float )
glLightfv : Void ( light:Int, pname:Int, params:Float[], offset:Int )
glLineWidth : Void ( width:Float )
glLoadIdentity : Void ()
glLoadMatrixf : Void ( m:Float[], offset:Int )
glLogicOp : Void ( opcode:Int )
glMaterialf : Void ( face:Int, pname:Int, param:Float )
glMaterialfv : Void ( face:Int, pname:Int, params:Float[], offset:Int )
glMatrixMode : Void ( mode:Int )
glMultMatrixf : Void ( m:Float[], offset:Int )
glMultiTexCoord4f : Void ( target:Int, s:Float, t:Float, r:Float, q:Float )
glNormal3f : Void ( nx:Float, ny:Float, nz:Float )
glNormalPointer : Void ( type:Int, stride:Int, pointer:DataBuffer )
glNormalPointer : Void ( type:Int, stride:Int, offset:Int )
glOrthof : Void ( left:Float, right:Float, bottom:Float, top:Float, zNear:Float, zFar:Float )
glPixelStorei : Void ( pname:Int, param:Int )
glPointParameterf : Void ( pname:Int, param:Float )
glPointSize : Void ( size:Float )
glPolygonOffset : Void ( factor:Float, units:Float )
glPopMatrix : Void ()
glPushMatrix : Void ()
glReadPixels : Void ( x:Int, y:Int, width:Int, height:Int, format:Int, type:Int, pixels:DataBuffer )
glRotatef : Void ( angle:Float, x:Float, y:Float, z:Float )
glSampleCoverage : Void ( value:Float, invert:Bool )
glScalef : Void ( x:Float, y:Float, z:Float )
glScissor : Void ( x:Int, y:Int, width:Int, height:Int )
glShadeModel : Void ( mode:Int )
glStencilFunc : Void ( func:Int, ref:Int, mask:Int )
glStencilMask : Void ( mask:Int )
glStencilOp : Void ( fail:Int, zfail:Int, zpass:Int )
glTexCoordPointer : Void ( size:Int, type:Int, stride:Int, pointer:DataBuffer )
glTexCoordPointer : Void ( size:Int, type:Int, stride:Int, offset:Int )
glTexEnvf : Void ( target:Int, pname:Int, param:Float )
glTexEnvfv : Void ( target:Int, pname:Int, params:Float[], offset:Int )
glTexEnvi : Void ( target:Int, pname:Int, param:Int )
glTexEnviv : Void ( target:Int, pname:Int, params:Int[], offset:Int )
glTexImage2D : Void ( target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, format:Int, type:Int, pixels:DataBuffer )
glTexParameterf : Void ( target:Int, pname:Int, param:Float )
glTexParameterfv : Void ( target:Int, pname:Int, params:Float[], offset:Int )
glTexParameteri : Void ( target:Int, pname:Int, param:Int )
glTexParameteriv : Void ( target:Int, pname:Int, params:Int[], offset:Int )
glTexSubImage2D : Void ( target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, type:Int, pixels:DataBuffer )
glTranslatef : Void ( x:Float, y:Float, z:Float )
glVertexPointer : Void ( size:Int, type:Int, stride:Int, pointer:DataBuffer )
glVertexPointer : Void ( size:Int, type:Int, stride:Int, offset:Int )
glViewport : Void ( x:Int, y:Int, width:Int, height:Int )

Detailed Discussion

The gles11 module provides a Cerberus wrapper for the OpenGL ES 1.1 API on the android, glfw and ios target.

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

  • Cerberus 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.
      • The fixed point API is not supported.

        To import the gles11 module into your app, use Import opengl.gles11

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

        See also

        DataBuffer, ])">LoadImageData, [OpenGL ES1.1 Reference


        Constants Documentation

        Const GL_ACTIVE_TEXTURE : Int
        Const GL_ADD : Int
        Const GL_ADD_SIGNED : Int
        Const GL_ALIASED_LINE_WIDTH_RANGE : Int
        Const GL_ALIASED_POINT_SIZE_RANGE : Int
        Const GL_ALPHA : Int
        Const GL_ALPHA_BITS : Int
        Const GL_ALPHA_SCALE : Int
        Const GL_ALPHA_TEST : Int
        Const GL_ALPHA_TEST_FUNC : Int
        Const GL_ALPHA_TEST_REF : Int
        Const GL_ALWAYS : Int
        Const GL_AMBIENT : Int
        Const GL_AMBIENT_AND_DIFFUSE : Int
        Const GL_AND : Int
        Const GL_AND_INVERTED : Int
        Const GL_AND_REVERSE : Int
        Const GL_ARRAY_BUFFER : Int
        Const GL_ARRAY_BUFFER_BINDING : Int
        Const GL_BACK : Int
        Const GL_BLEND : Int
        Const GL_BLEND_DST : Int
        Const GL_BLEND_SRC : Int
        Const GL_BLUE_BITS : Int
        Const GL_BUFFER_SIZE : Int
        Const GL_BUFFER_USAGE : Int
        Const GL_BYTE : Int
        Const GL_CCW : Int
        Const GL_CLAMP_TO_EDGE : Int
        Const GL_CLEAR : Int
        Const GL_CLIENT_ACTIVE_TEXTURE : Int
        Const GL_CLIP_PLANE0 : Int
        Const GL_CLIP_PLANE1 : Int
        Const GL_CLIP_PLANE2 : Int
        Const GL_CLIP_PLANE3 : Int
        Const GL_CLIP_PLANE4 : Int
        Const GL_CLIP_PLANE5 : Int
        Const GL_COLOR_ARRAY : Int
        Const GL_COLOR_ARRAY_BUFFER_BINDING : Int
        Const GL_COLOR_ARRAY_POINTER : Int
        Const GL_COLOR_ARRAY_SIZE : Int
        Const GL_COLOR_ARRAY_STRIDE : Int
        Const GL_COLOR_ARRAY_TYPE : Int
        Const GL_COLOR_BUFFER_BIT : Int
        Const GL_COLOR_CLEAR_VALUE : Int
        Const GL_COLOR_LOGIC_OP : Int
        Const GL_COLOR_MATERIAL : Int
        Const GL_COLOR_WRITEMASK : Int
        Const GL_COMBINE : Int
        Const GL_COMBINE_ALPHA : Int
        Const GL_COMBINE_RGB : Int
        Const GL_COMPRESSED_TEXTURE_FORMATS : Int
        Const GL_CONSTANT : Int
        Const GL_CONSTANT_ATTENUATION : Int
        Const GL_COPY : Int
        Const GL_COPY_INVERTED : Int
        Const GL_CULL_FACE : Int
        Const GL_CULL_FACE_MODE : Int
        Const GL_CURRENT_COLOR : Int
        Const GL_CURRENT_NORMAL : Int
        Const GL_CURRENT_TEXTURE_COORDS : Int
        Const GL_CW : Int
        Const GL_DECAL : Int
        Const GL_DECR : Int
        Const GL_DEPTH_BITS : Int
        Const GL_DEPTH_BUFFER_BIT : Int
        Const GL_DEPTH_CLEAR_VALUE : Int
        Const GL_DEPTH_FUNC : Int
        Const GL_DEPTH_RANGE : Int
        Const GL_DEPTH_TEST : Int
        Const GL_DEPTH_WRITEMASK : Int
        Const GL_DIFFUSE : Int
        Const GL_DITHER : Int
        Const GL_DONT_CARE : Int
        Const GL_DOT3_RGB : Int
        Const GL_DOT3_RGBA : Int
        Const GL_DST_ALPHA : Int
        Const GL_DST_COLOR : Int
        Const GL_DYNAMIC_DRAW : Int
        Const GL_ELEMENT_ARRAY_BUFFER : Int
        Const GL_ELEMENT_ARRAY_BUFFER_BINDING : Int
        Const GL_EMISSION : Int
        Const GL_EQUAL : Int
        Const GL_EQUIV : Int
        Const GL_EXP : Int
        Const GL_EXP2 : Int
        Const GL_EXTENSIONS : Int
        Const GL_FALSE : Int
        Const GL_FASTEST : Int
        Const GL_FIXED : Int
        Const GL_FLAT : Int
        Const GL_FLOAT : Int
        Const GL_FOG : Int
        Const GL_FOG_COLOR : Int
        Const GL_FOG_DENSITY : Int
        Const GL_FOG_END : Int
        Const GL_FOG_HINT : Int
        Const GL_FOG_MODE : Int
        Const GL_FOG_START : Int
        Const GL_FRONT : Int
        Const GL_FRONT_AND_BACK : Int
        Const GL_FRONT_FACE : Int
        Const GL_GENERATE_MIPMAP : Int
        Const GL_GENERATE_MIPMAP_HINT : Int
        Const GL_GEQUAL : Int
        Const GL_GREATER : Int
        Const GL_GREEN_BITS : Int
        Const GL_INCR : Int
        Const GL_INTERPOLATE : Int
        Const GL_INVALID_ENUM : Int
        Const GL_INVALID_OPERATION : Int
        Const GL_INVALID_VALUE : Int
        Const GL_INVERT : Int
        Const GL_KEEP : Int
        Const GL_LEQUAL : Int
        Const GL_LESS : Int
        Const GL_LIGHT0 : Int
        Const GL_LIGHT1 : Int
        Const GL_LIGHT2 : Int
        Const GL_LIGHT3 : Int
        Const GL_LIGHT4 : Int
        Const GL_LIGHT5 : Int
        Const GL_LIGHT6 : Int
        Const GL_LIGHT7 : Int
        Const GL_LIGHTING : Int
        Const GL_LIGHT_MODEL_AMBIENT : Int
        Const GL_LIGHT_MODEL_TWO_SIDE : Int
        Const GL_LINEAR : Int
        Const GL_LINEAR_ATTENUATION : Int
        Const GL_LINEAR_MIPMAP_LINEAR : Int
        Const GL_LINEAR_MIPMAP_NEAREST : Int
        Const GL_LINES : Int
        Const GL_LINE_LOOP : Int
        Const GL_LINE_SMOOTH : Int
        Const GL_LINE_SMOOTH_HINT : Int
        Const GL_LINE_STRIP : Int
        Const GL_LINE_WIDTH : Int
        Const GL_LOGIC_OP_MODE : Int
        Const GL_LUMINANCE : Int
        Const GL_LUMINANCE_ALPHA : Int
        Const GL_MATRIX_MODE : Int
        Const GL_MAX_CLIP_PLANES : Int
        Const GL_MAX_LIGHTS : Int
        Const GL_MAX_MODELVIEW_STACK_DEPTH : Int
        Const GL_MAX_PROJECTION_STACK_DEPTH : Int
        Const GL_MAX_TEXTURE_SIZE : Int
        Const GL_MAX_TEXTURE_STACK_DEPTH : Int
        Const GL_MAX_TEXTURE_UNITS : Int
        Const GL_MAX_VIEWPORT_DIMS : Int
        Const GL_MODELVIEW : Int
        Const GL_MODELVIEW_MATRIX : Int
        Const GL_MODELVIEW_STACK_DEPTH : Int
        Const GL_MODULATE : Int
        Const GL_MULTISAMPLE : Int
        Const GL_NAND : Int
        Const GL_NEAREST : Int
        Const GL_NEAREST_MIPMAP_LINEAR : Int
        Const GL_NEAREST_MIPMAP_NEAREST : Int
        Const GL_NEVER : Int
        Const GL_NICEST : Int
        Const GL_NOOP : Int
        Const GL_NOR : Int
        Const GL_NORMALIZE : Int
        Const GL_NORMAL_ARRAY : Int
        Const GL_NORMAL_ARRAY_BUFFER_BINDING : Int
        Const GL_NORMAL_ARRAY_POINTER : Int
        Const GL_NORMAL_ARRAY_STRIDE : Int
        Const GL_NORMAL_ARRAY_TYPE : Int
        Const GL_NOTEQUAL : Int
        Const GL_NO_ERROR : Int
        Const GL_NUM_COMPRESSED_TEXTURE_FORMATS : Int
        Const GL_ONE : Int
        Const GL_ONE_MINUS_DST_ALPHA : Int
        Const GL_ONE_MINUS_DST_COLOR : Int
        Const GL_ONE_MINUS_SRC_ALPHA : Int
        Const GL_ONE_MINUS_SRC_COLOR : Int
        Const GL_OPERAND0_ALPHA : Int
        Const GL_OPERAND0_RGB : Int
        Const GL_OPERAND1_ALPHA : Int
        Const GL_OPERAND1_RGB : Int
        Const GL_OPERAND2_ALPHA : Int
        Const GL_OPERAND2_RGB : Int
        Const GL_OR : Int
        Const GL_OR_INVERTED : Int
        Const GL_OR_REVERSE : Int
        Const GL_OUT_OF_MEMORY : Int
        Const GL_PACK_ALIGNMENT : Int
        Const GL_PERSPECTIVE_CORRECTION_HINT : Int
        Const GL_POINTS : Int
        Const GL_POINT_DISTANCE_ATTENUATION : Int
        Const GL_POINT_FADE_THRESHOLD_SIZE : Int
        Const GL_POINT_SIZE : Int
        Const GL_POINT_SIZE_MAX : Int
        Const GL_POINT_SIZE_MIN : Int
        Const GL_POINT_SMOOTH : Int
        Const GL_POINT_SMOOTH_HINT : Int
        Const GL_POLYGON_OFFSET_FACTOR : Int
        Const GL_POLYGON_OFFSET_FILL : Int
        Const GL_POLYGON_OFFSET_UNITS : Int
        Const GL_POSITION : Int
        Const GL_PREVIOUS : Int
        Const GL_PRIMARY_COLOR : Int
        Const GL_PROJECTION : Int
        Const GL_PROJECTION_MATRIX : Int
        Const GL_PROJECTION_STACK_DEPTH : Int
        Const GL_QUADRATIC_ATTENUATION : Int
        Const GL_RED_BITS : Int
        Const GL_RENDERER : Int
        Const GL_REPEAT : Int
        Const GL_REPLACE : Int
        Const GL_RESCALE_NORMAL : Int
        Const GL_RGB : Int
        Const GL_RGBA : Int
        Const GL_RGB_SCALE : Int
        Const GL_SAMPLES : Int
        Const GL_SAMPLE_ALPHA_TO_COVERAGE : Int
        Const GL_SAMPLE_ALPHA_TO_ONE : Int
        Const GL_SAMPLE_BUFFERS : Int
        Const GL_SAMPLE_COVERAGE : Int
        Const GL_SAMPLE_COVERAGE_INVERT : Int
        Const GL_SAMPLE_COVERAGE_VALUE : Int
        Const GL_SCISSOR_BOX : Int
        Const GL_SCISSOR_TEST : Int
        Const GL_SET : Int
        Const GL_SHADE_MODEL : Int
        Const GL_SHININESS : Int
        Const GL_SHORT : Int
        Const GL_SMOOTH : Int
        Const GL_SMOOTH_LINE_WIDTH_RANGE : Int
        Const GL_SMOOTH_POINT_SIZE_RANGE : Int
        Const GL_SPECULAR : Int
        Const GL_SPOT_CUTOFF : Int
        Const GL_SPOT_DIRECTION : Int
        Const GL_SPOT_EXPONENT : Int
        Const GL_SRC0_ALPHA : Int
        Const GL_SRC0_RGB : Int
        Const GL_SRC1_ALPHA : Int
        Const GL_SRC1_RGB : Int
        Const GL_SRC2_ALPHA : Int
        Const GL_SRC2_RGB : Int
        Const GL_SRC_ALPHA : Int
        Const GL_SRC_ALPHA_SATURATE : Int
        Const GL_SRC_COLOR : Int
        Const GL_STACK_OVERFLOW : Int
        Const GL_STACK_UNDERFLOW : Int
        Const GL_STATIC_DRAW : Int
        Const GL_STENCIL_BITS : Int
        Const GL_STENCIL_BUFFER_BIT : Int
        Const GL_STENCIL_CLEAR_VALUE : Int
        Const GL_STENCIL_FAIL : Int
        Const GL_STENCIL_FUNC : Int
        Const GL_STENCIL_PASS_DEPTH_FAIL : Int
        Const GL_STENCIL_PASS_DEPTH_PASS : Int
        Const GL_STENCIL_REF : Int
        Const GL_STENCIL_TEST : Int
        Const GL_STENCIL_VALUE_MASK : Int
        Const GL_STENCIL_WRITEMASK : Int
        Const GL_SUBPIXEL_BITS : Int
        Const GL_SUBTRACT : Int
        Const GL_TEXTURE : Int
        Const GL_TEXTURE0 : Int
        Const GL_TEXTURE1 : Int
        Const GL_TEXTURE10 : Int
        Const GL_TEXTURE11 : Int
        Const GL_TEXTURE12 : Int
        Const GL_TEXTURE13 : Int
        Const GL_TEXTURE14 : Int
        Const GL_TEXTURE15 : Int
        Const GL_TEXTURE16 : Int
        Const GL_TEXTURE17 : Int
        Const GL_TEXTURE18 : Int
        Const GL_TEXTURE19 : Int
        Const GL_TEXTURE2 : Int
        Const GL_TEXTURE20 : Int
        Const GL_TEXTURE21 : Int
        Const GL_TEXTURE22 : Int
        Const GL_TEXTURE23 : Int
        Const GL_TEXTURE24 : Int
        Const GL_TEXTURE25 : Int
        Const GL_TEXTURE26 : Int
        Const GL_TEXTURE27 : Int
        Const GL_TEXTURE28 : Int
        Const GL_TEXTURE29 : Int
        Const GL_TEXTURE3 : Int
        Const GL_TEXTURE30 : Int
        Const GL_TEXTURE31 : Int
        Const GL_TEXTURE4 : Int
        Const GL_TEXTURE5 : Int
        Const GL_TEXTURE6 : Int
        Const GL_TEXTURE7 : Int
        Const GL_TEXTURE8 : Int
        Const GL_TEXTURE9 : Int
        Const GL_TEXTURE_2D : Int
        Const GL_TEXTURE_BINDING_2D : Int
        Const GL_TEXTURE_COORD_ARRAY : Int
        Const GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING : Int
        Const GL_TEXTURE_COORD_ARRAY_POINTER : Int
        Const GL_TEXTURE_COORD_ARRAY_SIZE : Int
        Const GL_TEXTURE_COORD_ARRAY_STRIDE : Int
        Const GL_TEXTURE_COORD_ARRAY_TYPE : Int
        Const GL_TEXTURE_ENV : Int
        Const GL_TEXTURE_ENV_COLOR : Int
        Const GL_TEXTURE_ENV_MODE : Int
        Const GL_TEXTURE_MAG_FILTER : Int
        Const GL_TEXTURE_MATRIX : Int
        Const GL_TEXTURE_MIN_FILTER : Int
        Const GL_TEXTURE_STACK_DEPTH : Int
        Const GL_TEXTURE_WRAP_S : Int
        Const GL_TEXTURE_WRAP_T : Int
        Const GL_TRIANGLES : Int
        Const GL_TRIANGLE_FAN : Int
        Const GL_TRIANGLE_STRIP : Int
        Const GL_TRUE : Int
        Const GL_UNPACK_ALIGNMENT : Int
        Const GL_UNSIGNED_BYTE : Int
        Const GL_UNSIGNED_SHORT : Int
        Const GL_UNSIGNED_SHORT_4_4_4_4 : Int
        Const GL_UNSIGNED_SHORT_5_5_5_1 : Int
        Const GL_UNSIGNED_SHORT_5_6_5 : Int
        Const GL_VENDOR : Int
        Const GL_VERSION : Int
        Const GL_VERTEX_ARRAY : Int
        Const GL_VERTEX_ARRAY_BUFFER_BINDING : Int
        Const GL_VERTEX_ARRAY_POINTER : Int
        Const GL_VERTEX_ARRAY_SIZE : Int
        Const GL_VERTEX_ARRAY_STRIDE : Int
        Const GL_VERTEX_ARRAY_TYPE : Int
        Const GL_VIEWPORT : Int
        Const GL_XOR : Int
        Const GL_ZERO : Int

        Functions 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.

        Params:

        path - path to image to load.

        info - an array to receive image info.

        See also

        DataBuffer

        Function glActiveTexture : Void ( texture:Int )
        Function glBindBuffer : Void ( target:Int, buffer:Int )
        Function glBindTexture : Void ( target:Int, texture:Int )
        Function glBlendFunc : Void ( sfactor:Int, dfactor:Int )
        Function glClear : Void ( mask:Int )
        Function glClearDepthf : Void ( depth:Float )
        Function glClearStencil : Void ( s:Int )
        Function glClientActiveTexture : Void ( texture:Int )
        Function glCullFace : Void ( mode:Int )
        Function glDeleteBuffers : Void ( n:Int, buffers:Int[], offset:Int )
        Function glDeleteTextures : Void ( n:Int, textures:Int[], offset:Int )
        Function glDepthFunc : Void ( func:Int )
        Function glDepthMask : Void ( flag:Bool )
        Function glDisable : Void ( cap:Int )
        Function glDisableClientState : Void ( arry:Int )
        Function glDrawArrays : Void ( mode:Int, first:Int, count:Int )
        Function glEnable : Void ( cap:Int )
        Function glEnableClientState : Void ( arry:Int )
        Function glFinish : Void ()
        Function glFlush : Void ()
        Function glFrontFace : Void ( mode:Int )
        Function glGenBuffers : Void ( n:Int, buffers:Int[], offset:Int )
        Function glGenTextures : Void ( n:Int, textures:Int[], offset:Int )
        Function glGetBufferParameteriv : Void ( target:Int, pname:Int, params:Int[], offset:Int )
        Function glGetClipPlanef : Void ( plane:Int, equation:Float[], offset:Int )
        Function glGetError : Int ()
        Function glGetIntegerv : Void ( pname:Int, params:Int[], offset:Int )
        Function glGetTexEnviv : Void ( env:Int, pname:Int, params:Int[], offset:Int )
        Function glGetTexParameterfv : Void ( target:Int, pname:Int, params:Float[], offset:Int )
        Function glGetTexParameteriv : Void ( target:Int, pname:Int, params:Int[], offset:Int )
        Function glIsBuffer : Bool ( buffer:Int )
        Function glIsEnabled : Bool ( cap:Int )
        Function glIsTexture : Bool ( texture:Int )
        Function glLineWidth : Void ( width:Float )
        Function glLoadIdentity : Void ()
        Function glLogicOp : Void ( opcode:Int )
        Function glMatrixMode : Void ( mode:Int )
        Function glNormalPointer : Void ( type:Int, stride:Int, offset:Int )
        Function glPixelStorei : Void ( pname:Int, param:Int )
        Function glPointParameterf : Void ( pname:Int, param:Float )
        Function glPopMatrix : Void ()
        Function glPushMatrix : Void ()
        Function glShadeModel : Void ( mode:Int )
        Function glStencilMask : Void ( mask:Int )
        Function glTexCoordPointer : Void ( size:Int, type:Int, stride:Int, offset:Int )
        Function glTexEnviv : Void ( target:Int, pname:Int, params:Int[], offset:Int )
        Function glTexParameteri : Void ( target:Int, pname:Int, param:Int )
        Function glTexParameteriv : Void ( target:Int, pname:Int, params:Int[], offset:Int )
        Function glVertexPointer : Void ( size:Int, type:Int, stride:Int, offset:Int )