Results 261 - 274 of 274

WebGLRenderingContext.copyTexImage2D()

The WebGLRenderingContext.copyTexImage2D() method of the WebGL API copies pixels from the current WebGLFramebuffer into a 2D texture image.
API Method Reference Textures WebGL WebGLRenderingContext

WebGLRenderingContext.copyTexSubImage2D()

The WebGLRenderingContext.copyTexSubImage2D() method of the WebGL API copies pixels from the current WebGLFramebuffer into an existing 2D texture sub-image.
API Method Reference Textures WebGL WebGLRenderingContext

WebGLRenderingContext.createShader()

The WebGLRenderingContext.createShader() method of the WebGL API creates a WebGLShader that can then be configured further using WebGLRenderingContext.shaderSource() and WebGLRenderingContext.compileShader().
API Graphics Method Reference Shader WebGL

WebGLRenderingContext.createTexture()

The WebGLRenderingContext.createTexture() method of the WebGL API creates and initializes a WebGLTexture object.
API Method Reference Textures WebGL WebGLRenderingContext

WebGLRenderingContext.deleteTexture()

The WebGLRenderingContext.deleteTexture() method of the WebGL API deletes a given WebGLTexture object. This method has no effect if the texture has already been deleted.
API Method Reference Textures WebGL WebGLRenderingContext

WebGLRenderingContext.drawingBufferHeight

The read-only WebGLRenderingContext.drawingBufferHeight property represents the actual height of the current drawing buffer. It should match the height attribute of the <canvas> element associated with this context, but might differ if the implementation is not able to provide the requested height.
API Property Read-only Reference WebGL WebGLRenderingContext

WebGLRenderingContext.drawingBufferWidth

The read-only WebGLRenderingContext.drawingBufferWidth property represents the actual width of the current drawing buffer. It should match the width attribute of the <canvas> element associated with this context, but might differ if the implementation is not able to provide the requested width.
API Property Read-only Reference WebGL WebGLRenderingContext

WebGLRenderingContext.generateMipmap()

The WebGLRenderingContext.generateMipmap() method of the WebGL API generates a set of mipmaps for a WebGLTexture object.
API Method Reference Textures WebGL WebGLRenderingContext

WebGLRenderingContext.getTexParameter()

The WebGLRenderingContext.getTexParameter() method of the WebGL API returns information about the given texture.
API Method Reference Textures WebGL WebGLRenderingContext

WebGLRenderingContext.texImage2D()

The WebGLRenderingContext.texImage2D() method of the WebGL API specifies a two-dimensional texture image.
API Method Reference Textures WebGL WebGLRenderingContext

WebGLRenderingContext.texParameter[fi]()

The WebGLRenderingContext.texParameter[fi]() methods of the WebGL API set texture parameters.
API Method Reference Textures WebGL WebGLRenderingContext

WebGLRenderingContext.texSubImage2D()

The WebGLRenderingContext.texSubImage2D() method of the WebGL API specifies a sub-rectangle of the current texture.
API Method Reference Textures WebGL WebGLRenderingContext

Matrix math for the web

Matrices can be used to represent transformations of objects in space, and are an important tool to use in visualizations on the Web. This article explores how to create matrices and use them with CSS3 transforms and the matrix3d transform type.
3D CSS3 Guide matrices matrix transform3d WebGL

StringView

As web applications become more and more powerful, adding features such as audio and video manipulation, access to raw data using WebSockets, and so forth, it has become clear that there are times when it would be helpful for JavaScript code to be able to quickly and easily manipulate raw binary data. In the past, this had to be simulated by treating the raw data as a string and using the charCodeAt() method to read the bytes from the data buffer.
Code snippet Guide JavaScript JavaScript typed arrays js-ctypes MDN JavaScript Libraries Sample code Typed Arrays WebGL WebSockets