 | 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)
Syntaxpublic void Storage(
int width,
int height,
RenderbufferFormat format = RenderbufferFormat.Rgba4
)
Public Sub Storage (
width As Integer,
height As Integer,
Optional format As RenderbufferFormat = RenderbufferFormat.Rgba4
)
public:
void Storage(
int width,
int height,
RenderbufferFormat format = RenderbufferFormat::Rgba4
)
member Storage :
width : int *
height : int *
?format : RenderbufferFormat
(* Defaults:
let _format = defaultArg format RenderbufferFormat.Rgba4
*)
-> unit
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.
ExceptionsException | Condition |
---|
GLException | InvalidValue if width or height is less than zero or greater than the maximum renderbuffer size (see MaxRenderbufferSize). |
GLException | OutOfMemory if the implementation is unable to create a data store with the requested width and height. |
GLException | InvalidOperation 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