66 void generateFrameBuffer(
const Vector2& size);
68 void generateRenderBuffer(
const Vector2& size);
71 unsigned int frameBuffer;
72 unsigned int colorBuffer;
73 unsigned int renderBuffer;
75 bool _isFinal =
false;
76 bool _shouldResize =
false;
Definition application.h:13
unsigned int ColorBuffer
Definition renderPass.h:13
unsigned int FrameBuffer
Definition renderPass.h:14
unsigned int RenderBuffer
Definition renderPass.h:15
PassType
What kind of type the Pass Should be.
Definition renderPass.h:18
@ COLOR
All colors.
Definition renderPass.h:20
@ COLOR_SINGLE
1 single color support
Definition renderPass.h:22
@ DEPTH
Definition renderPass.h:23
@ STENCIL
Definition renderPass.h:24
Info about how the RenderPass should be created.
Definition renderPass.h:28
bool resizeToRenderSize
If the pass should resize to the global Render size.
Definition renderPass.h:36
bool willBeVisible
If the Pass will be presented to the Window.
Definition renderPass.h:30
Vector2 size
The size of the Pass's image.
Definition renderPass.h:33
PassType passType
Definition renderPass.h:38
Definition renderPass.h:45
~RenderPass()
Definition renderPass.cpp:27
RenderPass(const RenderPassCreationInfo &info, Shader &shaderToUse)
Definition renderPass.cpp:9
FrameBuffer getFrameBuffer()
Definition renderPass.h:57
void unbindPass()
UnBinds and cleans the pass.
Definition renderPass.cpp:72
void bindPass()
Binds and cleans the pass.
Definition renderPass.cpp:59
bool isFinal()
isFinal is wether or not the User will see this texture.
Definition renderPass.h:62
ColorBuffer getPassTexture()
Definition renderPass.h:58
RenderBuffer getRenderBuffer()
Definition renderPass.h:59