Vivid
Loading...
Searching...
No Matches
FrameBuffer.h
1#pragma once
2
3#include <iostream>
4#include "Renderer.h"
5
11{
12public:
13 FrameBuffer() = default;
14 FrameBuffer(float width, float height);
16
17 unsigned int getFrameTexture();
18 void RescaleFrameBuffer(float width, float height);
19
20 void Bind() const;
21 void Unbind() const;
22
23private:
24 unsigned int fbo;
25 unsigned int texture;
26 unsigned int rbo;
27};
Handles the creation and management of a frame buffer.
Definition: FrameBuffer.h:11