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
12
class
FrameBuffer
{
13
private
:
14
uint32 _framebuffer = 0;
15
uint32 _renderbuffer = 0;
16
public
:
17
Texture
textureBuffer
;
22
FrameBuffer
() =
default
;
23
31
void
SetUp
(
Vector2<int>
size);
32
36
void
Bind
();
37
41
void
Unbind
();
42
46
void
Delete
();
47
};
FrameBuffer
The FrameBuffer class represents a framebuffer object.
Definition
FrameBuffer.h:12
FrameBuffer::textureBuffer
Texture textureBuffer
Definition
FrameBuffer.h:17
FrameBuffer::SetUp
void SetUp(Vector2< int > size)
Sets up the framebuffer with the specified size.
Definition
Framebuffer.cpp:6
FrameBuffer::Delete
void Delete()
Deletes the framebuffer.
Definition
Framebuffer.cpp:33
FrameBuffer::FrameBuffer
FrameBuffer()=default
Default constructor for the FrameBuffer class.
FrameBuffer::Bind
void Bind()
Binds the framebuffer.
Definition
Framebuffer.cpp:26
FrameBuffer::Unbind
void Unbind()
Unbinds the framebuffer.
Definition
Framebuffer.cpp:29
Texture
Class representing a texture asset.
Definition
Texture.h:81
Vector2
Definition
Maths.h:21
Graphics
FrameBuffer.h
Generated by
1.10.0