#include <GLDepthBuffer.h>
|
| | GLDepthBuffer (uint32_t width=0, uint32_t height=0) |
| | Construct a depth renderbuffer and allocate storage.
|
| | ~GLDepthBuffer () |
| | Destroy and delete the GL renderbuffer name.
|
| const GLuint | getId () const |
| | Retrieve the OpenGL renderbuffer object name.
|
| void | setSize (uint32_t width, uint32_t height) |
| | Reallocate storage to a new size.
|
| uint32_t | getWidth () const |
| | Stored width in pixels.
|
| uint32_t | getHeight () const |
| | Stored height in pixels.
|
◆ GLDepthBuffer()
| GLDepthBuffer::GLDepthBuffer |
( |
uint32_t | width = 0, |
|
|
uint32_t | height = 0 ) |
Construct a depth renderbuffer and allocate storage.
- Parameters
-
| width | Initial width in pixels. |
| height | Initial height in pixels. |
Creates a GL renderbuffer name and allocates a depth component storage for the specified dimensions.
◆ ~GLDepthBuffer()
| GLDepthBuffer::~GLDepthBuffer |
( |
| ) |
|
Destroy and delete the GL renderbuffer name.
◆ getHeight()
| uint32_t GLDepthBuffer::getHeight |
( |
| ) |
const |
|
inline |
◆ getId()
| const GLuint GLDepthBuffer::getId |
( |
| ) |
const |
Retrieve the OpenGL renderbuffer object name.
- Returns
- GLuint of the managed depth renderbuffer.
◆ getWidth()
| uint32_t GLDepthBuffer::getWidth |
( |
| ) |
const |
|
inline |
◆ setSize()
| void GLDepthBuffer::setSize |
( |
uint32_t | width, |
|
|
uint32_t | height ) |
Reallocate storage to a new size.
- Parameters
-
| width | New width in pixels. |
| height | New height in pixels. |
Updates internal bookkeeping and calls glRenderbufferStorage with a depth format for the new dimensions.
The documentation for this class was generated from the following files: