WebGL2RenderingContext
The WebGL2RenderingContext interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML canvas element.
Documentation WebGL2RenderingContext by Mozilla Contributors, licensed under CC-BY-SA 2.5.
Static Members
READ_BUFFER: IntUNPACK_ROW_LENGTH: IntUNPACK_SKIP_ROWS: IntUNPACK_SKIP_PIXELS: IntPACK_ROW_LENGTH: IntPACK_SKIP_ROWS: IntPACK_SKIP_PIXELS: IntCOLOR: IntDEPTH: IntSTENCIL: IntRED: IntRGB8: IntRGBA8: IntRGB10_A2: IntTEXTURE_BINDING_3D: IntUNPACK_SKIP_IMAGES: IntUNPACK_IMAGE_HEIGHT: IntTEXTURE_3D: IntTEXTURE_WRAP_R: IntMAX_3D_TEXTURE_SIZE: IntUNSIGNED_INT_2_10_10_10_REV: IntMAX_ELEMENTS_VERTICES: IntMAX_ELEMENTS_INDICES: IntTEXTURE_MIN_LOD: IntTEXTURE_MAX_LOD: IntTEXTURE_BASE_LEVEL: IntTEXTURE_MAX_LEVEL: IntMIN: IntMAX: IntDEPTH_COMPONENT24: IntMAX_TEXTURE_LOD_BIAS: IntTEXTURE_COMPARE_MODE: IntTEXTURE_COMPARE_FUNC: IntCURRENT_QUERY: IntQUERY_RESULT: IntQUERY_RESULT_AVAILABLE: IntSTREAM_READ: IntSTREAM_COPY: IntSTATIC_READ: IntSTATIC_COPY: IntDYNAMIC_READ: IntDYNAMIC_COPY: IntMAX_DRAW_BUFFERS: IntDRAW_BUFFER0: IntDRAW_BUFFER1: IntDRAW_BUFFER2: IntDRAW_BUFFER3: IntDRAW_BUFFER4: IntDRAW_BUFFER5: IntDRAW_BUFFER6: IntDRAW_BUFFER7: IntDRAW_BUFFER8: IntDRAW_BUFFER9: IntDRAW_BUFFER10: IntDRAW_BUFFER11: IntDRAW_BUFFER12: IntDRAW_BUFFER13: IntDRAW_BUFFER14: IntDRAW_BUFFER15: IntMAX_FRAGMENT_UNIFORM_COMPONENTS: IntMAX_VERTEX_UNIFORM_COMPONENTS: IntSAMPLER_3D: IntSAMPLER_2D_SHADOW: IntFRAGMENT_SHADER_DERIVATIVE_HINT: IntPIXEL_PACK_BUFFER: IntPIXEL_UNPACK_BUFFER: IntPIXEL_PACK_BUFFER_BINDING: IntPIXEL_UNPACK_BUFFER_BINDING: IntFLOAT_MAT2x3: IntFLOAT_MAT2x4: IntFLOAT_MAT3x2: IntFLOAT_MAT3x4: IntFLOAT_MAT4x2: IntFLOAT_MAT4x3: IntSRGB: IntSRGB8: IntSRGB8_ALPHA8: IntCOMPARE_REF_TO_TEXTURE: IntRGBA32F: IntRGB32F: IntRGBA16F: IntRGB16F: IntVERTEX_ATTRIB_ARRAY_INTEGER: IntMAX_ARRAY_TEXTURE_LAYERS: IntMIN_PROGRAM_TEXEL_OFFSET: IntMAX_PROGRAM_TEXEL_OFFSET: IntMAX_VARYING_COMPONENTS: IntTEXTURE_2D_ARRAY: IntTEXTURE_BINDING_2D_ARRAY: IntR11F_G11F_B10F: IntUNSIGNED_INT_10F_11F_11F_REV: IntRGB9_E5: IntUNSIGNED_INT_5_9_9_9_REV: IntTRANSFORM_FEEDBACK_BUFFER_MODE: IntMAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: IntTRANSFORM_FEEDBACK_VARYINGS: IntTRANSFORM_FEEDBACK_BUFFER_START: IntTRANSFORM_FEEDBACK_BUFFER_SIZE: IntTRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: IntRASTERIZER_DISCARD: IntMAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: IntMAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: IntINTERLEAVED_ATTRIBS: IntSEPARATE_ATTRIBS: IntTRANSFORM_FEEDBACK_BUFFER: IntTRANSFORM_FEEDBACK_BUFFER_BINDING: IntRGBA32UI: IntRGB32UI: IntRGBA16UI: IntRGB16UI: IntRGBA8UI: IntRGB8UI: IntRGBA32I: IntRGB32I: IntRGBA16I: IntRGB16I: IntRGBA8I: IntRGB8I: IntRED_INTEGER: IntRGB_INTEGER: IntRGBA_INTEGER: IntSAMPLER_2D_ARRAY: IntSAMPLER_2D_ARRAY_SHADOW: IntSAMPLER_CUBE_SHADOW: IntUNSIGNED_INT_VEC2: IntUNSIGNED_INT_VEC3: IntUNSIGNED_INT_VEC4: IntINT_SAMPLER_2D: IntINT_SAMPLER_3D: IntINT_SAMPLER_CUBE: IntINT_SAMPLER_2D_ARRAY: IntUNSIGNED_INT_SAMPLER_2D: IntUNSIGNED_INT_SAMPLER_3D: IntUNSIGNED_INT_SAMPLER_CUBE: IntUNSIGNED_INT_SAMPLER_2D_ARRAY: IntDEPTH_COMPONENT32F: IntDEPTH32F_STENCIL8: IntFLOAT_32_UNSIGNED_INT_24_8_REV: IntFRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: IntFRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: IntFRAMEBUFFER_ATTACHMENT_RED_SIZE: IntFRAMEBUFFER_ATTACHMENT_GREEN_SIZE: IntFRAMEBUFFER_ATTACHMENT_BLUE_SIZE: IntFRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: IntFRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: IntFRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: IntFRAMEBUFFER_DEFAULT: IntUNSIGNED_INT_24_8: IntDEPTH24_STENCIL8: IntUNSIGNED_NORMALIZED: IntDRAW_FRAMEBUFFER_BINDING: IntREAD_FRAMEBUFFER: IntDRAW_FRAMEBUFFER: IntREAD_FRAMEBUFFER_BINDING: IntRENDERBUFFER_SAMPLES: IntFRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: IntMAX_COLOR_ATTACHMENTS: IntCOLOR_ATTACHMENT1: IntCOLOR_ATTACHMENT2: IntCOLOR_ATTACHMENT3: IntCOLOR_ATTACHMENT4: IntCOLOR_ATTACHMENT5: IntCOLOR_ATTACHMENT6: IntCOLOR_ATTACHMENT7: IntCOLOR_ATTACHMENT8: IntCOLOR_ATTACHMENT9: IntCOLOR_ATTACHMENT10: IntCOLOR_ATTACHMENT11: IntCOLOR_ATTACHMENT12: IntCOLOR_ATTACHMENT13: IntCOLOR_ATTACHMENT14: IntCOLOR_ATTACHMENT15: IntFRAMEBUFFER_INCOMPLETE_MULTISAMPLE: IntMAX_SAMPLES: IntHALF_FLOAT: IntRG: IntRG_INTEGER: IntR8: IntRG8: IntR16F: IntR32F: IntRG16F: IntRG32F: IntR8I: IntR8UI: IntR16I: IntR16UI: IntR32I: IntR32UI: IntRG8I: IntRG8UI: IntRG16I: IntRG16UI: IntRG32I: IntRG32UI: IntVERTEX_ARRAY_BINDING: IntR8_SNORM: IntRG8_SNORM: IntRGB8_SNORM: IntRGBA8_SNORM: IntSIGNED_NORMALIZED: IntCOPY_READ_BUFFER: IntCOPY_WRITE_BUFFER: IntCOPY_READ_BUFFER_BINDING: IntCOPY_WRITE_BUFFER_BINDING: IntUNIFORM_BUFFER: IntUNIFORM_BUFFER_BINDING: IntUNIFORM_BUFFER_START: IntUNIFORM_BUFFER_SIZE: IntMAX_VERTEX_UNIFORM_BLOCKS: IntMAX_FRAGMENT_UNIFORM_BLOCKS: IntMAX_COMBINED_UNIFORM_BLOCKS: IntMAX_UNIFORM_BUFFER_BINDINGS: IntMAX_UNIFORM_BLOCK_SIZE: IntMAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: IntMAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: IntUNIFORM_BUFFER_OFFSET_ALIGNMENT: IntACTIVE_UNIFORM_BLOCKS: IntUNIFORM_TYPE: IntUNIFORM_SIZE: IntUNIFORM_BLOCK_INDEX: IntUNIFORM_OFFSET: IntUNIFORM_ARRAY_STRIDE: IntUNIFORM_MATRIX_STRIDE: IntUNIFORM_IS_ROW_MAJOR: IntUNIFORM_BLOCK_BINDING: IntUNIFORM_BLOCK_DATA_SIZE: IntUNIFORM_BLOCK_ACTIVE_UNIFORMS: IntUNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: IntUNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: IntUNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: IntINVALID_INDEX: IntMAX_VERTEX_OUTPUT_COMPONENTS: IntMAX_FRAGMENT_INPUT_COMPONENTS: IntMAX_SERVER_WAIT_TIMEOUT: IntOBJECT_TYPE: IntSYNC_CONDITION: IntSYNC_STATUS: IntSYNC_FLAGS: IntSYNC_FENCE: IntSYNC_GPU_COMMANDS_COMPLETE: IntUNSIGNALED: IntSIGNALED: IntALREADY_SIGNALED: IntTIMEOUT_EXPIRED: IntCONDITION_SATISFIED: IntWAIT_FAILED: IntSYNC_FLUSH_COMMANDS_BIT: IntVERTEX_ATTRIB_ARRAY_DIVISOR: IntANY_SAMPLES_PASSED: IntANY_SAMPLES_PASSED_CONSERVATIVE: IntSAMPLER_BINDING: IntRGB10_A2UI: IntINT_2_10_10_10_REV: IntTRANSFORM_FEEDBACK: IntTRANSFORM_FEEDBACK_PAUSED: IntTRANSFORM_FEEDBACK_ACTIVE: IntTRANSFORM_FEEDBACK_BINDING: IntTEXTURE_IMMUTABLE_FORMAT: IntMAX_ELEMENT_INDEX: IntTEXTURE_IMMUTABLE_LEVELS: IntTIMEOUT_IGNORED: IntMAX_CLIENT_WAIT_TIMEOUT_WEBGL: IntDEPTH_BUFFER_BIT: IntSTENCIL_BUFFER_BIT: IntCOLOR_BUFFER_BIT: IntPOINTS: IntLINES: IntLINE_LOOP: IntLINE_STRIP: IntTRIANGLES: IntTRIANGLE_STRIP: IntTRIANGLE_FAN: IntZERO: IntONE: IntSRC_COLOR: IntONE_MINUS_SRC_COLOR: IntSRC_ALPHA: IntONE_MINUS_SRC_ALPHA: IntDST_ALPHA: IntONE_MINUS_DST_ALPHA: IntDST_COLOR: IntONE_MINUS_DST_COLOR: IntSRC_ALPHA_SATURATE: IntFUNC_ADD: IntBLEND_EQUATION: IntBLEND_EQUATION_RGB: IntBLEND_EQUATION_ALPHA: IntFUNC_SUBTRACT: IntFUNC_REVERSE_SUBTRACT: IntBLEND_DST_RGB: IntBLEND_SRC_RGB: IntBLEND_DST_ALPHA: IntBLEND_SRC_ALPHA: IntCONSTANT_COLOR: IntONE_MINUS_CONSTANT_COLOR: IntCONSTANT_ALPHA: IntONE_MINUS_CONSTANT_ALPHA: IntBLEND_COLOR: IntARRAY_BUFFER: IntELEMENT_ARRAY_BUFFER: IntARRAY_BUFFER_BINDING: IntELEMENT_ARRAY_BUFFER_BINDING: IntSTREAM_DRAW: IntSTATIC_DRAW: IntDYNAMIC_DRAW: IntBUFFER_SIZE: IntBUFFER_USAGE: IntCURRENT_VERTEX_ATTRIB: IntFRONT: IntBACK: IntFRONT_AND_BACK: IntCULL_FACE: IntBLEND: IntDITHER: IntSTENCIL_TEST: IntDEPTH_TEST: IntSCISSOR_TEST: IntPOLYGON_OFFSET_FILL: IntSAMPLE_ALPHA_TO_COVERAGE: IntSAMPLE_COVERAGE: IntNO_ERROR: IntINVALID_ENUM: IntINVALID_VALUE: IntINVALID_OPERATION: IntOUT_OF_MEMORY: IntCW: IntCCW: IntLINE_WIDTH: IntALIASED_POINT_SIZE_RANGE: IntALIASED_LINE_WIDTH_RANGE: IntCULL_FACE_MODE: IntFRONT_FACE: IntDEPTH_RANGE: IntDEPTH_WRITEMASK: IntDEPTH_CLEAR_VALUE: IntDEPTH_FUNC: IntSTENCIL_CLEAR_VALUE: IntSTENCIL_FUNC: IntSTENCIL_FAIL: IntSTENCIL_PASS_DEPTH_FAIL: IntSTENCIL_PASS_DEPTH_PASS: IntSTENCIL_REF: IntSTENCIL_VALUE_MASK: IntSTENCIL_WRITEMASK: IntSTENCIL_BACK_FUNC: IntSTENCIL_BACK_FAIL: IntSTENCIL_BACK_PASS_DEPTH_FAIL: IntSTENCIL_BACK_PASS_DEPTH_PASS: IntSTENCIL_BACK_REF: IntSTENCIL_BACK_VALUE_MASK: IntSTENCIL_BACK_WRITEMASK: IntVIEWPORT: IntSCISSOR_BOX: IntCOLOR_CLEAR_VALUE: IntCOLOR_WRITEMASK: IntUNPACK_ALIGNMENT: IntPACK_ALIGNMENT: IntMAX_TEXTURE_SIZE: IntMAX_VIEWPORT_DIMS: IntSUBPIXEL_BITS: IntRED_BITS: IntGREEN_BITS: IntBLUE_BITS: IntALPHA_BITS: IntDEPTH_BITS: IntSTENCIL_BITS: IntPOLYGON_OFFSET_UNITS: IntPOLYGON_OFFSET_FACTOR: IntTEXTURE_BINDING_2D: IntSAMPLE_BUFFERS: IntSAMPLES: IntSAMPLE_COVERAGE_VALUE: IntSAMPLE_COVERAGE_INVERT: IntCOMPRESSED_TEXTURE_FORMATS: IntDONT_CARE: IntFASTEST: IntNICEST: IntGENERATE_MIPMAP_HINT: IntBYTE: IntUNSIGNED_BYTE: IntSHORT: IntUNSIGNED_SHORT: IntINT: IntUNSIGNED_INT: IntFLOAT: IntDEPTH_COMPONENT: IntALPHA: IntRGB: IntRGBA: IntLUMINANCE: IntLUMINANCE_ALPHA: IntUNSIGNED_SHORT_4_4_4_4: IntUNSIGNED_SHORT_5_5_5_1: IntUNSIGNED_SHORT_5_6_5: IntFRAGMENT_SHADER: IntVERTEX_SHADER: IntMAX_VERTEX_ATTRIBS: IntMAX_VERTEX_UNIFORM_VECTORS: IntMAX_VARYING_VECTORS: IntMAX_COMBINED_TEXTURE_IMAGE_UNITS: IntMAX_VERTEX_TEXTURE_IMAGE_UNITS: IntMAX_TEXTURE_IMAGE_UNITS: IntMAX_FRAGMENT_UNIFORM_VECTORS: IntSHADER_TYPE: IntDELETE_STATUS: IntLINK_STATUS: IntVALIDATE_STATUS: IntATTACHED_SHADERS: IntACTIVE_UNIFORMS: IntACTIVE_ATTRIBUTES: IntSHADING_LANGUAGE_VERSION: IntCURRENT_PROGRAM: IntNEVER: IntLESS: IntEQUAL: IntLEQUAL: IntGREATER: IntNOTEQUAL: IntGEQUAL: IntALWAYS: IntKEEP: IntREPLACE: IntINCR: IntDECR: IntINVERT: IntINCR_WRAP: IntDECR_WRAP: IntVENDOR: IntRENDERER: IntVERSION: IntNEAREST: IntLINEAR: IntNEAREST_MIPMAP_NEAREST: IntLINEAR_MIPMAP_NEAREST: IntNEAREST_MIPMAP_LINEAR: IntLINEAR_MIPMAP_LINEAR: IntTEXTURE_MAG_FILTER: IntTEXTURE_MIN_FILTER: IntTEXTURE_WRAP_S: IntTEXTURE_WRAP_T: IntTEXTURE_2D: IntTEXTURE: IntTEXTURE_CUBE_MAP: IntTEXTURE_BINDING_CUBE_MAP: IntTEXTURE_CUBE_MAP_POSITIVE_X: IntTEXTURE_CUBE_MAP_NEGATIVE_X: IntTEXTURE_CUBE_MAP_POSITIVE_Y: IntTEXTURE_CUBE_MAP_NEGATIVE_Y: IntTEXTURE_CUBE_MAP_POSITIVE_Z: IntTEXTURE_CUBE_MAP_NEGATIVE_Z: IntMAX_CUBE_MAP_TEXTURE_SIZE: IntTEXTURE0: IntTEXTURE1: IntTEXTURE2: IntTEXTURE3: IntTEXTURE4: IntTEXTURE5: IntTEXTURE6: IntTEXTURE7: IntTEXTURE8: IntTEXTURE9: IntTEXTURE10: IntTEXTURE11: IntTEXTURE12: IntTEXTURE13: IntTEXTURE14: IntTEXTURE15: IntTEXTURE16: IntTEXTURE17: IntTEXTURE18: IntTEXTURE19: IntTEXTURE20: IntTEXTURE21: IntTEXTURE22: IntTEXTURE23: IntTEXTURE24: IntTEXTURE25: IntTEXTURE26: IntTEXTURE27: IntTEXTURE28: IntTEXTURE29: IntTEXTURE30: IntTEXTURE31: IntACTIVE_TEXTURE: IntREPEAT: IntCLAMP_TO_EDGE: IntMIRRORED_REPEAT: IntFLOAT_VEC2: IntFLOAT_VEC3: IntFLOAT_VEC4: IntINT_VEC2: IntINT_VEC3: IntINT_VEC4: IntBOOL: IntBOOL_VEC2: IntBOOL_VEC3: IntBOOL_VEC4: IntFLOAT_MAT2: IntFLOAT_MAT3: IntFLOAT_MAT4: IntSAMPLER_2D: IntSAMPLER_CUBE: IntVERTEX_ATTRIB_ARRAY_ENABLED: IntVERTEX_ATTRIB_ARRAY_SIZE: IntVERTEX_ATTRIB_ARRAY_STRIDE: IntVERTEX_ATTRIB_ARRAY_TYPE: IntVERTEX_ATTRIB_ARRAY_NORMALIZED: IntVERTEX_ATTRIB_ARRAY_POINTER: IntVERTEX_ATTRIB_ARRAY_BUFFER_BINDING: IntIMPLEMENTATION_COLOR_READ_TYPE: IntIMPLEMENTATION_COLOR_READ_FORMAT: IntCOMPILE_STATUS: IntLOW_FLOAT: IntMEDIUM_FLOAT: IntHIGH_FLOAT: IntLOW_INT: IntMEDIUM_INT: IntHIGH_INT: IntFRAMEBUFFER: IntRENDERBUFFER: IntRGBA4: IntRGB5_A1: IntRGB565: IntDEPTH_COMPONENT16: IntSTENCIL_INDEX8: IntDEPTH_STENCIL: IntRENDERBUFFER_WIDTH: IntRENDERBUFFER_HEIGHT: IntRENDERBUFFER_INTERNAL_FORMAT: IntRENDERBUFFER_RED_SIZE: IntRENDERBUFFER_GREEN_SIZE: IntRENDERBUFFER_BLUE_SIZE: IntRENDERBUFFER_ALPHA_SIZE: IntRENDERBUFFER_DEPTH_SIZE: IntRENDERBUFFER_STENCIL_SIZE: IntFRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: IntFRAMEBUFFER_ATTACHMENT_OBJECT_NAME: IntFRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: IntFRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: IntCOLOR_ATTACHMENT0: IntDEPTH_ATTACHMENT: IntSTENCIL_ATTACHMENT: IntDEPTH_STENCIL_ATTACHMENT: IntNONE: IntFRAMEBUFFER_COMPLETE: IntFRAMEBUFFER_INCOMPLETE_ATTACHMENT: IntFRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: IntFRAMEBUFFER_INCOMPLETE_DIMENSIONS: IntFRAMEBUFFER_UNSUPPORTED: IntFRAMEBUFFER_BINDING: IntRENDERBUFFER_BINDING: IntMAX_RENDERBUFFER_SIZE: IntINVALID_FRAMEBUFFER_OPERATION: IntUNPACK_FLIP_Y_WEBGL: IntUNPACK_PREMULTIPLY_ALPHA_WEBGL: IntCONTEXT_LOST_WEBGL: IntUNPACK_COLORSPACE_CONVERSION_WEBGL: IntBROWSER_DEFAULT_WEBGL: IntInstance Members
bufferData(target: Int, srcData: js.lib.ArrayBufferView, usage: Int, srcOffset: Int, ?length: Int = 0): VoidInitializes and creates the buffer object's data store.
| Name | Type | Default |
|---|---|---|
target |
Int | |
srcData |
js.lib.ArrayBufferView | |
usage |
Int | |
srcOffset |
Int | |
length |
Int | 0 |
bufferSubData(target: Int, dstByteOffset: Int, srcData: js.lib.ArrayBufferView, srcOffset: Int, ?length: Int = 0): VoidUpdates a subset of a buffer object's data store.
| Name | Type | Default |
|---|---|---|
target |
Int | |
dstByteOffset |
Int | |
srcData |
js.lib.ArrayBufferView | |
srcOffset |
Int | |
length |
Int | 0 |
copyBufferSubData(readTarget: Int, writeTarget: Int, readOffset: Int, writeOffset: Int, size: Int): VoidCopies part of the data of a buffer to another buffer.
| Name | Type |
|---|---|
readTarget |
Int |
writeTarget |
Int |
readOffset |
Int |
writeOffset |
Int |
size |
Int |
getBufferSubData(target: Int, srcByteOffset: Int, dstData: js.lib.ArrayBufferView, ?dstOffset: Int = 0, ?length: Int = 0): VoidReads data from a buffer and writes them to an ArrayBuffer or SharedArrayBuffer.
| Name | Type | Default |
|---|---|---|
target |
Int | |
srcByteOffset |
Int | |
dstData |
js.lib.ArrayBufferView | |
dstOffset |
Int | 0 |
length |
Int | 0 |
blitFramebuffer(srcX0: Int, srcY0: Int, srcX1: Int, srcY1: Int, dstX0: Int, dstY0: Int, dstX1: Int, dstY1: Int, mask: Int, filter: Int): VoidTransfers a block of pixels from the read framebuffer to the draw framebuffer.
| Name | Type |
|---|---|
srcX0 |
Int |
srcY0 |
Int |
srcX1 |
Int |
srcY1 |
Int |
dstX0 |
Int |
dstY0 |
Int |
dstX1 |
Int |
dstY1 |
Int |
mask |
Int |
filter |
Int |
framebufferTextureLayer(target: Int, attachment: Int, texture: Texture, level: Int, layer: Int): VoidAttaches a single layer of a texture to a framebuffer.
| Name | Type |
|---|---|
target |
Int |
attachment |
Int |
texture |
Texture |
level |
Int |
layer |
Int |
Invalidates the contents of attachments in a framebuffer.
| Name | Type |
|---|---|
target |
Int |
attachments |
Array<Int> |
invalidateSubFramebuffer(target: Int, attachments: Array<Int>, x: Int, y: Int, width: Int, height: Int): VoidInvalidates portions of the contents of attachments in a framebuffer
| Name | Type |
|---|---|
target |
Int |
attachments |
Array<Int> |
x |
Int |
y |
Int |
width |
Int |
height |
Int |
Selects a color buffer as the source for pixels.
| Name | Type |
|---|---|
src |
Int |
Returns information about implementation-dependent support for internal formats.
| Name | Type |
|---|---|
target |
Int |
internalformat |
Int |
pname |
Int |
| Returns |
|---|
| Dynamic |
renderbufferStorageMultisample(target: Int, samples: Int, internalformat: Int, width: Int, height: Int): VoidCreates and initializes a renderbuffer object's data store and allows specifying the number of samples to be used.
| Name | Type |
|---|---|
target |
Int |
samples |
Int |
internalformat |
Int |
width |
Int |
height |
Int |
Specifies all levels of two-dimensional texture storage.
| Name | Type |
|---|---|
target |
Int |
levels |
Int |
internalformat |
Int |
width |
Int |
height |
Int |
texStorage3D(target: Int, levels: Int, internalformat: Int, width: Int, height: Int, depth: Int): VoidSpecifies all levels of a three-dimensional texture or two-dimensional array texture.
| Name | Type |
|---|---|
target |
Int |
levels |
Int |
internalformat |
Int |
width |
Int |
height |
Int |
depth |
Int |
texImage2D(target: Int, level: Int, internalformat: Int, width: Int, height: Int, border: Int, format: Int, type: Int, srcData: js.lib.ArrayBufferView, srcOffset: Int): Void| Name | Type |
|---|---|
target |
Int |
level |
Int |
internalformat |
Int |
width |
Int |
height |
Int |
border |
Int |
format |
Int |
type |
Int |
srcData |
js.lib.ArrayBufferView |
srcOffset |
Int |
texSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, width: Int, height: Int, format: Int, type: Int, srcData: js.lib.ArrayBufferView, srcOffset: Int): Void| Name | Type |
|---|---|
target |
Int |
level |
Int |
xoffset |
Int |
yoffset |
Int |
width |
Int |
height |
Int |
format |
Int |
type |
Int |
srcData |
js.lib.ArrayBufferView |
srcOffset |
Int |
texImage3D(target: Int, level: Int, internalformat: Int, width: Int, height: Int, depth: Int, border: Int, format: Int, type: Int, srcData: js.lib.ArrayBufferView, srcOffset: Int): VoidSpecifies a three-dimensional texture image.
| Name | Type |
|---|---|
target |
Int |
level |
Int |
internalformat |
Int |
width |
Int |
height |
Int |
depth |
Int |
border |
Int |
format |
Int |
type |
Int |
srcData |
js.lib.ArrayBufferView |
srcOffset |
Int |
texSubImage3D(target: Int, level: Int, xoffset: Int, yoffset: Int, zoffset: Int, width: Int, height: Int, depth: Int, format: Int, type: Int, srcData: js.lib.ArrayBufferView, ?srcOffset: Int = 0): VoidSpecifies a sub-rectangle of the current 3D texture.
| Name | Type | Default |
|---|---|---|
target |
Int | |
level |
Int | |
xoffset |
Int | |
yoffset |
Int | |
zoffset |
Int | |
width |
Int | |
height |
Int | |
depth |
Int | |
format |
Int | |
type |
Int | |
srcData |
js.lib.ArrayBufferView | |
srcOffset |
Int | 0 |
copyTexSubImage3D(target: Int, level: Int, xoffset: Int, yoffset: Int, zoffset: Int, x: Int, y: Int, width: Int, height: Int): VoidCopies pixels from the current WebGLFramebuffer into an existing 3D texture sub-image.
| Name | Type |
|---|---|
target |
Int |
level |
Int |
xoffset |
Int |
yoffset |
Int |
zoffset |
Int |
x |
Int |
y |
Int |
width |
Int |
height |
Int |
compressedTexImage2D(target: Int, level: Int, internalformat: Int, width: Int, height: Int, border: Int, srcData: js.lib.ArrayBufferView, ?srcOffset: Int = 0, ?srcLengthOverride: Int = 0): Void| Name | Type | Default |
|---|---|---|
target |
Int | |
level |
Int | |
internalformat |
Int | |
width |
Int | |
height |
Int | |
border |
Int | |
srcData |
js.lib.ArrayBufferView | |
srcOffset |
Int | 0 |
srcLengthOverride |
Int | 0 |
compressedTexImage3D(target: Int, level: Int, internalformat: Int, width: Int, height: Int, depth: Int, border: Int, srcData: js.lib.ArrayBufferView, ?srcOffset: Int = 0, ?srcLengthOverride: Int = 0): VoidSpecifies a three-dimensional texture image in a compressed format.
| Name | Type | Default |
|---|---|---|
target |
Int | |
level |
Int | |
internalformat |
Int | |
width |
Int | |
height |
Int | |
depth |
Int | |
border |
Int | |
srcData |
js.lib.ArrayBufferView | |
srcOffset |
Int | 0 |
srcLengthOverride |
Int | 0 |
compressedTexSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, width: Int, height: Int, format: Int, srcData: js.lib.ArrayBufferView, ?srcOffset: Int = 0, ?srcLengthOverride: Int = 0): Void| Name | Type | Default |
|---|---|---|
target |
Int | |
level |
Int | |
xoffset |
Int | |
yoffset |
Int | |
width |
Int | |
height |
Int | |
format |
Int | |
srcData |
js.lib.ArrayBufferView | |
srcOffset |
Int | 0 |
srcLengthOverride |
Int | 0 |
compressedTexSubImage3D(target: Int, level: Int, xoffset: Int, yoffset: Int, zoffset: Int, width: Int, height: Int, depth: Int, format: Int, srcData: js.lib.ArrayBufferView, ?srcOffset: Int = 0, ?srcLengthOverride: Int = 0): VoidSpecifies a three-dimensional sub-rectangle for a texture image in a compressed format.
| Name | Type | Default |
|---|---|---|
target |
Int | |
level |
Int | |
xoffset |
Int | |
yoffset |
Int | |
zoffset |
Int | |
width |
Int | |
height |
Int | |
depth |
Int | |
format |
Int | |
srcData |
js.lib.ArrayBufferView | |
srcOffset |
Int | 0 |
srcLengthOverride |
Int | 0 |
Returns the binding of color numbers to user-defined varying out variables.
| Name | Type |
|---|---|
program |
Program |
name |
String |
| Returns |
|---|
| Int |
uniform1ui(location: UniformLocation, v0: Int): Void| Name | Type |
|---|---|
location |
UniformLocation |
v0 |
Int |
uniform2ui(location: UniformLocation, v0: Int, v1: Int): Void| Name | Type |
|---|---|
location |
UniformLocation |
v0 |
Int |
v1 |
Int |
uniform3ui(location: UniformLocation, v0: Int, v1: Int, v2: Int): Void| Name | Type |
|---|---|
location |
UniformLocation |
v0 |
Int |
v1 |
Int |
v2 |
Int |
| Name | Type |
|---|---|
location |
UniformLocation |
v0 |
Int |
v1 |
Int |
v2 |
Int |
v3 |
Int |
uniform1fv(location: UniformLocation, data: js.lib.Float32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
data |
js.lib.Float32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniform2fv(location: UniformLocation, data: js.lib.Float32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
data |
js.lib.Float32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniform3fv(location: UniformLocation, data: js.lib.Float32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
data |
js.lib.Float32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniform4fv(location: UniformLocation, data: js.lib.Float32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
data |
js.lib.Float32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniform1iv(location: UniformLocation, data: js.lib.Int32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
data |
js.lib.Int32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniform2iv(location: UniformLocation, data: js.lib.Int32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
data |
js.lib.Int32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniform3iv(location: UniformLocation, data: js.lib.Int32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
data |
js.lib.Int32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniform4iv(location: UniformLocation, data: js.lib.Int32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
data |
js.lib.Int32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniform1uiv(location: UniformLocation, data: js.lib.Uint32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
data |
js.lib.Uint32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniform2uiv(location: UniformLocation, data: js.lib.Uint32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
data |
js.lib.Uint32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniform3uiv(location: UniformLocation, data: js.lib.Uint32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
data |
js.lib.Uint32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniform4uiv(location: UniformLocation, data: js.lib.Uint32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
data |
js.lib.Uint32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniformMatrix2fv(location: UniformLocation, transpose: Bool, data: js.lib.Float32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
transpose |
Bool | |
data |
js.lib.Float32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniformMatrix3x2fv(location: UniformLocation, transpose: Bool, data: js.lib.Float32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
transpose |
Bool | |
data |
js.lib.Float32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniformMatrix4x2fv(location: UniformLocation, transpose: Bool, data: js.lib.Float32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
transpose |
Bool | |
data |
js.lib.Float32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniformMatrix2x3fv(location: UniformLocation, transpose: Bool, data: js.lib.Float32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
transpose |
Bool | |
data |
js.lib.Float32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniformMatrix3fv(location: UniformLocation, transpose: Bool, data: js.lib.Float32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
transpose |
Bool | |
data |
js.lib.Float32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniformMatrix4x3fv(location: UniformLocation, transpose: Bool, data: js.lib.Float32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
transpose |
Bool | |
data |
js.lib.Float32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniformMatrix2x4fv(location: UniformLocation, transpose: Bool, data: js.lib.Float32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
transpose |
Bool | |
data |
js.lib.Float32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniformMatrix3x4fv(location: UniformLocation, transpose: Bool, data: js.lib.Float32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
transpose |
Bool | |
data |
js.lib.Float32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
uniformMatrix4fv(location: UniformLocation, transpose: Bool, data: js.lib.Float32Array, ?srcOffset: Int = 0, ?srcLength: Int = 0): Void| Name | Type | Default |
|---|---|---|
location |
UniformLocation | |
transpose |
Bool | |
data |
js.lib.Float32Array | |
srcOffset |
Int | 0 |
srcLength |
Int | 0 |
| Name | Type |
|---|---|
index |
Int |
x |
Int |
y |
Int |
z |
Int |
w |
Int |
vertexAttribI4iv(index: Int, values: js.lib.Int32Array): Void| Name | Type |
|---|---|
index |
Int |
values |
js.lib.Int32Array |
| Name | Type |
|---|---|
index |
Int |
x |
Int |
y |
Int |
z |
Int |
w |
Int |
vertexAttribI4uiv(index: Int, values: js.lib.Uint32Array): Void| Name | Type |
|---|---|
index |
Int |
values |
js.lib.Uint32Array |
Specifies integer data formats and locations of vertex attributes in a vertex attributes array.
| Name | Type |
|---|---|
index |
Int |
size |
Int |
type |
Int |
stride |
Int |
offset |
Int |
Modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with WebGL2RenderingContext.drawArraysInstanced() and WebGL2RenderingContext.drawElementsInstanced().
| Name | Type |
|---|---|
index |
Int |
divisor |
Int |
Renders primitives from array data. In addition, it can execute multiple instances of the range of elements.
| Name | Type |
|---|---|
mode |
Int |
first |
Int |
count |
Int |
instanceCount |
Int |
Renders primitives from array data. In addition, it can execute multiple instances of a set of elements.
| Name | Type |
|---|---|
mode |
Int |
count |
Int |
type |
Int |
offset |
Int |
instanceCount |
Int |
Renders primitives from array data in a given range.
| Name | Type |
|---|---|
mode |
Int |
start |
Int |
end |
Int |
count |
Int |
type |
Int |
offset |
Int |
readPixels(x: Int, y: Int, width: Int, height: Int, format: Int, type: Int, dstData: js.lib.ArrayBufferView, dstOffset: Int): Void| Name | Type |
|---|---|
x |
Int |
y |
Int |
width |
Int |
height |
Int |
format |
Int |
type |
Int |
dstData |
js.lib.ArrayBufferView |
dstOffset |
Int |
Specifies a list of color buffers to be drawn into.
| Name | Type |
|---|---|
buffers |
Array<Int> |
clearBufferfv(buffer: Int, drawbuffer: Int, values: js.lib.Float32Array, ?srcOffset: Int = 0): Void| Name | Type | Default |
|---|---|---|
buffer |
Int | |
drawbuffer |
Int | |
values |
js.lib.Float32Array | |
srcOffset |
Int | 0 |
clearBufferiv(buffer: Int, drawbuffer: Int, values: js.lib.Int32Array, ?srcOffset: Int = 0): Void| Name | Type | Default |
|---|---|---|
buffer |
Int | |
drawbuffer |
Int | |
values |
js.lib.Int32Array | |
srcOffset |
Int | 0 |
clearBufferuiv(buffer: Int, drawbuffer: Int, values: js.lib.Uint32Array, ?srcOffset: Int = 0): Void| Name | Type | Default |
|---|---|---|
buffer |
Int | |
drawbuffer |
Int | |
values |
js.lib.Uint32Array | |
srcOffset |
Int | 0 |
| Name | Type |
|---|---|
buffer |
Int |
drawbuffer |
Int |
depth |
Float |
stencil |
Int |
createQuery(): QueryCreates a new WebGLQuery object.
| Returns |
|---|
| Query |
Deletes a given WebGLQuery object.
| Name | Type |
|---|---|
query |
Query |
Returns true if a given object is a valid WebGLQuery object.
| Name | Type |
|---|---|
query |
Query |
| Returns |
|---|
| Bool |
Begins an asynchronous query.
| Name | Type |
|---|---|
target |
Int |
query |
Query |
Marks the end of an asynchronous query.
| Name | Type |
|---|---|
target |
Int |
Returns a WebGLQuery object for a given target.
| Name | Type |
|---|---|
target |
Int |
pname |
Int |
| Returns |
|---|
| Dynamic |
Returns information about a query.
| Name | Type |
|---|---|
query |
Query |
pname |
Int |
| Returns |
|---|
| Dynamic |
createSampler(): SamplerCreates a new WebGLSampler object.
| Returns |
|---|
| Sampler |
Deletes a given WebGLSampler object.
| Name | Type |
|---|---|
sampler |
Sampler |
Returns true if a given object is a valid WebGLSampler object.
| Name | Type |
|---|---|
sampler |
Sampler |
| Returns |
|---|
| Bool |
Binds a given WebGLSampler to a texture unit.
| Name | Type |
|---|---|
unit |
Int |
sampler |
Sampler |
| Name | Type |
|---|---|
sampler |
Sampler |
pname |
Int |
param |
Int |
| Name | Type |
|---|---|
sampler |
Sampler |
pname |
Int |
param |
Float |
Returns sampler parameter information.
| Name | Type |
|---|---|
sampler |
Sampler |
pname |
Int |
| Returns |
|---|
| Dynamic |
Creates a new WebGLSync object and inserts it into the GL command stream.
| Name | Type |
|---|---|
condition |
Int |
flags |
Int |
| Returns |
|---|
| Sync |
Returns true if the passed object is a valid WebGLSync object.
| Name | Type |
|---|---|
sync |
Sync |
| Returns |
|---|
| Bool |
Deletes a given WebGLSync object.
| Name | Type |
|---|---|
sync |
Sync |
Blocks and waits for a WebGLSync object to become signaled or a given timeout to be passed.
| Name | Type |
|---|---|
sync |
Sync |
flags |
Int |
timeout |
Int |
| Returns |
|---|
| Int |
Returns immediately, but waits on the GL server until the given WebGLSync object is signaled.
| Name | Type |
|---|---|
sync |
Sync |
flags |
Int |
timeout |
Int |
Returns parameter information of a WebGLSync object.
| Name | Type |
|---|---|
sync |
Sync |
pname |
Int |
| Returns |
|---|
| Dynamic |
createTransformFeedback(): TransformFeedbackCreates and initializes WebGLTransformFeedback objects.
| Returns |
|---|
| TransformFeedback |
deleteTransformFeedback(tf: TransformFeedback): VoidDeletes a given WebGLTransformFeedback object.
| Name | Type |
|---|---|
tf |
TransformFeedback |
isTransformFeedback(tf: TransformFeedback): BoolReturns true if the passed object is a valid WebGLTransformFeedback object.
| Name | Type |
|---|---|
tf |
TransformFeedback |
| Returns |
|---|
| Bool |
bindTransformFeedback(target: Int, tf: TransformFeedback): VoidBinds a passed WebGLTransformFeedback object to the current GL state.
| Name | Type |
|---|---|
target |
Int |
tf |
TransformFeedback |
Starts a transform feedback operation.
| Name | Type |
|---|---|
primitiveMode |
Int |
endTransformFeedback(): VoidEnds a transform feedback operation.
Specifies values to record in WebGLTransformFeedback buffers.
| Name | Type |
|---|---|
program |
Program |
varyings |
Array<String> |
bufferMode |
Int |
getTransformFeedbackVarying(program: Program, index: Int): ActiveInfoReturns information about varying variables from WebGLTransformFeedback buffers.
| Name | Type |
|---|---|
program |
Program |
index |
Int |
| Returns |
|---|
| ActiveInfo |
pauseTransformFeedback(): VoidPauses a transform feedback operation.
resumeTransformFeedback(): VoidResumes a transform feedback operation.
Binds a given WebGLBuffer to a given binding point (target) at a given index.
| Name | Type |
|---|---|
target |
Int |
index |
Int |
buffer |
Buffer |
Binds a range of a given WebGLBuffer to a given binding point (target) at a given index.
| Name | Type |
|---|---|
target |
Int |
index |
Int |
buffer |
Buffer |
offset |
Int |
size |
Int |
Returns the indexed value for the given target.
| Name | Type |
|---|---|
target |
Int |
index |
Int |
| Returns |
|---|
| Dynamic |
Retrieves the indices of a number of uniforms within a WebGLProgram.
| Name | Type |
|---|---|
program |
Program |
uniformNames |
Array<String> |
| Returns |
|---|
| Array<Int> |
Retrieves information about active uniforms within a WebGLProgram.
| Name | Type |
|---|---|
program |
Program |
uniformIndices |
Array<Int> |
pname |
Int |
| Returns |
|---|
| Dynamic |
Retrieves the index of a uniform block within a WebGLProgram.
| Name | Type |
|---|---|
program |
Program |
uniformBlockName |
String |
| Returns |
|---|
| Int |
Retrieves information about an active uniform block within a WebGLProgram.
| Name | Type |
|---|---|
program |
Program |
uniformBlockIndex |
Int |
pname |
Int |
| Returns |
|---|
| Dynamic |
Retrieves the name of the active uniform block at a given index within a WebGLProgram.
| Name | Type |
|---|---|
program |
Program |
uniformBlockIndex |
Int |
| Returns |
|---|
| String |
Assigns binding points for active uniform blocks.
| Name | Type |
|---|---|
program |
Program |
uniformBlockIndex |
Int |
uniformBlockBinding |
Int |
createVertexArray(): VertexArrayObjectCreates a new WebGLVertexArrayObject.
| Returns |
|---|
| VertexArrayObject |
deleteVertexArray(vertexArray: VertexArrayObject): VoidDeletes a given WebGLVertexArrayObject.
| Name | Type |
|---|---|
vertexArray |
VertexArrayObject |
isVertexArray(vertexArray: VertexArrayObject): BoolReturns true if a given object is a valid WebGLVertexArrayObject.
| Name | Type |
|---|---|
vertexArray |
VertexArrayObject |
| Returns |
|---|
| Bool |
bindVertexArray(array: VertexArrayObject): VoidBinds a given WebGLVertexArrayObject to the buffer.
| Name | Type |
|---|---|
array |
VertexArrayObject |
getContextAttributes(): ContextAttributes| Returns |
|---|
| ContextAttributes |
isContextLost(): Bool| Returns |
|---|
| Bool |
| Returns |
|---|
| Array<String> |
getExtension(name: Extension<getExtension.T>): getExtension.T| Name | Type |
|---|---|
name |
Extension<getExtension.T> |
| Returns |
|---|
| getExtension.T |
| Name | Type |
|---|---|
texture |
Int |
| Name | Type |
|---|---|
program |
Program |
shader |
Shader |
| Name | Type |
|---|---|
program |
Program |
index |
Int |
name |
String |
| Name | Type |
|---|---|
target |
Int |
buffer |
Buffer |
bindFramebuffer(target: Int, framebuffer: Framebuffer): Void| Name | Type |
|---|---|
target |
Int |
framebuffer |
Framebuffer |
bindRenderbuffer(target: Int, renderbuffer: Renderbuffer): Void| Name | Type |
|---|---|
target |
Int |
renderbuffer |
Renderbuffer |
| Name | Type |
|---|---|
target |
Int |
texture |
Texture |
| Name | Type |
|---|---|
red |
Float |
green |
Float |
blue |
Float |
alpha |
Float |
| Name | Type |
|---|---|
mode |
Int |
| Name | Type |
|---|---|
modeRGB |
Int |
modeAlpha |
Int |
| Name | Type |
|---|---|
sfactor |
Int |
dfactor |
Int |
| Name | Type |
|---|---|
srcRGB |
Int |
dstRGB |
Int |
srcAlpha |
Int |
dstAlpha |
Int |
| Name | Type |
|---|---|
target |
Int |
| Returns |
|---|
| Int |
| Name | Type |
|---|---|
mask |
Int |
| Name | Type |
|---|---|
red |
Float |
green |
Float |
blue |
Float |
alpha |
Float |
| Name | Type |
|---|---|
depth |
Float |
| Name | Type |
|---|---|
s |
Int |
| Name | Type |
|---|---|
red |
Bool |
green |
Bool |
blue |
Bool |
alpha |
Bool |
| Name | Type |
|---|---|
shader |
Shader |
copyTexImage2D(target: Int, level: Int, internalformat: Int, x: Int, y: Int, width: Int, height: Int, border: Int): Void| Name | Type |
|---|---|
target |
Int |
level |
Int |
internalformat |
Int |
x |
Int |
y |
Int |
width |
Int |
height |
Int |
border |
Int |
copyTexSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, x: Int, y: Int, width: Int, height: Int): Void| Name | Type |
|---|---|
target |
Int |
level |
Int |
xoffset |
Int |
yoffset |
Int |
x |
Int |
y |
Int |
width |
Int |
height |
Int |
createBuffer(): Buffer| Returns |
|---|
| Buffer |
createFramebuffer(): Framebuffer| Returns |
|---|
| Framebuffer |
createProgram(): Program| Returns |
|---|
| Program |
createRenderbuffer(): Renderbuffer| Returns |
|---|
| Renderbuffer |
| Name | Type |
|---|---|
type |
Int |
| Returns |
|---|
| Shader |
createTexture(): Texture| Returns |
|---|
| Texture |
| Name | Type |
|---|---|
mode |
Int |
| Name | Type |
|---|---|
buffer |
Buffer |
deleteFramebuffer(framebuffer: Framebuffer): Void| Name | Type |
|---|---|
framebuffer |
Framebuffer |
| Name | Type |
|---|---|
program |
Program |
deleteRenderbuffer(renderbuffer: Renderbuffer): Void| Name | Type |
|---|---|
renderbuffer |
Renderbuffer |
| Name | Type |
|---|---|
shader |
Shader |
| Name | Type |
|---|---|
texture |
Texture |
| Name | Type |
|---|---|
func |
Int |
| Name | Type |
|---|---|
flag |
Bool |
| Name | Type |
|---|---|
zNear |
Float |
zFar |
Float |
| Name | Type |
|---|---|
program |
Program |
shader |
Shader |
| Name | Type |
|---|---|
cap |
Int |
| Name | Type |
|---|---|
index |
Int |
| Name | Type |
|---|---|
mode |
Int |
first |
Int |
count |
Int |
| Name | Type |
|---|---|
mode |
Int |
count |
Int |
type |
Int |
offset |
Int |
| Name | Type |
|---|---|
cap |
Int |
| Name | Type |
|---|---|
index |
Int |
finish(): Voidflush(): VoidframebufferRenderbuffer(target: Int, attachment: Int, renderbuffertarget: Int, renderbuffer: Renderbuffer): Void| Name | Type |
|---|---|
target |
Int |
attachment |
Int |
renderbuffertarget |
Int |
renderbuffer |
Renderbuffer |
framebufferTexture2D(target: Int, attachment: Int, textarget: Int, texture: Texture, level: Int): Void| Name | Type |
|---|---|
target |
Int |
attachment |
Int |
textarget |
Int |
texture |
Texture |
level |
Int |
| Name | Type |
|---|---|
mode |
Int |
| Name | Type |
|---|---|
target |
Int |
getActiveAttrib(program: Program, index: Int): ActiveInfo| Name | Type |
|---|---|
program |
Program |
index |
Int |
| Returns |
|---|
| ActiveInfo |
getActiveUniform(program: Program, index: Int): ActiveInfo| Name | Type |
|---|---|
program |
Program |
index |
Int |
| Returns |
|---|
| ActiveInfo |
| Name | Type |
|---|---|
program |
Program |
| Returns |
|---|
| Array<Shader> |
| Name | Type |
|---|---|
program |
Program |
name |
String |
| Returns |
|---|
| Int |
| Name | Type |
|---|---|
target |
Int |
pname |
Int |
| Returns |
|---|
| Dynamic |
| Name | Type |
|---|---|
pname |
Int |
| Returns |
|---|
| Dynamic |
getError(): Int| Returns |
|---|
| Int |
| Name | Type |
|---|---|
target |
Int |
attachment |
Int |
pname |
Int |
| Returns |
|---|
| Dynamic |
| Name | Type |
|---|---|
program |
Program |
pname |
Int |
| Returns |
|---|
| Dynamic |
| Name | Type |
|---|---|
program |
Program |
| Returns |
|---|
| String |
| Name | Type |
|---|---|
target |
Int |
pname |
Int |
| Returns |
|---|
| Dynamic |
| Name | Type |
|---|---|
shader |
Shader |
pname |
Int |
| Returns |
|---|
| Dynamic |
getShaderPrecisionFormat(shadertype: Int, precisiontype: Int): ShaderPrecisionFormat| Name | Type |
|---|---|
shadertype |
Int |
precisiontype |
Int |
| Returns |
|---|
| ShaderPrecisionFormat |
| Name | Type |
|---|---|
shader |
Shader |
| Returns |
|---|
| String |
| Name | Type |
|---|---|
shader |
Shader |
| Returns |
|---|
| String |
| Name | Type |
|---|---|
target |
Int |
pname |
Int |
| Returns |
|---|
| Dynamic |
getUniform(program: Program, location: UniformLocation): Dynamic| Name | Type |
|---|---|
program |
Program |
location |
UniformLocation |
| Returns |
|---|
| Dynamic |
getUniformLocation(program: Program, name: String): UniformLocation| Name | Type |
|---|---|
program |
Program |
name |
String |
| Returns |
|---|
| UniformLocation |
| Name | Type |
|---|---|
index |
Int |
pname |
Int |
| Returns |
|---|
| Dynamic |
| Name | Type |
|---|---|
index |
Int |
pname |
Int |
| Returns |
|---|
| Int |
| Name | Type |
|---|---|
target |
Int |
mode |
Int |
| Name | Type |
|---|---|
buffer |
Buffer |
| Returns |
|---|
| Bool |
| Name | Type |
|---|---|
cap |
Int |
| Returns |
|---|
| Bool |
isFramebuffer(framebuffer: Framebuffer): Bool| Name | Type |
|---|---|
framebuffer |
Framebuffer |
| Returns |
|---|
| Bool |
| Name | Type |
|---|---|
program |
Program |
| Returns |
|---|
| Bool |
isRenderbuffer(renderbuffer: Renderbuffer): Bool| Name | Type |
|---|---|
renderbuffer |
Renderbuffer |
| Returns |
|---|
| Bool |
| Name | Type |
|---|---|
shader |
Shader |
| Returns |
|---|
| Bool |
| Name | Type |
|---|---|
texture |
Texture |
| Returns |
|---|
| Bool |
| Name | Type |
|---|---|
width |
Float |
| Name | Type |
|---|---|
program |
Program |
| Name | Type |
|---|---|
pname |
Int |
param |
Int |
| Name | Type |
|---|---|
factor |
Float |
units |
Float |
| Name | Type |
|---|---|
target |
Int |
internalformat |
Int |
width |
Int |
height |
Int |
| Name | Type |
|---|---|
value |
Float |
invert |
Bool |
| Name | Type |
|---|---|
x |
Int |
y |
Int |
width |
Int |
height |
Int |
| Name | Type |
|---|---|
shader |
Shader |
source |
String |
| Name | Type |
|---|---|
func |
Int |
ref |
Int |
mask |
Int |
| Name | Type |
|---|---|
face |
Int |
func |
Int |
ref |
Int |
mask |
Int |
| Name | Type |
|---|---|
mask |
Int |
| Name | Type |
|---|---|
face |
Int |
mask |
Int |
| Name | Type |
|---|---|
fail |
Int |
zfail |
Int |
zpass |
Int |
| Name | Type |
|---|---|
face |
Int |
fail |
Int |
zfail |
Int |
zpass |
Int |
| Name | Type |
|---|---|
target |
Int |
pname |
Int |
param |
Float |
| Name | Type |
|---|---|
target |
Int |
pname |
Int |
param |
Int |
uniform1f(location: UniformLocation, x: Float): Void| Name | Type |
|---|---|
location |
UniformLocation |
x |
Float |
uniform2f(location: UniformLocation, x: Float, y: Float): Void| Name | Type |
|---|---|
location |
UniformLocation |
x |
Float |
y |
Float |
uniform3f(location: UniformLocation, x: Float, y: Float, z: Float): Void| Name | Type |
|---|---|
location |
UniformLocation |
x |
Float |
y |
Float |
z |
Float |
| Name | Type |
|---|---|
location |
UniformLocation |
x |
Float |
y |
Float |
z |
Float |
w |
Float |
uniform1i(location: UniformLocation, x: Int): Void| Name | Type |
|---|---|
location |
UniformLocation |
x |
Int |
uniform2i(location: UniformLocation, x: Int, y: Int): Void| Name | Type |
|---|---|
location |
UniformLocation |
x |
Int |
y |
Int |
uniform3i(location: UniformLocation, x: Int, y: Int, z: Int): Void| Name | Type |
|---|---|
location |
UniformLocation |
x |
Int |
y |
Int |
z |
Int |
| Name | Type |
|---|---|
location |
UniformLocation |
x |
Int |
y |
Int |
z |
Int |
w |
Int |
| Name | Type |
|---|---|
program |
Program |
| Name | Type |
|---|---|
program |
Program |
| Name | Type |
|---|---|
indx |
Int |
x |
Float |
vertexAttrib1fv(indx: Int, values: js.lib.Float32Array): Void| Name | Type |
|---|---|
indx |
Int |
values |
js.lib.Float32Array |
| Name | Type |
|---|---|
indx |
Int |
x |
Float |
y |
Float |
vertexAttrib2fv(indx: Int, values: js.lib.Float32Array): Void| Name | Type |
|---|---|
indx |
Int |
values |
js.lib.Float32Array |
| Name | Type |
|---|---|
indx |
Int |
x |
Float |
y |
Float |
z |
Float |
vertexAttrib3fv(indx: Int, values: js.lib.Float32Array): Void| Name | Type |
|---|---|
indx |
Int |
values |
js.lib.Float32Array |
| Name | Type |
|---|---|
indx |
Int |
x |
Float |
y |
Float |
z |
Float |
w |
Float |
vertexAttrib4fv(indx: Int, values: js.lib.Float32Array): Void| Name | Type |
|---|---|
indx |
Int |
values |
js.lib.Float32Array |
vertexAttribPointer(indx: Int, size: Int, type: Int, normalized: Bool, stride: Int, offset: Int): Void| Name | Type |
|---|---|
indx |
Int |
size |
Int |
type |
Int |
normalized |
Bool |
stride |
Int |
offset |
Int |
| Name | Type |
|---|---|
x |
Int |
y |
Int |
width |
Int |
height |
Int |