Fireworks Engine  v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
batchrenderer2d.h File Reference
#include <cstddef>
#include "../renderables/renderable2d.h"
#include "renderer2d.h"
#include "../../utils/glassert.h"
Include dependency graph for batchrenderer2d.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fireworks::graphics::BatchRenderer2D
 Renders the renderables in a single draw call using batching. More...
 

Namespaces

 fireworks
 
 fireworks::graphics
 

Macros

#define RENDERER_MAX_SPRITES   60000
 
#define RENDERER_VERTEX_SIZE   sizeof(VertexData)
 
#define RENDERER_SPRITE_SIZE   RENDERER_VERTEX_SIZE * 4
 
#define RENDERER_BUFFER_SIZE   RENDERER_SPRITE_SIZE * RENDERER_MAX_SPRITES
 
#define RENDERER_INDICES_SIZE   RENDERER_MAX_SPRITES * 6
 

Macro Definition Documentation

◆ RENDERER_BUFFER_SIZE

#define RENDERER_BUFFER_SIZE   RENDERER_SPRITE_SIZE * RENDERER_MAX_SPRITES

◆ RENDERER_INDICES_SIZE

#define RENDERER_INDICES_SIZE   RENDERER_MAX_SPRITES * 6

◆ RENDERER_MAX_SPRITES

#define RENDERER_MAX_SPRITES   60000

◆ RENDERER_SPRITE_SIZE

#define RENDERER_SPRITE_SIZE   RENDERER_VERTEX_SIZE * 4

◆ RENDERER_VERTEX_SIZE

#define RENDERER_VERTEX_SIZE   sizeof(VertexData)