Module opengl.gles11

Информация

The gles11 module provides a Monkey wrapper for the OpenGL ES 1.1

Подробнее...

Подробное описание

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

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

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

См. также
DataBuffer, LoadImageData, OpenGL ES1.1 Reference

Функции

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.

См. также
DataBuffer

Function glActiveTexture:Void ( texture:Int )


Function glAlphaFunc:Void ( func:Int, ref:Float )


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


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


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


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


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


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 glClientActiveTexture:Void ( texture:Int )


Function glClipPlanef:Void ( plane:Int, equation:Float[], offset:Int )


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


Function glColor4ub:Void ( red:Int, green:Int, blue:Int, alpha:Int )


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


Function glColorPointer:Void ( size:Int, type:Int, stride:Int, pointer:DataBuffer )


Function glColorPointer:Void ( size:Int, type:Int, stride:Int, offset:Int )


Function glCompressedTexImage2D:Void ( target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, imageSize:Int, Data:DataBuffer )


Function glCompressedTexSubImage2D:Void ( target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, imageSize:Int, data:DataBuffer )


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 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 glDepthRangef:Void ( zNear:Float, zFar:Float )


Function glDisable:Void ( cap:Int )


Function glDisableClientState:Void ( arry:Int )


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


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


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


Function glEnable:Void ( cap:Int )


Function glEnableClientState:Void ( arry:Int )


Function glFinish:Void ()


Function glFlush:Void ()


Function glFogf:Void ( pname:Int, param:Float )


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


Function glFrontFace:Void ( mode:Int )


Function glFrustumf:Void ( left:Float, right:Float, bottom:Float, top:Float, zNear:Float, zFar:Float )


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 glGetFloatv:Void ( pname:Int, params:Float[], offset:Int )


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


Function glGetLightfv:Void ( light:Int, pname:Int, params:Float[], offset:Int )


Function glGetMaterialfv:Void ( face:Int, pname:Int, params:Float[], offset:Int )


Function glGetString:String ( name:Int )


Function glGetTexEnvfv:Void ( env:Int, pname:Int, params:Float[], 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 glHint:Void ( target:Int, mode:Int )


Function glIsBuffer:Bool ( buffer:Int )


Function glIsEnabled:Bool ( cap:Int )


Function glIsTexture:Bool ( texture:Int )


Function glLightModelf:Void ( pname:Int, param:Float )


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


Function glLightf:Void ( light:Int, pname:Int, param:Float )


Function glLightfv:Void ( light:Int, pname:Int, params:Float[], offset:Int )


Function glLineWidth:Void ( width:Float )


Function glLoadIdentity:Void ()


Function glLoadMatrixf:Void ( m:Float[], offset:Int )


Function glLogicOp:Void ( opcode:Int )


Function glMaterialf:Void ( face:Int, pname:Int, param:Float )


Function glMaterialfv:Void ( face:Int, pname:Int, params:Float[], offset:Int )


Function glMatrixMode:Void ( mode:Int )


Function glMultMatrixf:Void ( m:Float[], offset:Int )


Function glMultiTexCoord4f:Void ( target:Int, s:Float, t:Float, r:Float, q:Float )


Function glNormal3f:Void ( nx:Float, ny:Float, nz:Float )


Function glNormalPointer:Void ( type:Int, stride:Int, pointer:DataBuffer )


Function glNormalPointer:Void ( type:Int, stride:Int, offset:Int )


Function glOrthof:Void ( left:Float, right:Float, bottom:Float, top:Float, zNear:Float, zFar:Float )


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


Function glPointParameterf:Void ( pname:Int, param:Float )


Function glPointSize:Void ( size:Float )


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


Function glPopMatrix:Void ()


Function glPushMatrix:Void ()


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


Function glRotatef:Void ( angle:Float, x:Float, y:Float, z:Float )


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


Function glScalef:Void ( x:Float, y:Float, z:Float )


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


Function glShadeModel:Void ( mode:Int )


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


Function glStencilMask:Void ( mask:Int )


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


Function glTexCoordPointer:Void ( size:Int, type:Int, stride:Int, pointer:DataBuffer )


Function glTexCoordPointer:Void ( size:Int, type:Int, stride:Int, offset:Int )


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


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


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


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


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 glTexParameterfv:Void ( target:Int, pname:Int, params:Float[], offset:Int )


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


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


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


Function glTranslatef:Void ( x:Float, y:Float, z:Float )


Function glVertexPointer:Void ( size:Int, type:Int, stride:Int, pointer:DataBuffer )


Function glVertexPointer:Void ( size:Int, type:Int, stride:Int, offset:Int )


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