galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
RenderPass.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_GRAPHICS_RENDERPASS_HPP_
9#define GALAXY_GRAPHICS_RENDERPASS_HPP_
10
11#include <glm/vec4.hpp>
12
13namespace galaxy
14{
18 struct RenderPass final
19 {
23 unsigned int target;
24
28 glm::vec4 viewport;
29
34 glm::vec4 scissor;
35
39 glm::vec4 clear_col;
40
45 };
46} // namespace galaxy
47
48#endif
Animated.cpp galaxy.
Definition Animated.cpp:16
The configuration for drawing something.
glm::vec4 scissor
OpenGL scissor region. https://gamedev.stackexchange.com/a/40713.
glm::vec4 viewport
This is the glViewport. z,w is width/height.
unsigned int target
This is the framebuffer to draw to.
glm::vec4 clear_col
Colour buffer clear colour.
float clear_depth
Depth buffer clear depth.