TazGraph Project
v0.1.0
Loading...
Searching...
No Matches
TazGraphEngine
Renderers
FrameBuffer
Framebuffer.h
1
#pragma once
2
3
#include "../../GLSLProgram.h"
4
#include <GL/glew.h>
5
#include <glm/glm.hpp>
6
7
class
Framebuffer
8
{
9
private
:
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;
26
public
:
27
uint32_t _framebufferTexture;
28
29
Framebuffer
();
30
~Framebuffer
();
31
32
void
init
(
int
windowWidth,
int
windowHeight);
33
34
void
Bind();
35
void
Unbind();
36
};
Framebuffer
Definition
Framebuffer.h:8
Framebuffer::init
void init(int windowWidth, int windowHeight)
Definition
Framebuffer.cpp:7
Generated by
1.9.8