A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/renderbufferStorage below:

WebGLRenderingContext: renderbufferStorage() method - Web APIs

WebGLRenderingContext: renderbufferStorage() method

Baseline Widely available

Note: This feature is available in Web Workers.

The WebGLRenderingContext.renderbufferStorage() method of the WebGL API creates and initializes a renderbuffer object's data store.

Syntax
renderbufferStorage(target, internalFormat, width, height)
Parameters
target

A GLenum specifying the target renderbuffer object. Possible values:

gl.RENDERBUFFER

Buffer data storage for single images in a renderable internal format.

internalFormat

A GLenum specifying the internal format of the renderbuffer. Possible values:

When using a WebGL 2 context, the following values are available additionally:

When using the WEBGL_color_buffer_float extension:

When using the EXT_sRGB extension:

When using a WebGL 2 context and the EXT_color_buffer_float extension:

width

A GLsizei specifying the width of the renderbuffer in pixels.

height

A GLsizei specifying the height of the renderbuffer in pixels.

Return value

None (undefined).

Examples
gl.renderbufferStorage(gl.RENDERBUFFER, gl.RGBA4, 256, 256);
Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3