Fireworks Engine  v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
batchrenderer3d.h File Reference
#include "renderer3d.h"
#include "../renderables/renderable3d.h"
#include "../../utils/glassert.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/string_cast.hpp>
Include dependency graph for batchrenderer3d.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Namespaces

 fireworks
 
 fireworks::graphics
 

Macros

#define RENDERER3D_MAX_PRIMITIVES   2000
 
#define RENDERER3D_VERTEX_SIZE   sizeof(VertexData3D)
 
#define RENDERER3D_DEFAULT_FACES   6
 
#define RENDERER3D_PRIMITIVE_SIZE   RENDERER3D_VERTEX_SIZE * RENDERER3D_DEFAULT_FACES * 4
 
#define RENDERER3D_BUFFER_SIZE   RENDERER3D_PRIMITIVE_SIZE * RENDERER3D_MAX_PRIMITIVES
 
#define RENDERER3D_INDICES_SIZE   RENDERER3D_MAX_PRIMITIVES * RENDERER3D_DEFAULT_FACES * 6
 

Macro Definition Documentation

◆ RENDERER3D_BUFFER_SIZE

#define RENDERER3D_BUFFER_SIZE   RENDERER3D_PRIMITIVE_SIZE * RENDERER3D_MAX_PRIMITIVES

◆ RENDERER3D_DEFAULT_FACES

#define RENDERER3D_DEFAULT_FACES   6

◆ RENDERER3D_INDICES_SIZE

#define RENDERER3D_INDICES_SIZE   RENDERER3D_MAX_PRIMITIVES * RENDERER3D_DEFAULT_FACES * 6

◆ RENDERER3D_MAX_PRIMITIVES

#define RENDERER3D_MAX_PRIMITIVES   2000

◆ RENDERER3D_PRIMITIVE_SIZE

#define RENDERER3D_PRIMITIVE_SIZE   RENDERER3D_VERTEX_SIZE * RENDERER3D_DEFAULT_FACES * 4

◆ RENDERER3D_VERTEX_SIZE

#define RENDERER3D_VERTEX_SIZE   sizeof(VertexData3D)