renderbuffer(size, components=4, samples=0, floats=True) → Renderbuffer
- size (tuple) – The width and height.
- components (int) – The number of components 1, 2, 3 or 4.
- samples – The number of samples. Value 0 means no multisample format.
- floats – Use floating point precision.
depth_renderbuffer(size, samples=0) → Renderbuffer
Parameters: size (tuple) – The width and height. Keyword Arguments: samples – The number of samples. Value 0 means no multisample format. Returns: depth renderbuffer Return type: Renderbuffer
Renderbuffer objects are OpenGL objects that contain images. They are created and used specifically with
Framebufferobjects. They are optimized for use as render targets, while
Textureobjects may not be, and are the logical choice when you do not need to sample from the produced image. If you need to resample, use Textures instead. Renderbuffer objects also natively accommodate multisampling.
int – The width of the renderbuffer.
int – The height of the renderbuffer.
tuple – The size of the renderbuffer.
int – The samples of the renderbuffer.
int – The components of the renderbuffer.
bool – Is the renderbuffer a depth renderbuffer?