Wrapper class over OpenGL RBOs.
More...
#include <framebuffer.hpp>
|
|
| ~RBO () |
| | Destroys the RBO object.
|
| |
| GLuint | getID () const |
| | Gets the ID associated with this RBO.
|
| |
| void | resize (const glm::vec2 &dimensions) |
| | Deletes previously allocated RBO buffer and allocates a new one.
|
| |
|
| static std::unique_ptr< RBO > | create (const glm::vec2 &dimensions) |
| | Creates a new RBO.
|
| |
|
| | RBO (const glm::vec2 &dimensions) |
| | Constructs a new RBO object.
|
| |
|
|
GLuint | mID |
| | The ID of the RBO.
|
| |
Wrapper class over OpenGL RBOs.
An RBO, or a render buffer object, is a texture representing the depth map or stencil buffer for the framebuffer it's attached to.
◆ RBO()
| RBO::RBO |
( |
const glm::vec2 & | dimensions | ) |
|
|
private |
Constructs a new RBO object.
- Parameters
-
| dimensions | The dimensions the RBO should have. |
◆ create()
| static std::unique_ptr< RBO > ToyMaker::RBO::create |
( |
const glm::vec2 & | dimensions | ) |
|
|
inlinestatic |
Creates a new RBO.
- Parameters
-
| dimensions | The dimensions specified for the RBO. |
- Returns
- std::unique_ptr<RBO> Pointer to the created RBO.
◆ getID()
| GLuint ToyMaker::RBO::getID |
( |
| ) |
const |
|
inline |
Gets the ID associated with this RBO.
- Returns
- GLuint The RBO's ID.
◆ resize()
| void RBO::resize |
( |
const glm::vec2 & | dimensions | ) |
|
Deletes previously allocated RBO buffer and allocates a new one.
- Parameters
-
| dimensions | The new dimensions for the RBO. |
The documentation for this class was generated from the following files: