Click or drag to resize

RenderbufferStorage Method

Create and initialize a renderbuffer object's data store.

Namespace:  Ooogles
Assembly:  Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public void Storage(
	int width,
	int height,
	RenderbufferFormat format = RenderbufferFormat.Rgba4
)

Parameters

width
Type: SystemInt32
width of the renderbuffer in pixels
height
Type: SystemInt32
height of the renderbuffer in pixels
format (Optional)
Type: OooglesRenderbufferFormat
(optional) color-renderable, depth-renderable, or stencil- renderable format of the renderbuffer. Defaults to Rgba4.
Exceptions
ExceptionCondition
GLExceptionInvalidValue if width or height is less than zero or greater than the maximum renderbuffer size (see MaxRenderbufferSize).
GLExceptionOutOfMemory if the implementation is unable to create a data store with the requested width and height.
GLExceptionInvalidOperation if no renderbuffer is bound.
Remarks
This method establishes the data storage, format, and dimensions of a renderbuffer object's image. Any existing data store for the renderbuffer is deleted and the contents of the new data store are undefined.

An implementation may vary its allocation of internal component resolution based on any parameter, but the allocation and chosen internal format must not be a function of any other state and cannot be changed once they are established. The actual resolution in bits of each component of the allocated image can be queried using the properties of this object.

Note: in DEBUG mode with assertions enabled, an error will be logged to the debug console if this renderbuffer is not bound.

OpenGL API: glRenderbufferStorage

See Also