Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Loading...
Searching...
No Matches
ToyMaker::RBO Class Reference

Wrapper class over OpenGL RBOs. More...

#include <framebuffer.hpp>

Public Member Functions

 ~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 Public Member Functions

static std::unique_ptr< RBOcreate (const glm::vec2 &dimensions)
 Creates a new RBO.
 

Private Member Functions

 RBO (const glm::vec2 &dimensions)
 Constructs a new RBO object.
 

Private Attributes

GLuint mID
 The ID of the RBO.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RBO()

RBO::RBO ( const glm::vec2 & dimensions)
private

Constructs a new RBO object.

Parameters
dimensionsThe dimensions the RBO should have.

Member Function Documentation

◆ create()

static std::unique_ptr< RBO > ToyMaker::RBO::create ( const glm::vec2 & dimensions)
inlinestatic

Creates a new RBO.

Parameters
dimensionsThe 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
dimensionsThe new dimensions for the RBO.

The documentation for this class was generated from the following files: