createRenderbuffer(width, height, internalFormat=32856, samples=1)¶
Create a new Renderbuffer Object with a specified internal format. A multisample storage buffer is created if samples > 1.
Renderbuffers contain image data and are optimized for use as render targets. See https://www.khronos.org/opengl/wiki/Renderbuffer_Object for more information.
int) – Buffer width in pixels.
int) – Buffer height in pixels.
int) – Format for renderbuffer data (e.g. GL_RGBA8, GL_DEPTH24_STENCIL8).
int) – Number of samples for multi-sampling, should be >1 and power-of-two.
Work with one sample, but will raise a warning.
A descriptor of the created renderbuffer.
The ‘userData’ field of the returned descriptor is a dictionary that can be used to store arbitrary data associated with the buffer.