TazGraph Project v0.1.0
Loading...
Searching...
No Matches
Framebuffer.h
1#pragma once
2
3#include "../../GLSLProgram.h"
4#include <GL/glew.h>
5#include <glm/glm.hpp>
6
8{
9private:
10 float _rectangleVertices[24] =
11 {
12 // Coords // texCoords
13 1.0f, -1.0f, 1.0f, 0.0f,
14 -1.0f, -1.0f, 0.0f, 0.0f,
15 -1.0f, 1.0f, 0.0f, 1.0f,
16
17 1.0f, 1.0f, 1.0f, 1.0f,
18 1.0f, -1.0f, 1.0f, 0.0f,
19 -1.0f, 1.0f, 0.0f, 1.0f
20 };
21
22 unsigned int _rectVAO, _rectVBO;
23
24 unsigned int _FBO;
25 unsigned int _RBO;
26public:
27 uint32_t _framebufferTexture;
28
31
32 void init(int windowWidth, int windowHeight);
33
34 void Bind();
35 void Unbind();
36};
Definition Framebuffer.h:8
void init(int windowWidth, int windowHeight)
Definition Framebuffer.cpp:7