haXe API Documentation
Back | Index
extern class js.html.webgl.RenderingContext
extends js.html.CanvasRenderingContext
Available in js
var drawingBufferHeight(default,null) : Int
var drawingBufferWidth(default,null) : Int
function activeTexture(texture : Int) : Void
function attachShader(program : Program, shader : Shader) : Void
function bindAttribLocation(program : Program, index : Int, name : String) : Void
function bindBuffer(target : Int, buffer : Buffer) : Void
function bindFramebuffer(target : Int, framebuffer : Framebuffer) : Void
function bindRenderbuffer(target : Int, renderbuffer : Renderbuffer) : Void
function bindTexture(target : Int, texture : Texture) : Void
function blendColor(red : Float, green : Float, blue : Float, alpha : Float) : Void
function blendEquation(mode : Int) : Void
function blendEquationSeparate(modeRGB : Int, modeAlpha : Int) : Void
function blendFunc(sfactor : Int, dfactor : Int) : Void
function blendFuncSeparate(srcRGB : Int, dstRGB : Int, srcAlpha : Int, dstAlpha : Int) : Void
function bufferData(target : Int, size : Int, usage : Int) : Void
Throws DOMException.
function bufferSubData(target : Int, offset : Int, data : js.html.ArrayBufferView) : Void
Throws DOMException.
function checkFramebufferStatus(target : Int) : Int
function clear(mask : Int) : Void
function clearColor(red : Float, green : Float, blue : Float, alpha : Float) : Void
function clearDepth(depth : Float) : Void
function clearStencil(s : Int) : Void
function colorMask(red : Bool, green : Bool, blue : Bool, alpha : Bool) : Void
function compileShader(shader : Shader) : Void
function compressedTexImage2D(target : Int, level : Int, internalformat : Int, width : Int, height : Int, border : Int, data : js.html.ArrayBufferView) : Void
function compressedTexSubImage2D(target : Int, level : Int, xoffset : Int, yoffset : Int, width : Int, height : Int, format : Int, data : js.html.ArrayBufferView) : Void
function copyTexImage2D(target : Int, level : Int, internalformat : Int, x : Int, y : Int, width : Int, height : Int, border : Int) : Void
function copyTexSubImage2D(target : Int, level : Int, xoffset : Int, yoffset : Int, x : Int, y : Int, width : Int, height : Int) : Void
function createBuffer() : Buffer
function createFramebuffer() : Framebuffer
function createProgram() : Program
function createRenderbuffer() : Renderbuffer
function createShader(type : Int) : Shader
function createTexture() : Texture
function cullFace(mode : Int) : Void
function deleteBuffer(buffer : Buffer) : Void
function deleteFramebuffer(framebuffer : Framebuffer) : Void
function deleteProgram(program : Program) : Void
function deleteRenderbuffer(renderbuffer : Renderbuffer) : Void
function deleteShader(shader : Shader) : Void
function deleteTexture(texture : Texture) : Void
function depthFunc(func : Int) : Void
function depthMask(flag : Bool) : Void
function depthRange(zNear : Float, zFar : Float) : Void
function detachShader(program : Program, shader : Shader) : Void
function disable(cap : Int) : Void
function disableVertexAttribArray(index : Int) : Void
function drawArrays(mode : Int, first : Int, count : Int) : Void
function drawElements(mode : Int, count : Int, type : Int, offset : Int) : Void
function enable(cap : Int) : Void
function enableVertexAttribArray(index : Int) : Void
function finish() : Void
function flush() : Void
function framebufferRenderbuffer(target : Int, attachment : Int, renderbuffertarget : Int, renderbuffer : Renderbuffer) : Void
function framebufferTexture2D(target : Int, attachment : Int, textarget : Int, texture : Texture, level : Int) : Void
function frontFace(mode : Int) : Void
function generateMipmap(target : Int) : Void
function getActiveAttrib(program : Program, index : Int) : ActiveInfo
function getActiveUniform(program : Program, index : Int) : ActiveInfo
function getAttachedShaders(program : Program) : Void
function getAttribLocation(program : Program, name : String) : Int
function getBufferParameter() : Void
function getContextAttributes() : ContextAttributes
function getError() : Int
function getExtension(name : String) : Dynamic
function getFramebufferAttachmentParameter() : Void
function getParameter() : Void
function getProgramInfoLog(program : Program) : String
function getProgramParameter() : Void
function getRenderbufferParameter() : Void
function getShaderInfoLog(shader : Shader) : String
function getShaderParameter() : Void
function getShaderPrecisionFormat(shadertype : Int, precisiontype : Int) : ShaderPrecisionFormat
function getShaderSource(shader : Shader) : String
function getSupportedExtensions() : Array<String>
function getTexParameter() : Void
function getUniform() : Void
function getUniformLocation(program : Program, name : String) : UniformLocation
function getVertexAttrib() : Void
function getVertexAttribOffset(index : Int, pname : Int) : Int
function hint(target : Int, mode : Int) : Void
function isBuffer(buffer : Buffer) : Bool
function isContextLost() : Bool
function isEnabled(cap : Int) : Bool
function isFramebuffer(framebuffer : Framebuffer) : Bool
function isProgram(program : Program) : Bool
function isRenderbuffer(renderbuffer : Renderbuffer) : Bool
function isShader(shader : Shader) : Bool
function isTexture(texture : Texture) : Bool
function lineWidth(width : Float) : Void
function linkProgram(program : Program) : Void
function pixelStorei(pname : Int, param : Int) : Void
function polygonOffset(factor : Float, units : Float) : Void
function readPixels(x : Int, y : Int, width : Int, height : Int, format : Int, type : Int, pixels : js.html.ArrayBufferView) : Void
function releaseShaderCompiler() : Void
function renderbufferStorage(target : Int, internalformat : Int, width : Int, height : Int) : Void
function sampleCoverage(value : Float, invert : Bool) : Void
function scissor(x : Int, y : Int, width : Int, height : Int) : Void
function shaderSource(shader : Shader, string : String) : Void
function stencilFunc(func : Int, ref : Int, mask : Int) : Void
function stencilFuncSeparate(face : Int, func : Int, ref : Int, mask : Int) : Void
function stencilMask(mask : Int) : Void
function stencilMaskSeparate(face : Int, mask : Int) : Void
function stencilOp(fail : Int, zfail : Int, zpass : Int) : Void
function stencilOpSeparate(face : Int, fail : Int, zfail : Int, zpass : Int) : Void
function texImage2D(target : Int, level : Int, internalformat : Int, format : Int, type : Int, video : js.html.VideoElement) : Void
Throws DOMException.
function texParameterf(target : Int, pname : Int, param : Float) : Void
function texParameteri(target : Int, pname : Int, param : Int) : Void
function texSubImage2D(target : Int, level : Int, xoffset : Int, yoffset : Int, format : Int, type : Int, video : js.html.VideoElement) : Void
Throws DOMException.
function uniform1f(location : UniformLocation, x : Float) : Void
function uniform1fv(location : UniformLocation, v : js.html.Float32Array) : Void
function uniform1i(location : UniformLocation, x : Int) : Void
function uniform1iv(location : UniformLocation, v : js.html.Int32Array) : Void
function uniform2f(location : UniformLocation, x : Float, y : Float) : Void
function uniform2fv(location : UniformLocation, v : js.html.Float32Array) : Void
function uniform2i(location : UniformLocation, x : Int, y : Int) : Void
function uniform2iv(location : UniformLocation, v : js.html.Int32Array) : Void
function uniform3f(location : UniformLocation, x : Float, y : Float, z : Float) : Void
function uniform3fv(location : UniformLocation, v : js.html.Float32Array) : Void
function uniform3i(location : UniformLocation, x : Int, y : Int, z : Int) : Void
function uniform3iv(location : UniformLocation, v : js.html.Int32Array) : Void
function uniform4f(location : UniformLocation, x : Float, y : Float, z : Float, w : Float) : Void
function uniform4fv(location : UniformLocation, v : js.html.Float32Array) : Void
function uniform4i(location : UniformLocation, x : Int, y : Int, z : Int, w : Int) : Void
function uniform4iv(location : UniformLocation, v : js.html.Int32Array) : Void
function uniformMatrix2fv(location : UniformLocation, transpose : Bool, array : js.html.Float32Array) : Void
function uniformMatrix3fv(location : UniformLocation, transpose : Bool, array : js.html.Float32Array) : Void
function uniformMatrix4fv(location : UniformLocation, transpose : Bool, array : js.html.Float32Array) : Void
function useProgram(program : Program) : Void
function validateProgram(program : Program) : Void
function vertexAttrib1f(indx : Int, x : Float) : Void
function vertexAttrib1fv(indx : Int, values : js.html.Float32Array) : Void
function vertexAttrib2f(indx : Int, x : Float, y : Float) : Void
function vertexAttrib2fv(indx : Int, values : js.html.Float32Array) : Void
function vertexAttrib3f(indx : Int, x : Float, y : Float, z : Float) : Void
function vertexAttrib3fv(indx : Int, values : js.html.Float32Array) : Void
function vertexAttrib4f(indx : Int, x : Float, y : Float, z : Float, w : Float) : Void
function vertexAttrib4fv(indx : Int, values : js.html.Float32Array) : Void
function vertexAttribPointer(indx : Int, size : Int, type : Int, normalized : Bool, stride : Int, offset : Int) : Void
function viewport(x : Int, y : Int, width : Int, height : Int) : Void
static inline var ACTIVE_ATTRIBUTES : Int
static inline var ACTIVE_TEXTURE : Int
static inline var ACTIVE_UNIFORMS : Int
static inline var ALIASED_LINE_WIDTH_RANGE : Int
static inline var ALIASED_POINT_SIZE_RANGE : Int
static inline var ALPHA : Int
static inline var ALPHA_BITS : Int
static inline var ALWAYS : Int
static inline var ARRAY_BUFFER : Int
static inline var ARRAY_BUFFER_BINDING : Int
static inline var ATTACHED_SHADERS : Int
static inline var BACK : Int
static inline var BLEND : Int
static inline var BLEND_COLOR : Int
static inline var BLEND_DST_ALPHA : Int
static inline var BLEND_DST_RGB : Int
static inline var BLEND_EQUATION : Int
static inline var BLEND_EQUATION_ALPHA : Int
static inline var BLEND_EQUATION_RGB : Int
static inline var BLEND_SRC_ALPHA : Int
static inline var BLEND_SRC_RGB : Int
static inline var BLUE_BITS : Int
static inline var BOOL : Int
static inline var BOOL_VEC2 : Int
static inline var BOOL_VEC3 : Int
static inline var BOOL_VEC4 : Int
static inline var BROWSER_DEFAULT_WEBGL : Int
static inline var BUFFER_SIZE : Int
static inline var BUFFER_USAGE : Int
static inline var BYTE : Int
static inline var CCW : Int
static inline var CLAMP_TO_EDGE : Int
static inline var COLOR_ATTACHMENT0 : Int
static inline var COLOR_BUFFER_BIT : Int
static inline var COLOR_CLEAR_VALUE : Int
static inline var COLOR_WRITEMASK : Int
static inline var COMPILE_STATUS : Int
static inline var COMPRESSED_TEXTURE_FORMATS : Int
static inline var CONSTANT_ALPHA : Int
static inline var CONSTANT_COLOR : Int
static inline var CONTEXT_LOST_WEBGL : Int
static inline var CULL_FACE : Int
static inline var CULL_FACE_MODE : Int
static inline var CURRENT_PROGRAM : Int
static inline var CURRENT_VERTEX_ATTRIB : Int
static inline var CW : Int
static inline var DECR : Int
static inline var DECR_WRAP : Int
static inline var DELETE_STATUS : Int
static inline var DEPTH_ATTACHMENT : Int
static inline var DEPTH_BITS : Int
static inline var DEPTH_BUFFER_BIT : Int
static inline var DEPTH_CLEAR_VALUE : Int
static inline var DEPTH_COMPONENT : Int
static inline var DEPTH_COMPONENT16 : Int
static inline var DEPTH_FUNC : Int
static inline var DEPTH_RANGE : Int
static inline var DEPTH_STENCIL : Int
static inline var DEPTH_STENCIL_ATTACHMENT : Int
static inline var DEPTH_TEST : Int
static inline var DEPTH_WRITEMASK : Int
static inline var DITHER : Int
static inline var DONT_CARE : Int
static inline var DST_ALPHA : Int
static inline var DST_COLOR : Int
static inline var DYNAMIC_DRAW : Int
static inline var ELEMENT_ARRAY_BUFFER : Int
static inline var ELEMENT_ARRAY_BUFFER_BINDING : Int
static inline var EQUAL : Int
static inline var FASTEST : Int
static inline var FLOAT : Int
static inline var FLOAT_MAT2 : Int
static inline var FLOAT_MAT3 : Int
static inline var FLOAT_MAT4 : Int
static inline var FLOAT_VEC2 : Int
static inline var FLOAT_VEC3 : Int
static inline var FLOAT_VEC4 : Int
static inline var FRAGMENT_SHADER : Int
static inline var FRAMEBUFFER : Int
static inline var FRAMEBUFFER_ATTACHMENT_OBJECT_NAME : Int
static inline var FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE : Int
static inline var FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE : Int
static inline var FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL : Int
static inline var FRAMEBUFFER_BINDING : Int
static inline var FRAMEBUFFER_COMPLETE : Int
static inline var FRAMEBUFFER_INCOMPLETE_ATTACHMENT : Int
static inline var FRAMEBUFFER_INCOMPLETE_DIMENSIONS : Int
static inline var FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT : Int
static inline var FRAMEBUFFER_UNSUPPORTED : Int
static inline var FRONT : Int
static inline var FRONT_AND_BACK : Int
static inline var FRONT_FACE : Int
static inline var FUNC_ADD : Int
static inline var FUNC_REVERSE_SUBTRACT : Int
static inline var FUNC_SUBTRACT : Int
static inline var GENERATE_MIPMAP_HINT : Int
static inline var GEQUAL : Int
static inline var GREATER : Int
static inline var GREEN_BITS : Int
static inline var HIGH_FLOAT : Int
static inline var HIGH_INT : Int
static inline var INCR : Int
static inline var INCR_WRAP : Int
static inline var INT : Int
static inline var INT_VEC2 : Int
static inline var INT_VEC3 : Int
static inline var INT_VEC4 : Int
static inline var INVALID_ENUM : Int
static inline var INVALID_FRAMEBUFFER_OPERATION : Int
static inline var INVALID_OPERATION : Int
static inline var INVALID_VALUE : Int
static inline var INVERT : Int
static inline var KEEP : Int
static inline var LEQUAL : Int
static inline var LESS : Int
static inline var LINEAR : Int
static inline var LINEAR_MIPMAP_LINEAR : Int
static inline var LINEAR_MIPMAP_NEAREST : Int
static inline var LINES : Int
static inline var LINE_LOOP : Int
static inline var LINE_STRIP : Int
static inline var LINE_WIDTH : Int
static inline var LINK_STATUS : Int
static inline var LOW_FLOAT : Int
static inline var LOW_INT : Int
static inline var LUMINANCE : Int
static inline var LUMINANCE_ALPHA : Int
static inline var MAX_COMBINED_TEXTURE_IMAGE_UNITS : Int
static inline var MAX_CUBE_MAP_TEXTURE_SIZE : Int
static inline var MAX_FRAGMENT_UNIFORM_VECTORS : Int
static inline var MAX_RENDERBUFFER_SIZE : Int
static inline var MAX_TEXTURE_IMAGE_UNITS : Int
static inline var MAX_TEXTURE_SIZE : Int
static inline var MAX_VARYING_VECTORS : Int
static inline var MAX_VERTEX_ATTRIBS : Int
static inline var MAX_VERTEX_TEXTURE_IMAGE_UNITS : Int
static inline var MAX_VERTEX_UNIFORM_VECTORS : Int
static inline var MAX_VIEWPORT_DIMS : Int
static inline var MEDIUM_FLOAT : Int
static inline var MEDIUM_INT : Int
static inline var MIRRORED_REPEAT : Int
static inline var NEAREST : Int
static inline var NEAREST_MIPMAP_LINEAR : Int
static inline var NEAREST_MIPMAP_NEAREST : Int
static inline var NEVER : Int
static inline var NICEST : Int
static inline var NONE : Int
static inline var NOTEQUAL : Int
static inline var NO_ERROR : Int
static inline var ONE : Int
static inline var ONE_MINUS_CONSTANT_ALPHA : Int
static inline var ONE_MINUS_CONSTANT_COLOR : Int
static inline var ONE_MINUS_DST_ALPHA : Int
static inline var ONE_MINUS_DST_COLOR : Int
static inline var ONE_MINUS_SRC_ALPHA : Int
static inline var ONE_MINUS_SRC_COLOR : Int
static inline var OUT_OF_MEMORY : Int
static inline var PACK_ALIGNMENT : Int
static inline var POINTS : Int
static inline var POLYGON_OFFSET_FACTOR : Int
static inline var POLYGON_OFFSET_FILL : Int
static inline var POLYGON_OFFSET_UNITS : Int
static inline var RED_BITS : Int
static inline var RENDERBUFFER : Int
static inline var RENDERBUFFER_ALPHA_SIZE : Int
static inline var RENDERBUFFER_BINDING : Int
static inline var RENDERBUFFER_BLUE_SIZE : Int
static inline var RENDERBUFFER_DEPTH_SIZE : Int
static inline var RENDERBUFFER_GREEN_SIZE : Int
static inline var RENDERBUFFER_HEIGHT : Int
static inline var RENDERBUFFER_INTERNAL_FORMAT : Int
static inline var RENDERBUFFER_RED_SIZE : Int
static inline var RENDERBUFFER_STENCIL_SIZE : Int
static inline var RENDERBUFFER_WIDTH : Int
static inline var RENDERER : Int
static inline var REPEAT : Int
static inline var REPLACE : Int
static inline var RGB : Int
static inline var RGB565 : Int
static inline var RGB5_A1 : Int
static inline var RGBA : Int
static inline var RGBA4 : Int
static inline var SAMPLER_2D : Int
static inline var SAMPLER_CUBE : Int
static inline var SAMPLES : Int
static inline var SAMPLE_ALPHA_TO_COVERAGE : Int
static inline var SAMPLE_BUFFERS : Int
static inline var SAMPLE_COVERAGE : Int
static inline var SAMPLE_COVERAGE_INVERT : Int
static inline var SAMPLE_COVERAGE_VALUE : Int
static inline var SCISSOR_BOX : Int
static inline var SCISSOR_TEST : Int
static inline var SHADER_TYPE : Int
static inline var SHADING_LANGUAGE_VERSION : Int
static inline var SHORT : Int
static inline var SRC_ALPHA : Int
static inline var SRC_ALPHA_SATURATE : Int
static inline var SRC_COLOR : Int
static inline var STATIC_DRAW : Int
static inline var STENCIL_ATTACHMENT : Int
static inline var STENCIL_BACK_FAIL : Int
static inline var STENCIL_BACK_FUNC : Int
static inline var STENCIL_BACK_PASS_DEPTH_FAIL : Int
static inline var STENCIL_BACK_PASS_DEPTH_PASS : Int
static inline var STENCIL_BACK_REF : Int
static inline var STENCIL_BACK_VALUE_MASK : Int
static inline var STENCIL_BACK_WRITEMASK : Int
static inline var STENCIL_BITS : Int
static inline var STENCIL_BUFFER_BIT : Int
static inline var STENCIL_CLEAR_VALUE : Int
static inline var STENCIL_FAIL : Int
static inline var STENCIL_FUNC : Int
static inline var STENCIL_INDEX : Int
static inline var STENCIL_INDEX8 : Int
static inline var STENCIL_PASS_DEPTH_FAIL : Int
static inline var STENCIL_PASS_DEPTH_PASS : Int
static inline var STENCIL_REF : Int
static inline var STENCIL_TEST : Int
static inline var STENCIL_VALUE_MASK : Int
static inline var STENCIL_WRITEMASK : Int
static inline var STREAM_DRAW : Int
static inline var SUBPIXEL_BITS : Int
static inline var TEXTURE : Int
static inline var TEXTURE0 : Int
static inline var TEXTURE1 : Int
static inline var TEXTURE10 : Int
static inline var TEXTURE11 : Int
static inline var TEXTURE12 : Int
static inline var TEXTURE13 : Int
static inline var TEXTURE14 : Int
static inline var TEXTURE15 : Int
static inline var TEXTURE16 : Int
static inline var TEXTURE17 : Int
static inline var TEXTURE18 : Int
static inline var TEXTURE19 : Int
static inline var TEXTURE2 : Int
static inline var TEXTURE20 : Int
static inline var TEXTURE21 : Int
static inline var TEXTURE22 : Int
static inline var TEXTURE23 : Int
static inline var TEXTURE24 : Int
static inline var TEXTURE25 : Int
static inline var TEXTURE26 : Int
static inline var TEXTURE27 : Int
static inline var TEXTURE28 : Int
static inline var TEXTURE29 : Int
static inline var TEXTURE3 : Int
static inline var TEXTURE30 : Int
static inline var TEXTURE31 : Int
static inline var TEXTURE4 : Int
static inline var TEXTURE5 : Int
static inline var TEXTURE6 : Int
static inline var TEXTURE7 : Int
static inline var TEXTURE8 : Int
static inline var TEXTURE9 : Int
static inline var TEXTURE_2D : Int
static inline var TEXTURE_BINDING_2D : Int
static inline var TEXTURE_BINDING_CUBE_MAP : Int
static inline var TEXTURE_CUBE_MAP : Int
static inline var TEXTURE_CUBE_MAP_NEGATIVE_X : Int
static inline var TEXTURE_CUBE_MAP_NEGATIVE_Y : Int
static inline var TEXTURE_CUBE_MAP_NEGATIVE_Z : Int
static inline var TEXTURE_CUBE_MAP_POSITIVE_X : Int
static inline var TEXTURE_CUBE_MAP_POSITIVE_Y : Int
static inline var TEXTURE_CUBE_MAP_POSITIVE_Z : Int
static inline var TEXTURE_MAG_FILTER : Int
static inline var TEXTURE_MIN_FILTER : Int
static inline var TEXTURE_WRAP_S : Int
static inline var TEXTURE_WRAP_T : Int
static inline var TRIANGLES : Int
static inline var TRIANGLE_FAN : Int
static inline var TRIANGLE_STRIP : Int
static inline var UNPACK_ALIGNMENT : Int
static inline var UNPACK_COLORSPACE_CONVERSION_WEBGL : Int
static inline var UNPACK_FLIP_Y_WEBGL : Int
static inline var UNPACK_PREMULTIPLY_ALPHA_WEBGL : Int
static inline var UNSIGNED_BYTE : Int
static inline var UNSIGNED_INT : Int
static inline var UNSIGNED_SHORT : Int
static inline var UNSIGNED_SHORT_4_4_4_4 : Int
static inline var UNSIGNED_SHORT_5_5_5_1 : Int
static inline var UNSIGNED_SHORT_5_6_5 : Int
static inline var VALIDATE_STATUS : Int
static inline var VENDOR : Int
static inline var VERSION : Int
static inline var VERTEX_ATTRIB_ARRAY_BUFFER_BINDING : Int
static inline var VERTEX_ATTRIB_ARRAY_ENABLED : Int
static inline var VERTEX_ATTRIB_ARRAY_NORMALIZED : Int
static inline var VERTEX_ATTRIB_ARRAY_POINTER : Int
static inline var VERTEX_ATTRIB_ARRAY_SIZE : Int
static inline var VERTEX_ATTRIB_ARRAY_STRIDE : Int
static inline var VERTEX_ATTRIB_ARRAY_TYPE : Int
static inline var VERTEX_SHADER : Int
static inline var VIEWPORT : Int
static inline var ZERO : Int
Back | Index