OpenGL implementation of RenderPass.
More...
#include <OpenGLRenderPass.hpp>
OpenGL implementation of RenderPass.
◆ OpenGLRenderPass() [1/2]
Create new OpenGL render pass.
- Parameters
-
| colorAttachment | The color attachment to render to. |
| colorLoadOperation | What to do with the previous contents of the color attachment. |
| depthAttachment | The depth attachment to render to. |
| depthLoadOperation | What to do with the previous contents of the depth attachment. |
◆ OpenGLRenderPass() [2/2]
| Video::OpenGLRenderPass::OpenGLRenderPass |
( |
const glm::uvec2 & |
size, |
|
|
uint32_t |
msaaSamples |
|
) |
| |
Create new attachmentless OpenGL render pass.
- Parameters
-
| size | The size of the framebuffer. |
| msaaSamples | The number of MSAA samples. |
◆ ~OpenGLRenderPass()
| Video::OpenGLRenderPass::~OpenGLRenderPass |
( |
| ) |
|
|
final |
◆ GetClearMask()
| GLbitfield Video::OpenGLRenderPass::GetClearMask |
( |
| ) |
const |
Get the clear mask for use when beginning the render pass.
- Returns
- The clear mask.
◆ GetFrameBuffer()
| GLuint Video::OpenGLRenderPass::GetFrameBuffer |
( |
| ) |
const |
Get the render pass' frame buffer.
- Returns
- The frame buffer.
◆ GetSize()
| const glm::uvec2 & Video::OpenGLRenderPass::GetSize |
( |
| ) |
const |
|
finalvirtual |
Get the size of the frame buffer.
- Returns
- The size of the frame buffer in pixels.
Implements Video::RenderPass.
The documentation for this class was generated from the following files: