NWengine 0.9
Loading...
Searching...
No Matches
FrameBuffer.h
1#pragma once
2#include "Context.h"
3#include "Texture.h"
4#include "Maths.h"
5
13private:
14 uint32 _framebuffer = 0;
15 uint32 _renderbuffer = 0;
16public:
22 FrameBuffer() = default;
23
31 void SetUp(Vector2<int> size);
32
36 void Bind();
37
41 void Unbind();
42
46 void Delete();
47};
The FrameBuffer class represents a framebuffer object.
Definition FrameBuffer.h:12
Texture textureBuffer
Definition FrameBuffer.h:17
void SetUp(Vector2< int > size)
Sets up the framebuffer with the specified size.
Definition Framebuffer.cpp:6
void Delete()
Deletes the framebuffer.
Definition Framebuffer.cpp:33
FrameBuffer()=default
Default constructor for the FrameBuffer class.
void Bind()
Binds the framebuffer.
Definition Framebuffer.cpp:26
void Unbind()
Unbinds the framebuffer.
Definition Framebuffer.cpp:29
Class representing a texture asset.
Definition Texture.h:81
Definition Maths.h:21