NWengine 0.9
Loading...
Searching...
No Matches
FrameBuffer Class Reference

The FrameBuffer class represents a framebuffer object. More...

#include <FrameBuffer.h>

Public Member Functions

 FrameBuffer ()=default
 Default constructor for the FrameBuffer class.
 
void SetUp (Vector2< int > size)
 Sets up the framebuffer with the specified size.
 
void Bind ()
 Binds the framebuffer.
 
void Unbind ()
 Unbinds the framebuffer.
 
void Delete ()
 Deletes the framebuffer.
 

Public Attributes

Texture textureBuffer
 

Detailed Description

The FrameBuffer class represents a framebuffer object.

This class provides functionality to create, bind, unbind, and delete a framebuffer object. It also allows setting up the framebuffer with a specified size.

Member Function Documentation

◆ SetUp()

void FrameBuffer::SetUp ( Vector2< int > size)

Sets up the framebuffer with the specified size.

Parameters
sizeThe size of the framebuffer.
Note
Calling this method multiple times without deleting the framebuffer may result in a memory leak.

Member Data Documentation

◆ textureBuffer

Texture FrameBuffer::textureBuffer

The texture buffer associated with the framebuffer.


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