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
RenderCommand.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_GRAPHICS_RENDERCOMMAND_HPP_
9#define GALAXY_GRAPHICS_RENDERCOMMAND_HPP_
10
12
13namespace galaxy
14{
15 namespace graphics
16 {
20 struct RenderCommand final
21 {
25 int layer = 0;
26
31
35 unsigned int vao = 0;
36
40 unsigned int mode = 0;
41
45 unsigned int count = 0;
46
50 void* offset = nullptr;
51
55 int instances = 1;
56
60 unsigned int texture = 0;
61 };
62 } // namespace graphics
63} // namespace galaxy
64
65#endif
Animated.cpp galaxy.
Definition Animated.cpp:16
Data to be passed to the renderer.
unsigned int mode
Type to render i.e. GL_LINES, GL_TRIANGLES, etc.
unsigned int vao
OpenGL vertex array object.
unsigned int count
OpenGL index (element) buffer count.
void * offset
Offset in vertex buffer marking beginning of element data.
int instances
Number of instances to render.
int layer
Layer to render on.
RenderData uniforms
Shader uniform data.
Uniform data passed to shader from entity.