class lime.graphics.opengl.GL

Available on all platforms

Class Fields

static var ACTIVE_TEXTURE:Int

static var ACTIVE_UNIFORMS:Int

static var ALPHA:Int

static var ALPHA_BITS:Int

static var ALWAYS:Int

static var ARRAY_BUFFER:Int

static var BACK:Int

static var BGRA_EXT:Int

static var BGR_EXT:Int

static var BLEND:Int

static var BLEND_COLOR:Int

static var BLEND_DST_ALPHA:Int

static var BLEND_DST_RGB:Int

static var BLEND_EQUATION:Int

static var BLEND_SRC_ALPHA:Int

static var BLEND_SRC_RGB:Int

static var BLUE_BITS:Int

static var BOOL:Int

static var BOOL_VEC2:Int

static var BOOL_VEC3:Int

static var BOOL_VEC4:Int

static var BUFFER_SIZE:Int

static var BUFFER_USAGE:Int

static var BYTE:Int

static var CCW:Int

static var CLAMP_TO_EDGE:Int

static var COLOR_WRITEMASK:Int

static var COMPILE_STATUS:Int

static var CONSTANT_ALPHA:Int

static var CONSTANT_COLOR:Int

static var CULL_FACE:Int

static var CULL_FACE_MODE:Int

static var CURRENT_PROGRAM:Int

static var CW:Int

static var DECR:Int

static var DECR_WRAP:Int

static var DELETE_STATUS:Int

static var DEPTH_BITS:Int

static var DEPTH_COMPONENT:Int

static var DEPTH_FUNC:Int

static var DEPTH_RANGE:Int

static var DEPTH_STENCIL:Int

static var DEPTH_TEST:Int

static var DEPTH_WRITEMASK:Int

static var DITHER:Int

static var DONT_CARE:Int

static var DST_ALPHA:Int

static var DST_COLOR:Int

static var DYNAMIC_DRAW:Int

static var EQUAL:Int

static var FASTEST:Int

static var FLOAT:Int

static var FLOAT_MAT2:Int

static var FLOAT_MAT3:Int

static var FLOAT_MAT4:Int

static var FLOAT_VEC2:Int

static var FLOAT_VEC3:Int

static var FLOAT_VEC4:Int

static var FRAGMENT_SHADER:Int

static var FRAMEBUFFER:Int

static var FRONT:Int

static var FRONT_AND_BACK:Int

static var FRONT_FACE:Int

static var FUNC_ADD:Int

static var FUNC_SUBTRACT:Int

static var GEQUAL:Int

static var GREATER:Int

static var GREEN_BITS:Int

static var HIGH_FLOAT:Int

static var HIGH_INT:Int

static var INCR:Int

static var INCR_WRAP:Int

static var INT:Int

static var INT_VEC2:Int

static var INT_VEC3:Int

static var INT_VEC4:Int

static var INVALID_ENUM:Int

static var INVALID_VALUE:Int

static var INVERT:Int

static var KEEP:Int

static var LEQUAL:Int

static var LESS:Int

static var LINEAR:Int

static var LINES:Int

static var LINE_LOOP:Int

static var LINE_STRIP:Int

static var LINE_WIDTH:Int

static var LINK_STATUS:Int

static var LOW_FLOAT:Int

static var LOW_INT:Int

static var LUMINANCE:Int

static var LUMINANCE_ALPHA:Int

static var MEDIUM_FLOAT:Int

static var MEDIUM_INT:Int

static var MIRRORED_REPEAT:Int

static var NEAREST:Int

static var NEVER:Int

static var NICEST:Int

static var NONE:Int

static var NOTEQUAL:Int

static var NO_ERROR:Int

static var ONE:Int

static var OUT_OF_MEMORY:Int

static var PACK_ALIGNMENT:Int

static var POINTS:Int

static var POINT_SPRITE:Int

static var RED_BITS:Int

static var RENDERBUFFER:Int

static var RENDERER:Int

static var REPEAT:Int

static var REPLACE:Int

static var RGB:Int

static var RGB565:Int

static var RGB5_A1:Int

static var RGBA:Int

static var RGBA4:Int

static var SAMPLER_2D:Int

static var SAMPLER_CUBE:Int

static var SAMPLES:Int

static var SAMPLE_BUFFERS:Int

static var SAMPLE_COVERAGE:Int

static var SCISSOR_BOX:Int

static var SCISSOR_TEST:Int

static var SHADER_TYPE:Int

static var SHORT:Int

static var SRC_ALPHA:Int

static var SRC_COLOR:Int

static var STATIC_DRAW:Int

static var STENCIL_BITS:Int

static var STENCIL_FAIL:Int

static var STENCIL_FUNC:Int

static var STENCIL_INDEX:Int

static var STENCIL_INDEX8:Int

static var STENCIL_REF:Int

static var STENCIL_TEST:Int

static var STREAM_DRAW:Int

static var SUBPIXEL_BITS:Int

static var TEXTURE:Int

static var TEXTURE0:Int

static var TEXTURE1:Int

static var TEXTURE10:Int

static var TEXTURE11:Int

static var TEXTURE12:Int

static var TEXTURE13:Int

static var TEXTURE14:Int

static var TEXTURE15:Int

static var TEXTURE16:Int

static var TEXTURE17:Int

static var TEXTURE18:Int

static var TEXTURE19:Int

static var TEXTURE2:Int

static var TEXTURE20:Int

static var TEXTURE21:Int

static var TEXTURE22:Int

static var TEXTURE23:Int

static var TEXTURE24:Int

static var TEXTURE25:Int

static var TEXTURE26:Int

static var TEXTURE27:Int

static var TEXTURE28:Int

static var TEXTURE29:Int

static var TEXTURE3:Int

static var TEXTURE30:Int

static var TEXTURE31:Int

static var TEXTURE4:Int

static var TEXTURE5:Int

static var TEXTURE6:Int

static var TEXTURE7:Int

static var TEXTURE8:Int

static var TEXTURE9:Int

static var TEXTURE_2D:Int

static var TEXTURE_WRAP_S:Int

static var TEXTURE_WRAP_T:Int

static var TRIANGLES:Int

static var TRIANGLE_FAN:Int

static var TRIANGLE_STRIP:Int

static var UNSIGNED_BYTE:Int

static var UNSIGNED_INT:Int

static var UNSIGNED_SHORT:Int

static var VALIDATE_STATUS:Int

static var VENDOR:Int

static var VERSION:Int

static var VERTEX_SHADER:Int

static var VIEWPORT:Int

static var ZERO:Int

static var version:Int

static function activeTexture(texture:Int):Void

static function attachShader(program:GLProgram, shader:GLShader):Void

static function bindAttribLocation(program:GLProgram, index:Int, name:String):Void

static function bindBuffer(target:Int, buffer:GLBuffer):Void

static function bindFramebuffer(target:Int, framebuffer:GLFramebuffer):Void

static function bindRenderbuffer(target:Int, renderbuffer:GLRenderbuffer):Void

static function bindTexture(target:Int, texture:GLTexture):Void

static function blendColor(red:Float, green:Float, blue:Float, alpha:Float):Void

static function blendEquation(mode:Int):Void

static function blendEquationSeparate(modeRGB:Int, modeAlpha:Int):Void

static function blendFunc(sfactor:Int, dfactor:Int):Void

static function blendFuncSeparate(srcRGB:Int, dstRGB:Int, srcAlpha:Int, dstAlpha:Int):Void

static function bufferData(target:Int, data:ArrayBufferView, usage:Int):Void

static function bufferSubData(target:Int, offset:Int, data:ArrayBufferView):Void

static function checkFramebufferStatus(target:Int):Int

static function clear(mask:Int):Void

static function clearColor(red:Float, green:Float, blue:Float, alpha:Float):Void

static function clearDepth(depth:Float):Void

static function clearStencil(s:Int):Void

static function colorMask(red:Bool, green:Bool, blue:Bool, alpha:Bool):Void

static function compileShader(shader:GLShader):Void

static function compressedTexImage2D(target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, data:ArrayBufferView):Void

static function compressedTexSubImage2D(target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, data:ArrayBufferView):Void

static function copyTexImage2D(target:Int, level:Int, internalformat:Int, x:Int, y:Int, width:Int, height:Int, border:Int):Void

static function copyTexSubImage2D(target:Int, level:Int, xoffset:Int, yoffset:Int, x:Int, y:Int, width:Int, height:Int):Void

static function createBuffer():GLBuffer

static function createProgram():GLProgram

static function createShader(type:Int):GLShader

static function createTexture():GLTexture

static function cullFace(mode:Int):Void

static function deleteBuffer(buffer:GLBuffer):Void

static function deleteFramebuffer(framebuffer:GLFramebuffer):Void

static function deleteProgram(program:GLProgram):Void

static function deleteRenderbuffer(renderbuffer:GLRenderbuffer):Void

static function deleteShader(shader:GLShader):Void

static function deleteTexture(texture:GLTexture):Void

static function depthFunc(func:Int):Void

static function depthMask(flag:Bool):Void

static function depthRange(zNear:Float, zFar:Float):Void

static function detachShader(program:GLProgram, shader:GLShader):Void

static function disable(cap:Int):Void

static function disableVertexAttribArray(index:Int):Void

static function drawArrays(mode:Int, first:Int, count:Int):Void

static function drawElements(mode:Int, count:Int, type:Int, offset:Int):Void

static function enable(cap:Int):Void

static function enableVertexAttribArray(index:Int):Void

static function finish():Void

static function flush():Void

static function framebufferRenderbuffer(target:Int, attachment:Int, renderbuffertarget:Int, renderbuffer:GLRenderbuffer):Void

static function framebufferTexture2D(target:Int, attachment:Int, textarget:Int, texture:GLTexture, level:Int):Void

static function frontFace(mode:Int):Void

static function generateMipmap(target:Int):Void

static function getActiveAttrib(program:GLProgram, index:Int):GLActiveInfo

static function getActiveUniform(program:GLProgram, index:Int):GLActiveInfo

static function getAttachedShaders(program:GLProgram):Array<GLShader>

static function getAttribLocation(program:GLProgram, name:String):Int

static function getBufferParameter(target:Int, pname:Int):Int

static function getError():Int

static function getExtension(name:String):Dynamic

static function getFramebufferAttachmentParameter(target:Int, attachment:Int, pname:Int):Int

static function getParameter(pname:Int):Dynamic

static function getProgramInfoLog(program:GLProgram):String

static function getProgramParameter(program:GLProgram, pname:Int):Int

static function getRenderbufferParameter(target:Int, pname:Int):Int

static function getShaderInfoLog(shader:GLShader):String

static function getShaderParameter(shader:GLShader, pname:Int):Int

static function getShaderPrecisionFormat(shadertype:Int, precisiontype:Int):GLShaderPrecisionFormat

static function getShaderSource(shader:GLShader):String

static function getTexParameter(target:Int, pname:Int):Int

static function getUniform(program:GLProgram, location:GLUniformLocation):Dynamic

static function getUniformLocation(program:GLProgram, name:String):GLUniformLocation

static function getVertexAttrib(index:Int, pname:Int):Int

static function getVertexAttribOffset(index:Int, pname:Int):Int

static function hint(target:Int, mode:Int):Void

static function isBuffer(buffer:GLBuffer):Bool

static function isContextLost():Bool

static function isEnabled(cap:Int):Bool

static function isFramebuffer(framebuffer:GLFramebuffer):Bool

static function isProgram(program:GLProgram):Bool

static function isRenderbuffer(renderbuffer:GLRenderbuffer):Bool

static function isShader(shader:GLShader):Bool

static function isTexture(texture:GLTexture):Bool

static function lineWidth(width:Float):Void

static function linkProgram(program:GLProgram):Void

static function pixelStorei(pname:Int, param:Int):Void

static function polygonOffset(factor:Float, units:Float):Void

static function readPixels(x:Int, y:Int, width:Int, height:Int, format:Int, type:Int, pixels:ArrayBufferView):Void

static function renderbufferStorage(target:Int, internalformat:Int, width:Int, height:Int):Void

static function sampleCoverage(value:Float, invert:Bool):Void

static function scissor(x:Int, y:Int, width:Int, height:Int):Void

static function shaderSource(shader:GLShader, source:String):Void

static function stencilFunc(func:Int, ref:Int, mask:Int):Void

static function stencilFuncSeparate(face:Int, func:Int, ref:Int, mask:Int):Void

static function stencilMask(mask:Int):Void

static function stencilMaskSeparate(face:Int, mask:Int):Void

static function stencilOp(fail:Int, zfail:Int, zpass:Int):Void

static function stencilOpSeparate(face:Int, fail:Int, zfail:Int, zpass:Int):Void

static function texImage2D(target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, format:Int, type:Int, pixels:ArrayBufferView):Void

static function texParameterf(target:Int, pname:Int, param:Float):Void

static function texParameteri(target:Int, pname:Int, param:Int):Void

static function texSubImage2D(target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, type:Int, pixels:ArrayBufferView):Void

static function uniform1f(location:GLUniformLocation, x:Float):Void

static function uniform1fv(location:GLUniformLocation, x:Float32Array):Void

static function uniform1i(location:GLUniformLocation, x:Int):Void

static function uniform1iv(location:GLUniformLocation, v:Int32Array):Void

static function uniform2f(location:GLUniformLocation, x:Float, y:Float):Void

static function uniform2fv(location:GLUniformLocation, v:Float32Array):Void

static function uniform2i(location:GLUniformLocation, x:Int, y:Int):Void

static function uniform2iv(location:GLUniformLocation, v:Int32Array):Void

static function uniform3f(location:GLUniformLocation, x:Float, y:Float, z:Float):Void

static function uniform3fv(location:GLUniformLocation, v:Float32Array):Void

static function uniform3i(location:GLUniformLocation, x:Int, y:Int, z:Int):Void

static function uniform3iv(location:GLUniformLocation, v:Int32Array):Void

static function uniform4f(location:GLUniformLocation, x:Float, y:Float, z:Float, w:Float):Void

static function uniform4fv(location:GLUniformLocation, v:Float32Array):Void

static function uniform4i(location:GLUniformLocation, x:Int, y:Int, z:Int, w:Int):Void

static function uniform4iv(location:GLUniformLocation, v:Int32Array):Void

static function uniformMatrix2fv(location:GLUniformLocation, transpose:Bool, v:Float32Array):Void

static function uniformMatrix3fv(location:GLUniformLocation, transpose:Bool, v:Float32Array):Void

static function uniformMatrix4fv(location:GLUniformLocation, transpose:Bool, v:Float32Array):Void

static function useProgram(program:GLProgram):Void

static function validateProgram(program:GLProgram):Void

static function vertexAttrib1f(indx:Int, x:Float):Void

static function vertexAttrib1fv(indx:Int, values:Float32Array):Void

static function vertexAttrib2f(indx:Int, x:Float, y:Float):Void

static function vertexAttrib2fv(indx:Int, values:Float32Array):Void

static function vertexAttrib3f(indx:Int, x:Float, y:Float, z:Float):Void

static function vertexAttrib3fv(indx:Int, values:Float32Array):Void

static function vertexAttrib4f(indx:Int, x:Float, y:Float, z:Float, w:Float):Void

static function vertexAttrib4fv(indx:Int, values:Float32Array):Void

static function vertexAttribPointer(indx:Int, size:Int, type:Int, normalized:Bool, stride:Int, offset:Int):Void

static function viewport(x:Int, y:Int, width:Int, height:Int):Void