TerraForge3D  2.3.1
3D Terrain And Landscape Generator
FrameBuffer.h
1#pragma once
2
3#include <cstdint>
4
6{
7
8public:
9
10 FrameBuffer(int width = 800, int height = 600);
12
13 void Begin();
14 uint32_t End();
15
16 uint32_t GetColorTexture();
17 uint32_t GetDepthTexture();
18 uint32_t GetRendererID();
19
20 inline int GetWidth()
21 {
22 return width;
23 }
24 inline int GetHeight()
25 {
26 return height;
27 }
28
29private:
30 uint32_t colorTexture, depthTexture, fbo;
31 int width, height;
32};