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
RenderData.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_GRAPHICS_RENDERDATA_HPP_
9#define GALAXY_GRAPHICS_RENDERDATA_HPP_
10
11#include <glm/mat4x4.hpp>
12#include <glm/vec4.hpp>
13
15
16#ifdef GALAXY_WIN_PLATFORM
19#endif
20
21namespace galaxy
22{
23 namespace graphics
24 {
28 struct alignas(16) RenderData final
29 {
33 glm::mat4 transform;
34
38 glm::vec4 colour;
39
43 int entity;
44
48 bool point;
49
54 };
55 } // namespace graphics
56} // namespace galaxy
57
58#ifdef GALAXY_WIN_PLATFORM
60#endif
61
62#endif
#define GALAXY_DISABLE_WARNING_POP
Definition Pragma.hpp:57
#define GALAXY_DISABLE_WARNING(x)
Definition Pragma.hpp:58
#define GALAXY_DISABLE_WARNING_PUSH
Macro for windows platform detection.
Definition Pragma.hpp:56
Animated.cpp galaxy.
Definition Animated.cpp:16
Uniform data passed to shader from entity.
glm::mat4 transform
Orthographic transform.
bool textured
Are we rendering as a texture.
glm::vec4 colour
Colour / tint.
bool point
Is this being rendered with GL_POINTS.