3 #include "../renderables/renderable2d.h" 5 #include "../../components/component.h" 9 #define SHOT_RENDERER_MAX_SPRITES 1 10 #define SHOT_RENDERER_VERTEX_SIZE sizeof(VertexData) 11 #define SHOT_RENDERER_SPRITE_SIZE SHOT_RENDERER_VERTEX_SIZE * 4 12 #define SHOT_RENDERER_BUFFER_SIZE SHOT_RENDERER_SPRITE_SIZE * SHOT_RENDERER_MAX_SPRITES 13 #define SHOT_RENDERER_INDICES_SIZE SHOT_RENDERER_MAX_SPRITES * 6 25 GLsizei m_IndicesCount;
35 void begin()
override;
41 void flush()
override;
Creates Index Buffers.
Definition: indexbuffer.h:11
The Class responsible for drawing the basic Renderable objects onto the screen.
Definition: renderable2d.h:36
The structure of the Vertex Data.
Definition: renderable2d.h:17
void flush() override
Draws the data processed onto the screen.
Definition: ShotRenderer2D.cpp:147
Definition: audioclip.cpp:3
void end() override
Ends the submission and prepares the renderer to start drawing.
Definition: ShotRenderer2D.cpp:141
void submit(const Renderable2D *renderable) override
Begins to submit the renderables to render queue.
Definition: ShotRenderer2D.cpp:60
Forward declaration of the graphics::Renderable2D.
Definition: renderer2d.h:15
ShotRenderer2D(Camera2D *camera)
Creates the renderer from the camera.
Definition: ShotRenderer2D.cpp:6
Renders the renderables on a per draw call basis.
Definition: ShotRenderer2D.h:18
The eye of the 2D world.
Definition: camera2d.h:11
~ShotRenderer2D()
Definition: ShotRenderer2D.cpp:12
void begin() override
Begins the rendering process.
Definition: ShotRenderer2D.cpp:54