|
Fireworks Engine
v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
|
#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>

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 |
| #define RENDERER3D_BUFFER_SIZE RENDERER3D_PRIMITIVE_SIZE * RENDERER3D_MAX_PRIMITIVES |
| #define RENDERER3D_DEFAULT_FACES 6 |
| #define RENDERER3D_INDICES_SIZE RENDERER3D_MAX_PRIMITIVES * RENDERER3D_DEFAULT_FACES * 6 |
| #define RENDERER3D_MAX_PRIMITIVES 2000 |
| #define RENDERER3D_PRIMITIVE_SIZE RENDERER3D_VERTEX_SIZE * RENDERER3D_DEFAULT_FACES * 4 |
| #define RENDERER3D_VERTEX_SIZE sizeof(VertexData3D) |