The WebGL2RenderContext allows access to WebGL 2 features when OpenGL, OpenGL ES or WebGL is the render context type of the Window, and the current context supports WebGL 2 features.

Using a WebGL context on a desktop platform enables support for cross-platform code that should run on all platforms (when using hardware acceleration), though support for WebGL 2 features are more limited than WebGL, and require an OpenGL ES 3.0 compatible desktop or mobile context.

You can convert from lime.graphics.RenderContext, lime.graphics.OpenGLRenderContext, lime.graphics.OpenGLES3RenderContext or lime.graphics.opengl.GL, and can convert to lime.graphics.WebGLRenderContext directly if desired:

var webgl2:WebGL2RenderContext = window.context;
var webgl2:WebGL2RenderContext = gl;
var webgl2:WebGL2RenderContext = gles3;
var webgl2:WebGL2RenderContext = GL;

var webgl:WebGLRenderContext = webgl2;

Variables

@:implread onlyACTIVE_ATTRIBUTES:Int

@:implread onlyACTIVE_TEXTURE:Int

@:implread onlyACTIVE_UNIFORMS:Int

@:implread onlyACTIVE_UNIFORM_BLOCKS:Int

@:implread onlyALPHA:Int

@:implread onlyALPHA_BITS:Int

@:implread onlyALREADY_SIGNALED:Int

@:implread onlyALWAYS:Int

@:implread onlyANY_SAMPLES_PASSED:Int

@:implread onlyARRAY_BUFFER:Int

@:implread onlyARRAY_BUFFER_BINDING:Int

@:implread onlyATTACHED_SHADERS:Int

@:implread onlyBACK:Int

@:implread onlyBLEND:Int

@:implread onlyBLEND_COLOR:Int

@:implread onlyBLEND_DST_ALPHA:Int

@:implread onlyBLEND_DST_RGB:Int

@:implread onlyBLEND_EQUATION:Int

@:implread onlyBLEND_EQUATION_ALPHA:Int

@:implread onlyBLEND_EQUATION_RGB:Int

@:implread onlyBLEND_SRC_ALPHA:Int

@:implread onlyBLEND_SRC_RGB:Int

@:implread onlyBLUE_BITS:Int

@:implread onlyBOOL:Int

@:implread onlyBOOL_VEC2:Int

@:implread onlyBOOL_VEC3:Int

@:implread onlyBOOL_VEC4:Int

@:implread onlyBROWSER_DEFAULT_WEBGL:Int

@:implread onlyBUFFER_SIZE:Int

@:implread onlyBUFFER_USAGE:Int

@:implread onlyBYTE:Int

@:implread onlyCCW:Int

@:implread onlyCLAMP_TO_EDGE:Int

@:implread onlyCOLOR:Int

@:implread onlyCOLOR_ATTACHMENT0:Int

@:implread onlyCOLOR_ATTACHMENT1:Int

@:implread onlyCOLOR_ATTACHMENT10:Int

@:implread onlyCOLOR_ATTACHMENT11:Int

@:implread onlyCOLOR_ATTACHMENT12:Int

@:implread onlyCOLOR_ATTACHMENT13:Int

@:implread onlyCOLOR_ATTACHMENT14:Int

@:implread onlyCOLOR_ATTACHMENT15:Int

@:implread onlyCOLOR_ATTACHMENT2:Int

@:implread onlyCOLOR_ATTACHMENT3:Int

@:implread onlyCOLOR_ATTACHMENT4:Int

@:implread onlyCOLOR_ATTACHMENT5:Int

@:implread onlyCOLOR_ATTACHMENT6:Int

@:implread onlyCOLOR_ATTACHMENT7:Int

@:implread onlyCOLOR_ATTACHMENT8:Int

@:implread onlyCOLOR_ATTACHMENT9:Int

@:implread onlyCOLOR_BUFFER_BIT:Int

@:implread onlyCOLOR_CLEAR_VALUE:Int

@:implread onlyCOLOR_WRITEMASK:Int

@:implread onlyCOMPILE_STATUS:Int

@:implread onlyCONDITION_SATISFIED:Int

@:implread onlyCONSTANT_ALPHA:Int

@:implread onlyCONSTANT_COLOR:Int

@:implread onlyCONTEXT_LOST_WEBGL:Int

@:implread onlyCOPY_READ_BUFFER:Int

@:implread onlyCOPY_WRITE_BUFFER:Int

@:implread onlyCULL_FACE:Int

@:implread onlyCULL_FACE_MODE:Int

@:implread onlyCURRENT_PROGRAM:Int

@:implread onlyCURRENT_QUERY:Int

@:implread onlyCURRENT_VERTEX_ATTRIB:Int

@:implread onlyCW:Int

@:implread onlyDECR:Int

@:implread onlyDECR_WRAP:Int

@:implread onlyDELETE_STATUS:Int

@:implread onlyDEPTH:Int

@:implread onlyDEPTH24_STENCIL8:Int

@:implread onlyDEPTH32F_STENCIL8:Int

@:implread onlyDEPTH_ATTACHMENT:Int

@:implread onlyDEPTH_BITS:Int

@:implread onlyDEPTH_BUFFER_BIT:Int

@:implread onlyDEPTH_CLEAR_VALUE:Int

@:implread onlyDEPTH_COMPONENT:Int

@:implread onlyDEPTH_COMPONENT16:Int

@:implread onlyDEPTH_COMPONENT24:Int

@:implread onlyDEPTH_COMPONENT32F:Int

@:implread onlyDEPTH_FUNC:Int

@:implread onlyDEPTH_RANGE:Int

@:implread onlyDEPTH_STENCIL:Int

@:implread onlyDEPTH_TEST:Int

@:implread onlyDEPTH_WRITEMASK:Int

@:implread onlyDITHER:Int

@:implread onlyDONT_CARE:Int

@:implread onlyDRAW_BUFFER0:Int

@:implread onlyDRAW_BUFFER1:Int

@:implread onlyDRAW_BUFFER10:Int

@:implread onlyDRAW_BUFFER11:Int

@:implread onlyDRAW_BUFFER12:Int

@:implread onlyDRAW_BUFFER13:Int

@:implread onlyDRAW_BUFFER14:Int

@:implread onlyDRAW_BUFFER15:Int

@:implread onlyDRAW_BUFFER2:Int

@:implread onlyDRAW_BUFFER3:Int

@:implread onlyDRAW_BUFFER4:Int

@:implread onlyDRAW_BUFFER5:Int

@:implread onlyDRAW_BUFFER6:Int

@:implread onlyDRAW_BUFFER7:Int

@:implread onlyDRAW_BUFFER8:Int

@:implread onlyDRAW_BUFFER9:Int

@:implread onlyDRAW_FRAMEBUFFER:Int

@:implread onlyDST_ALPHA:Int

@:implread onlyDST_COLOR:Int

@:implread onlyDYNAMIC_COPY:Int

@:implread onlyDYNAMIC_DRAW:Int

@:implread onlyDYNAMIC_READ:Int

@:implread onlyELEMENT_ARRAY_BUFFER:Int

@:implread onlyEQUAL:Int

@:implread onlyFASTEST:Int

@:implread onlyFLOAT:Int

@:implread onlyFLOAT_MAT2:Int

@:implread onlyFLOAT_MAT2x3:Int

@:implread onlyFLOAT_MAT2x4:Int

@:implread onlyFLOAT_MAT3:Int

@:implread onlyFLOAT_MAT3x2:Int

@:implread onlyFLOAT_MAT3x4:Int

@:implread onlyFLOAT_MAT4:Int

@:implread onlyFLOAT_MAT4x2:Int

@:implread onlyFLOAT_MAT4x3:Int

@:implread onlyFLOAT_VEC2:Int

@:implread onlyFLOAT_VEC3:Int

@:implread onlyFLOAT_VEC4:Int

@:implread onlyFRAGMENT_SHADER:Int

@:implread onlyFRAMEBUFFER:Int

@:implread onlyFRAMEBUFFER_BINDING:Int

@:implread onlyFRAMEBUFFER_COMPLETE:Int

@:implread onlyFRAMEBUFFER_DEFAULT:Int

@:implread onlyFRONT:Int

@:implread onlyFRONT_AND_BACK:Int

@:implread onlyFRONT_FACE:Int

@:implread onlyFUNC_ADD:Int

@:implread onlyFUNC_REVERSE_SUBTRACT:Int

@:implread onlyFUNC_SUBTRACT:Int

@:implread onlyGENERATE_MIPMAP_HINT:Int

@:implread onlyGEQUAL:Int

@:implread onlyGREATER:Int

@:implread onlyGREEN_BITS:Int

@:implread onlyHALF_FLOAT:Int

@:implread onlyHIGH_FLOAT:Int

@:implread onlyHIGH_INT:Int

@:implread onlyINCR:Int

@:implread onlyINCR_WRAP:Int

@:implread onlyINT:Int

@:implread onlyINTERLEAVED_ATTRIBS:Int

@:implread onlyINT_2_10_10_10_REV:Int

@:implread onlyINT_SAMPLER_2D:Int

@:implread onlyINT_SAMPLER_2D_ARRAY:Int

@:implread onlyINT_SAMPLER_3D:Int

@:implread onlyINT_SAMPLER_CUBE:Int

@:implread onlyINT_VEC2:Int

@:implread onlyINT_VEC3:Int

@:implread onlyINT_VEC4:Int

@:implread onlyINVALID_ENUM:Int

@:implread onlyINVALID_INDEX:Int

@:implread onlyINVALID_OPERATION:Int

@:implread onlyINVALID_VALUE:Int

@:implread onlyINVERT:Int

@:implread onlyKEEP:Int

@:implread onlyLEQUAL:Int

@:implread onlyLESS:Int

@:implread onlyLINEAR:Int

@:implread onlyLINEAR_MIPMAP_LINEAR:Int

@:implread onlyLINEAR_MIPMAP_NEAREST:Int

@:implread onlyLINES:Int

@:implread onlyLINE_LOOP:Int

@:implread onlyLINE_STRIP:Int

@:implread onlyLINE_WIDTH:Int

@:implread onlyLINK_STATUS:Int

@:implread onlyLOW_FLOAT:Int

@:implread onlyLOW_INT:Int

@:implread onlyLUMINANCE:Int

@:implread onlyLUMINANCE_ALPHA:Int

@:implread onlyMAX:Int

@:implread onlyMAX_3D_TEXTURE_SIZE:Int

@:implread onlyMAX_COLOR_ATTACHMENTS:Int

@:implread onlyMAX_DRAW_BUFFERS:Int

@:implread onlyMAX_ELEMENTS_INDICES:Int

@:implread onlyMAX_ELEMENTS_VERTICES:Int

@:implread onlyMAX_ELEMENT_INDEX:Int

@:implread onlyMAX_RENDERBUFFER_SIZE:Int

@:implread onlyMAX_SAMPLES:Int

@:implread onlyMAX_TEXTURE_LOD_BIAS:Int

@:implread onlyMAX_TEXTURE_SIZE:Int

@:implread onlyMAX_VARYING_VECTORS:Int

@:implread onlyMAX_VERTEX_ATTRIBS:Int

@:implread onlyMAX_VIEWPORT_DIMS:Int

@:implread onlyMEDIUM_FLOAT:Int

@:implread onlyMEDIUM_INT:Int

@:implread onlyMIN:Int

@:implread onlyMIRRORED_REPEAT:Int

@:implread onlyNEAREST:Int

@:implread onlyNEAREST_MIPMAP_LINEAR:Int

@:implread onlyNEVER:Int

@:implread onlyNICEST:Int

@:implread onlyNONE:Int

@:implread onlyNOTEQUAL:Int

@:implread onlyNO_ERROR:Int

@:implread onlyOBJECT_TYPE:Int

@:implread onlyONE:Int

@:implread onlyONE_MINUS_DST_ALPHA:Int

@:implread onlyONE_MINUS_DST_COLOR:Int

@:implread onlyONE_MINUS_SRC_ALPHA:Int

@:implread onlyONE_MINUS_SRC_COLOR:Int

@:implread onlyOUT_OF_MEMORY:Int

@:implread onlyPACK_ALIGNMENT:Int

@:implread onlyPACK_ROW_LENGTH:Int

@:implread onlyPACK_SKIP_PIXELS:Int

@:implread onlyPACK_SKIP_ROWS:Int

@:implread onlyPIXEL_PACK_BUFFER:Int

@:implread onlyPIXEL_UNPACK_BUFFER:Int

@:implread onlyPOINTS:Int

@:implread onlyPOLYGON_OFFSET_FACTOR:Int

@:implread onlyPOLYGON_OFFSET_FILL:Int

@:implread onlyPOLYGON_OFFSET_UNITS:Int

@:implread onlyQUERY_RESULT:Int

@:implread onlyR11F_G11F_B10F:Int

@:implread onlyR16F:Int

@:implread onlyR16I:Int

@:implread onlyR16UI:Int

@:implread onlyR32F:Int

@:implread onlyR32I:Int

@:implread onlyR32UI:Int

@:implread onlyR8:Int

@:implread onlyR8I:Int

@:implread onlyR8UI:Int

@:implread onlyR8_SNORM:Int

@:implread onlyRASTERIZER_DISCARD:Int

@:implread onlyREAD_BUFFER:Int

@:implread onlyREAD_FRAMEBUFFER:Int

@:implread onlyRED:Int

@:implread onlyRED_BITS:Int

@:implread onlyRED_INTEGER:Int

@:implread onlyRENDERBUFFER:Int

@:implread onlyRENDERBUFFER_BINDING:Int

@:implread onlyRENDERBUFFER_HEIGHT:Int

@:implread onlyRENDERBUFFER_RED_SIZE:Int

@:implread onlyRENDERBUFFER_SAMPLES:Int

@:implread onlyRENDERBUFFER_WIDTH:Int

@:implread onlyRENDERER:Int

@:implread onlyREPEAT:Int

@:implread onlyREPLACE:Int

@:implread onlyRG:Int

@:implread onlyRG16F:Int

@:implread onlyRG16I:Int

@:implread onlyRG16UI:Int

@:implread onlyRG32F:Int

@:implread onlyRG32I:Int

@:implread onlyRG32UI:Int

@:implread onlyRG8:Int

@:implread onlyRG8I:Int

@:implread onlyRG8UI:Int

@:implread onlyRG8_SNORM:Int

@:implread onlyRGB:Int

@:implread onlyRGB10_A2:Int

@:implread onlyRGB10_A2UI:Int

@:implread onlyRGB16F:Int

@:implread onlyRGB16I:Int

@:implread onlyRGB16UI:Int

@:implread onlyRGB32F:Int

@:implread onlyRGB32I:Int

@:implread onlyRGB32UI:Int

@:implread onlyRGB565:Int

@:implread onlyRGB5_A1:Int

@:implread onlyRGB8:Int

@:implread onlyRGB8I:Int

@:implread onlyRGB8UI:Int

@:implread onlyRGB8_SNORM:Int

@:implread onlyRGB9_E5:Int

@:implread onlyRGBA:Int

@:implread onlyRGBA16F:Int

@:implread onlyRGBA16I:Int

@:implread onlyRGBA16UI:Int

@:implread onlyRGBA32F:Int

@:implread onlyRGBA32I:Int

@:implread onlyRGBA32UI:Int

@:implread onlyRGBA4:Int

@:implread onlyRGBA8:Int

@:implread onlyRGBA8I:Int

@:implread onlyRGBA8UI:Int

@:implread onlyRGBA8_SNORM:Int

@:implread onlyRGBA_INTEGER:Int

@:implread onlyRGB_INTEGER:Int

@:implread onlyRG_INTEGER:Int

@:implread onlySAMPLER_2D:Int

@:implread onlySAMPLER_2D_ARRAY:Int

@:implread onlySAMPLER_2D_SHADOW:Int

@:implread onlySAMPLER_3D:Int

@:implread onlySAMPLER_BINDING:Int

@:implread onlySAMPLER_CUBE:Int

@:implread onlySAMPLER_CUBE_SHADOW:Int

@:implread onlySAMPLES:Int

@:implread onlySAMPLE_BUFFERS:Int

@:implread onlySAMPLE_COVERAGE:Int

@:implread onlySAMPLE_COVERAGE_VALUE:Int

@:implread onlySCISSOR_BOX:Int

@:implread onlySCISSOR_TEST:Int

@:implread onlySEPARATE_ATTRIBS:Int

@:implread onlySHADER_TYPE:Int

@:implread onlySHORT:Int

@:implread onlySIGNALED:Int

@:implread onlySIGNED_NORMALIZED:Int

@:implread onlySRC_ALPHA:Int

@:implread onlySRC_ALPHA_SATURATE:Int

@:implread onlySRC_COLOR:Int

@:implread onlySRGB:Int

@:implread onlySRGB8:Int

@:implread onlySRGB8_ALPHA8:Int

@:implread onlySTATIC_COPY:Int

@:implread onlySTATIC_DRAW:Int

@:implread onlySTATIC_READ:Int

@:implread onlySTENCIL:Int

@:implread onlySTENCIL_ATTACHMENT:Int

@:implread onlySTENCIL_BACK_FAIL:Int

@:implread onlySTENCIL_BACK_FUNC:Int

@:implread onlySTENCIL_BACK_REF:Int

@:implread onlySTENCIL_BITS:Int

@:implread onlySTENCIL_BUFFER_BIT:Int

@:implread onlySTENCIL_CLEAR_VALUE:Int

@:implread onlySTENCIL_FAIL:Int

@:implread onlySTENCIL_FUNC:Int

@:implread onlySTENCIL_INDEX:Int

@:implread onlySTENCIL_INDEX8:Int

@:implread onlySTENCIL_REF:Int

@:implread onlySTENCIL_TEST:Int

@:implread onlySTENCIL_VALUE_MASK:Int

@:implread onlySTENCIL_WRITEMASK:Int

@:implread onlySTREAM_COPY:Int

@:implread onlySTREAM_DRAW:Int

@:implread onlySTREAM_READ:Int

@:implread onlySUBPIXEL_BITS:Int

@:implread onlySYNC_CONDITION:Int

@:implread onlySYNC_FENCE:Int

@:implread onlySYNC_FLAGS:Int

@:implread onlySYNC_STATUS:Int

@:implread onlyTEXTURE:Int

@:implread onlyTEXTURE0:Int

@:implread onlyTEXTURE1:Int

@:implread onlyTEXTURE10:Int

@:implread onlyTEXTURE11:Int

@:implread onlyTEXTURE12:Int

@:implread onlyTEXTURE13:Int

@:implread onlyTEXTURE14:Int

@:implread onlyTEXTURE15:Int

@:implread onlyTEXTURE16:Int

@:implread onlyTEXTURE17:Int

@:implread onlyTEXTURE18:Int

@:implread onlyTEXTURE19:Int

@:implread onlyTEXTURE2:Int

@:implread onlyTEXTURE20:Int

@:implread onlyTEXTURE21:Int

@:implread onlyTEXTURE22:Int

@:implread onlyTEXTURE23:Int

@:implread onlyTEXTURE24:Int

@:implread onlyTEXTURE25:Int

@:implread onlyTEXTURE26:Int

@:implread onlyTEXTURE27:Int

@:implread onlyTEXTURE28:Int

@:implread onlyTEXTURE29:Int

@:implread onlyTEXTURE3:Int

@:implread onlyTEXTURE30:Int

@:implread onlyTEXTURE31:Int

@:implread onlyTEXTURE4:Int

@:implread onlyTEXTURE5:Int

@:implread onlyTEXTURE6:Int

@:implread onlyTEXTURE7:Int

@:implread onlyTEXTURE8:Int

@:implread onlyTEXTURE9:Int

@:implread onlyTEXTURE_2D:Int

@:implread onlyTEXTURE_2D_ARRAY:Int

@:implread onlyTEXTURE_3D:Int

@:implread onlyTEXTURE_BASE_LEVEL:Int

@:implread onlyTEXTURE_BINDING_2D:Int

@:implread onlyTEXTURE_BINDING_3D:Int

@:implread onlyTEXTURE_COMPARE_FUNC:Int

@:implread onlyTEXTURE_COMPARE_MODE:Int

@:implread onlyTEXTURE_CUBE_MAP:Int

@:implread onlyTEXTURE_MAG_FILTER:Int

@:implread onlyTEXTURE_MAX_LEVEL:Int

@:implread onlyTEXTURE_MAX_LOD:Int

@:implread onlyTEXTURE_MIN_FILTER:Int

@:implread onlyTEXTURE_MIN_LOD:Int

@:implread onlyTEXTURE_WRAP_R:Int

@:implread onlyTEXTURE_WRAP_S:Int

@:implread onlyTEXTURE_WRAP_T:Int

@:implread onlyTIMEOUT_EXPIRED:Int

@:implread onlyTIMEOUT_IGNORED:Int

@:implread onlyTRANSFORM_FEEDBACK:Int

@:implread onlyTRIANGLES:Int

@:implread onlyTRIANGLE_FAN:Int

@:implread onlyTRIANGLE_STRIP:Int

@:implread onlyUNIFORM_ARRAY_STRIDE:Int

@:implread onlyUNIFORM_BLOCK_BINDING:Int

@:implread onlyUNIFORM_BLOCK_INDEX:Int

@:implread onlyUNIFORM_BUFFER:Int

@:implread onlyUNIFORM_BUFFER_SIZE:Int

@:implread onlyUNIFORM_BUFFER_START:Int

@:implread onlyUNIFORM_IS_ROW_MAJOR:Int

@:implread onlyUNIFORM_MATRIX_STRIDE:Int

@:implread onlyUNIFORM_OFFSET:Int

@:implread onlyUNIFORM_SIZE:Int

@:implread onlyUNIFORM_TYPE:Int

@:implread onlyUNPACK_ALIGNMENT:Int

@:implread onlyUNPACK_FLIP_Y_WEBGL:Int

@:implread onlyUNPACK_IMAGE_HEIGHT:Int

@:implread onlyUNPACK_ROW_LENGTH:Int

@:implread onlyUNPACK_SKIP_IMAGES:Int

@:implread onlyUNPACK_SKIP_PIXELS:Int

@:implread onlyUNPACK_SKIP_ROWS:Int

@:implread onlyUNSIGNALED:Int

@:implread onlyUNSIGNED_BYTE:Int

@:implread onlyUNSIGNED_INT:Int

@:implread onlyUNSIGNED_INT_24_8:Int

@:implread onlyUNSIGNED_INT_VEC2:Int

@:implread onlyUNSIGNED_INT_VEC3:Int

@:implread onlyUNSIGNED_INT_VEC4:Int

@:implread onlyUNSIGNED_NORMALIZED:Int

@:implread onlyUNSIGNED_SHORT:Int

@:implread onlyUNSIGNED_SHORT_5_6_5:Int

@:implread onlyVALIDATE_STATUS:Int

@:implread onlyVENDOR:Int

@:implread onlyVERSION:Int

@:implread onlyVERTEX_ARRAY_BINDING:Int

@:implread onlyVERTEX_SHADER:Int

@:implread onlyVIEWPORT:Int

@:implread onlyWAIT_FAILED:Int

@:implread onlyZERO:Int

Methods

@:implinlineactiveTexture(texture:Int):Void

@:implinlineattachShader(program:GLProgram, shader:GLShader):Void

@:implinlinebeginQuery(target:Int, query:GLQuery):Void

@:implinlinebeginTransformFeedback(primitiveNode:Int):Void

@:implinlinebindAttribLocation(program:GLProgram, index:Int, name:String):Void

@:implinlinebindBuffer(target:Int, buffer:GLBuffer):Void

@:implinlinebindBufferBase(target:Int, index:Int, buffer:GLBuffer):Void

@:implinlinebindBufferRange(target:Int, index:Int, buffer:GLBuffer, offset:DataPointer, size:Int):Void

@:implinlinebindFramebuffer(target:Int, framebuffer:GLFramebuffer):Void

@:implinlinebindRenderbuffer(target:Int, renderbuffer:GLRenderbuffer):Void

@:implinlinebindSampler(unit:Int, sampler:GLSampler):Void

@:implinlinebindTexture(target:Int, texture:GLTexture):Void

@:implinlinebindTransformFeedback(target:Int, transformFeedback:GLTransformFeedback):Void

@:implinlinebindVertexArray(vertexArray:GLVertexArrayObject):Void

@:implinlineblendColor(red:Float, green:Float, blue:Float, alpha:Float):Void

@:implinlineblendEquation(mode:Int):Void

@:implinlineblendEquationSeparate(modeRGB:Int, modeAlpha:Int):Void

@:implinlineblendFunc(sfactor:Int, dfactor:Int):Void

@:implinlineblendFuncSeparate(srcRGB:Int, dstRGB:Int, srcAlpha:Int, dstAlpha:Int):Void

@:implinlineblitFramebuffer(srcX0:Int, srcY0:Int, srcX1:Int, srcY1:Int, dstX0:Int, dstY0:Int, dstX1:Int, dstY1:Int, mask:Int, filter:Int):Void

@:value({ length : 0, srcOffset : 0 })@:implbufferData(target:Int, srcData:ArrayBufferView, usage:Int, srcOffset:Int = 0, length:Int = 0):Void

@:value({ srcOffset : 0 })@:implinlinebufferSubData(target:Int, offset:Int, srcData:ArrayBufferView, srcOffset:Int = 0, ?length:Int):Void

@:implinlinecheckFramebufferStatus(target:Int):Int

@:implinlineclear(mask:Int):Void

@:implinlineclearBufferfi(buffer:Int, drawbuffer:Int, depth:Float, stencil:Int):Void

@:value({ srcOffset : 0 })@:implclearBufferfv(buffer:Int, drawbuffer:Int, values:ArrayBufferView, srcOffset:Int = 0):Void

@:implclearBufferiv(buffer:Int, drawbuffer:Int, values:ArrayBufferView, ?srcOffset:Int):Void

@:implclearBufferuiv(buffer:Int, drawbuffer:Int, values:ArrayBufferView, ?srcOffset:Int):Void

@:implinlineclearColor(red:Float, green:Float, blue:Float, alpha:Float):Void

@:implinlineclearDepth(depth:Float):Void

@:implinlineclearStencil(s:Int):Void

@:implinlineclientWaitSync(sync:GLSync, flags:Int, timeout:Int64):Int

@:implinlinecolorMask(red:Bool, green:Bool, blue:Bool, alpha:Bool):Void

@:implinlinecompileShader(shader:GLShader):Void

@:value({ srcOffset : 0 })@:implcompressedTexImage2D(target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, srcData:ArrayBufferView, srcOffset:Int = 0, ?srcLengthOverride:Int):Void

@:value({ srcOffset : 0 })@:implcompressedTexImage3D(target:Int, level:Int, internalformat:Int, width:Int, height:Int, depth:Int, border:Int, srcData:ArrayBufferView, srcOffset:Int = 0, ?srcLengthOverride:Int):Void

@:value({ srcOffset : 0 })@:implinlinecompressedTexSubImage2D(target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, srcData:ArrayBufferView, srcOffset:Int = 0, ?srcLengthOverride:Int):Void

@:value({ srcOffset : 0 })@:implinlinecompressedTexSubImage3D(target:Int, level:Int, xoffset:Int, yoffset:Int, zoffset:Int, width:Int, height:Int, depth:Int, format:Int, srcData:ArrayBufferView, srcOffset:Int = 0, ?srcLengthOverride:Int):Void

@:implinlinecopyBufferSubData(readTarget:Int, writeTarget:Int, readOffset:DataPointer, writeOffset:DataPointer, size:Int):Void

@:implinlinecopyTexImage2D(target:Int, level:Int, internalformat:Int, x:Int, y:Int, width:Int, height:Int, border:Int):Void

@:implinlinecopyTexSubImage2D(target:Int, level:Int, xoffset:Int, yoffset:Int, x:Int, y:Int, width:Int, height:Int):Void

@:implinlinecopyTexSubImage3D(target:Int, level:Int, xoffset:Int, yoffset:Int, zoffset:Int, x:Int, y:Int, width:Int, height:Int):Void

@:implinlinecreateBuffer():GLBuffer

@:implinlinecreateProgram():GLProgram

@:implinlinecreateQuery():GLQuery

@:implinlinecreateSampler():GLSampler

@:implinlinecreateShader(type:Int):GLShader

@:implinlinecreateTexture():GLTexture

@:implinlinecullFace(mode:Int):Void

@:implinlinedeleteBuffer(buffer:GLBuffer):Void

@:implinlinedeleteFramebuffer(framebuffer:GLFramebuffer):Void

@:implinlinedeleteProgram(program:GLProgram):Void

@:implinlinedeleteQuery(query:GLQuery):Void

@:implinlinedeleteRenderbuffer(renderbuffer:GLRenderbuffer):Void

@:implinlinedeleteSampler(sampler:GLSampler):Void

@:implinlinedeleteShader(shader:GLShader):Void

@:implinlinedeleteSync(sync:GLSync):Void

@:implinlinedeleteTexture(texture:GLTexture):Void

@:implinlinedeleteTransformFeedback(transformFeedback:GLTransformFeedback):Void

@:implinlinedeleteVertexArray(vertexArray:GLVertexArrayObject):Void

@:implinlinedepthFunc(func:Int):Void

@:implinlinedepthMask(flag:Bool):Void

@:implinlinedepthRange(zNear:Float, zFar:Float):Void

@:implinlinedetachShader(program:GLProgram, shader:GLShader):Void

@:implinlinedisable(cap:Int):Void

@:implinlinedisableVertexAttribArray(index:Int):Void

@:implinlinedrawArrays(mode:Int, first:Int, count:Int):Void

@:implinlinedrawArraysInstanced(mode:Int, first:Int, count:Int, instanceCount:Int):Void

@:implinlinedrawBuffers(buffers:Array<Int>):Void

@:implinlinedrawElements(mode:Int, count:Int, type:Int, offset:DataPointer):Void

@:implinlinedrawElementsInstanced(mode:Int, count:Int, type:Int, offset:DataPointer, instanceCount:Int):Void

@:implinlinedrawRangeElements(mode:Int, start:Int, end:Int, count:Int, type:Int, offset:DataPointer):Void

@:implinlineenable(cap:Int):Void

@:implinlineenableVertexAttribArray(index:Int):Void

@:implinlineendQuery(target:Int):Void

@:implinlinefenceSync(condition:Int, flags:Int):GLSync

@:implinlinefinish():Void

@:implinlineflush():Void

@:implinlineframebufferRenderbuffer(target:Int, attachment:Int, renderbuffertarget:Int, renderbuffer:GLRenderbuffer):Void

@:implinlineframebufferTexture2D(target:Int, attachment:Int, textarget:Int, texture:GLTexture, level:Int):Void

@:implinlineframebufferTextureLayer(target:Int, attachment:Int, texture:GLTexture, level:Int, layer:Int):Void

@:implinlinefrontFace(mode:Int):Void

@:implinlinegenerateMipmap(target:Int):Void

@:implinlinegetActiveAttrib(program:GLProgram, index:Int):GLActiveInfo

@:implinlinegetActiveUniform(program:GLProgram, index:Int):GLActiveInfo

@:implinlinegetActiveUniformBlockName(program:GLProgram, uniformBlockIndex:Int):String

@:implinlinegetActiveUniformBlockParameter(program:GLProgram, uniformBlockIndex:Int, pname:Int):Dynamic

@:implinlinegetActiveUniforms(program:GLProgram, uniformIndices:Array<Int>, pname:Int):Dynamic

@:implinlinegetAttribLocation(program:GLProgram, name:String):Int

@:implinlinegetBufferParameter(target:Int, pname:Int):Dynamic

@:value({ srcOffset : 0 })@:implinlinegetBufferSubData(target:Int, srcByteOffset:DataPointer, dstData:ArrayBuffer, srcOffset:Int = 0, ?length:Int):Void

@:implinlinegetError():Int

@:implinlinegetExtension(name:String):Dynamic

@:implinlinegetFragDataLocation(program:GLProgram, name:String):Int

@:implinlinegetFramebufferAttachmentParameter(target:Int, attachment:Int, pname:Int):Dynamic

@:implinlinegetIndexedParameter(target:Int, index:Int):Dynamic

@:implinlinegetInternalformatParameter(target:Int, internalformat:Int, pname:Int):Dynamic

@:implinlinegetParameter(pname:Int):Dynamic

@:implinlinegetProgramInfoLog(program:GLProgram):String

@:implinlinegetProgramParameter(program:GLProgram, pname:Int):Dynamic

@:implinlinegetQuery(target:Int, pname:Int):GLQuery

@:implinlinegetQueryParameter(query:GLQuery, pname:Int):Dynamic

@:implinlinegetRenderbufferParameter(target:Int, pname:Int):Dynamic

@:implinlinegetSamplerParameter(sampler:GLSampler, pname:Int):Dynamic

@:implinlinegetShaderInfoLog(shader:GLShader):String

@:implinlinegetShaderParameter(shader:GLShader, pname:Int):Dynamic

@:implinlinegetShaderPrecisionFormat(shadertype:Int, precisiontype:Int):GLShaderPrecisionFormat

@:implinlinegetShaderSource(shader:GLShader):String

@:implinlinegetSyncParameter(sync:GLSync, pname:Int):Dynamic

@:implinlinegetTexParameter(target:Int, pname:Int):Dynamic

@:implinlinegetUniform(program:GLProgram, location:GLUniformLocation):Dynamic

@:implinlinegetUniformBlockIndex(program:GLProgram, uniformBlockName:String):Int

@:implinlinegetUniformIndices(program:GLProgram, uniformNames:Array<String>):Array<Int>

@:implinlinegetVertexAttrib(index:Int, pname:Int):Dynamic

@:implinlinegetVertexAttribOffset(index:Int, pname:Int):DataPointer

@:implinlinehint(target:Int, mode:Int):Void

@:implinlineinvalidateFramebuffer(target:Int, attachments:Array<Int>):Void

@:implinlineinvalidateSubFramebuffer(target:Int, attachments:Array<Int>, x:Int, y:Int, width:Int, height:Int):Void

@:implinlineisBuffer(buffer:GLBuffer):Bool

@:implinlineisContextLost():Bool

@:implinlineisEnabled(cap:Int):Bool

@:implinlineisFramebuffer(framebuffer:GLFramebuffer):Bool

@:implinlineisProgram(program:GLProgram):Bool

@:implinlineisQuery(query:GLQuery):Bool

@:implinlineisRenderbuffer(renderbuffer:GLRenderbuffer):Bool

@:implinlineisSampler(sampler:GLSampler):Bool

@:implinlineisShader(shader:GLShader):Bool

@:implinlineisSync(sync:GLSync):Bool

@:implinlineisTexture(texture:GLTexture):Bool

@:implinlineisTransformFeedback(transformFeedback:GLTransformFeedback):Bool

@:implinlineisVertexArray(vertexArray:GLVertexArrayObject):Bool

@:implinlinelineWidth(width:Float):Void

@:implinlinelinkProgram(program:GLProgram):Void

@:implinlinepixelStorei(pname:Int, param:Int):Void

@:implinlinepolygonOffset(factor:Float, units:Float):Void

@:implinlinereadBuffer(src:Int):Void

@:value({ dstOffset : 0 })@:implinlinereadPixels(x:Int, y:Int, width:Int, height:Int, format:Int, type:Int, pixels:ArrayBufferView, dstOffset:Int = 0):Void

@:implinlinerenderbufferStorage(target:Int, internalformat:Int, width:Int, height:Int):Void

@:implinlinerenderbufferStorageMultisample(target:Int, samples:Int, internalformat:Int, width:Int, height:Int):Void

@:implinlinesampleCoverage(value:Float, invert:Bool):Void

@:implinlinesamplerParameterf(sampler:GLSampler, pname:Int, param:Float):Void

@:implinlinesamplerParameteri(sampler:GLSampler, pname:Int, param:Int):Void

@:implinlinescissor(x:Int, y:Int, width:Int, height:Int):Void

@:implinlineshaderSource(shader:GLShader, source:String):Void

@:implinlinestencilFunc(func:Int, ref:Int, mask:Int):Void

@:implinlinestencilFuncSeparate(face:Int, func:Int, ref:Int, mask:Int):Void

@:implinlinestencilMask(mask:Int):Void

@:implinlinestencilMaskSeparate(face:Int, mask:Int):Void

@:implinlinestencilOp(fail:Int, zfail:Int, zpass:Int):Void

@:implinlinestencilOpSeparate(face:Int, fail:Int, zfail:Int, zpass:Int):Void

@:value({ srcOffset : 0 })@:implinlinetexImage2D(target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, format:Int, type:Int, srcData:ArrayBufferView, srcOffset:Int = 0):Void

@:value({ srcOffset : 0 })@:implinlinetexImage3D(target:Int, level:Int, internalformat:Int, width:Int, height:Int, depth:Int, border:Int, format:Int, type:Int, srcData:ArrayBufferView, srcOffset:Int = 0):Void

@:implinlinetexParameterf(target:Int, pname:Int, param:Float):Void

@:implinlinetexParameteri(target:Int, pname:Int, param:Int):Void

@:implinlinetexStorage2D(target:Int, level:Int, internalformat:Int, width:Int, height:Int):Void

@:implinlinetexStorage3D(target:Int, level:Int, internalformat:Int, width:Int, height:Int, depth:Int):Void

@:value({ srcOffset : 0 })@:implinlinetexSubImage2D(target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, type:Int, srcData:ArrayBufferView, srcOffset:Int = 0):Void

@:value({ srcOffset : 0 })@:implinlinetexSubImage3D(target:Int, level:Int, xoffset:Int, yoffset:Int, zoffset:Int, width:Int, height:Int, depth:Int, format:Int, type:Int, srcData:ArrayBufferView, srcOffset:Int = 0):Void

@:implinlinetransformFeedbackVaryings(program:GLProgram, varyings:Array<String>, bufferMode:Int):Void

@:implinlineuniform1f(location:GLUniformLocation, v0:Float):Void

@:implinlineuniform1fv(location:GLUniformLocation, v:Float32Array, ?srcOffset:Int, ?srcLength:Int):Void

@:implinlineuniform1i(location:GLUniformLocation, v0:Int):Void

@:implinlineuniform1iv(location:GLUniformLocation, v:Int32Array, ?srcOffset:Int, ?srcLength:Int):Void

@:implinlineuniform1ui(location:GLUniformLocation, v0:Int):Void

@:implinlineuniform1uiv(location:GLUniformLocation, v:UInt32Array, ?srcOffset:Int, ?srcLength:Int):Void

@:implinlineuniform2f(location:GLUniformLocation, v0:Float, v1:Float):Void

@:implinlineuniform2fv(location:GLUniformLocation, v:Float32Array, ?srcOffset:Int, ?srcLength:Int):Void

@:implinlineuniform2i(location:GLUniformLocation, v0:Int, v1:Int):Void

@:implinlineuniform2iv(location:GLUniformLocation, v:Int32Array, ?srcOffset:Int, ?srcLength:Int):Void

@:implinlineuniform2ui(location:GLUniformLocation, v0:Int, v1:Int):Void

@:implinlineuniform2uiv(location:GLUniformLocation, v:UInt32Array, ?srcOffset:Int, ?srcLength:Int):Void

@:implinlineuniform3f(location:GLUniformLocation, v0:Float, v1:Float, v2:Float):Void

@:implinlineuniform3fv(location:GLUniformLocation, v:Float32Array, ?srcOffset:Int, ?srcLength:Int):Void

@:implinlineuniform3i(location:GLUniformLocation, v0:Int, v1:Int, v2:Int):Void

@:implinlineuniform3iv(location:GLUniformLocation, v:Int32Array, ?srcOffset:Int, ?srcLength:Int):Void

@:implinlineuniform3ui(location:GLUniformLocation, v0:Int, v1:Int, v2:Int):Void

@:implinlineuniform3uiv(location:GLUniformLocation, v:UInt32Array, ?srcOffset:Int, ?srcLength:Int):Void

@:implinlineuniform4f(location:GLUniformLocation, v0:Float, v1:Float, v2:Float, v3:Float):Void

@:implinlineuniform4fv(location:GLUniformLocation, v:Float32Array, ?srcOffset:Int, ?srcLength:Int):Void

@:implinlineuniform4i(location:GLUniformLocation, v0:Int, v1:Int, v2:Int, v3:Int):Void

@:implinlineuniform4iv(location:GLUniformLocation, v:Int32Array, ?srcOffset:Int, ?srcLength:Int):Void

@:implinlineuniform4ui(location:GLUniformLocation, v0:Int, v1:Int, v2:Int, v3:Int):Void

@:implinlineuniform4uiv(location:GLUniformLocation, v:UInt32Array, ?srcOffset:Int, ?srcLength:Int):Void

@:implinlineuniformBlockBinding(program:GLProgram, uniformBlockIndex:Int, uniformBlockBinding:Int):Void

@:value({ srcOffset : 0 })@:impluniformMatrix2fv(location:GLUniformLocation, transpose:Bool, v:Float32Array, srcOffset:Int = 0, ?srcLength:Int):Void

@:value({ srcOffset : 0 })@:impluniformMatrix2x3fv(location:GLUniformLocation, transpose:Bool, v:Float32Array, srcOffset:Int = 0, ?srcLength:Int):Void

@:value({ srcOffset : 0 })@:impluniformMatrix2x4fv(location:GLUniformLocation, transpose:Bool, v:Float32Array, srcOffset:Int = 0, ?srcLength:Int):Void

@:value({ srcOffset : 0 })@:impluniformMatrix3fv(location:GLUniformLocation, transpose:Bool, v:Float32Array, srcOffset:Int = 0, ?srcLength:Int):Void

@:value({ srcOffset : 0 })@:impluniformMatrix3x2fv(location:GLUniformLocation, transpose:Bool, v:Float32Array, srcOffset:Int = 0, ?srcLength:Int):Void

@:value({ srcOffset : 0 })@:impluniformMatrix3x4fv(location:GLUniformLocation, transpose:Bool, v:Float32Array, srcOffset:Int = 0, ?srcLength:Int):Void

@:value({ srcOffset : 0 })@:impluniformMatrix4fv(location:GLUniformLocation, transpose:Bool, v:Float32Array, srcOffset:Int = 0, ?srcLength:Int):Void

@:value({ srcOffset : 0 })@:impluniformMatrix4x2fv(location:GLUniformLocation, transpose:Bool, v:Float32Array, srcOffset:Int = 0, ?srcLength:Int):Void

@:value({ srcOffset : 0 })@:impluniformMatrix4x3fv(location:GLUniformLocation, transpose:Bool, v:Float32Array, srcOffset:Int = 0, ?srcLength:Int):Void

@:implinlineuseProgram(program:GLProgram):Void

@:implinlinevalidateProgram(program:GLProgram):Void

@:implinlinevertexAttrib1f(indx:Int, x:Float):Void

@:implinlinevertexAttrib1fv(indx:Int, values:DataPointer):Void

@:implinlinevertexAttrib2f(indx:Int, x:Float, y:Float):Void

@:implinlinevertexAttrib2fv(indx:Int, values:DataPointer):Void

@:implinlinevertexAttrib3f(indx:Int, x:Float, y:Float, z:Float):Void

@:implinlinevertexAttrib3fv(indx:Int, values:DataPointer):Void

@:implinlinevertexAttrib4f(indx:Int, x:Float, y:Float, z:Float, w:Float):Void

@:implinlinevertexAttrib4fv(indx:Int, values:DataPointer):Void

@:implinlinevertexAttribDivisor(index:Int, divisor:Int):Void

@:implinlinevertexAttribI4i(indx:Int, x:Int, y:Int, z:Int, w:Int):Void

@:implinlinevertexAttribI4iv(indx:Int, values:DataPointer):Void

@:implinlinevertexAttribI4ui(indx:Int, x:Int, y:Int, z:Int, w:Int):Void

@:implinlinevertexAttribI4uiv(indx:Int, values:DataPointer):Void

@:implinlinevertexAttribIPointer(index:Int, size:Int, type:Int, stride:Int, offset:DataPointer):Void

@:implinlinevertexAttribPointer(indx:Int, size:Int, type:Int, normalized:Bool, stride:Int, offset:DataPointer):Void

@:implinlineviewport(x:Int, y:Int, width:Int, height:Int):Void

@:implinlinewaitSync(sync:GLSync, flags:Int, timeout:Int64):Void