diff options
Diffstat (limited to 'src/new_render')
-rw-r--r-- | src/new_render/render.h | 6 | ||||
-rw-r--r-- | src/new_render/render_types.h | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/new_render/render.h b/src/new_render/render.h index 7c6a4a5..b0b5495 100644 --- a/src/new_render/render.h +++ b/src/new_render/render.h @@ -28,7 +28,11 @@ PUB void Renderer_Shutdown(Renderer* renderer); // NOTE: All of these functions grab the Renderer instance off the global Core PUB void Render_FrameBegin(Renderer* renderer); PUB void Render_FrameEnd(Renderer* renderer); -PUB void Render_FrameDraw(Renderer* renderer); + +/** @brief */ +PUB void Render_RenderEntities(RenderEnt* entities, size_t entity_count); + +// TODO: Render_FrameDraw(); - this will // --- Resources diff --git a/src/new_render/render_types.h b/src/new_render/render_types.h index 384a18f..b27bf2f 100644 --- a/src/new_render/render_types.h +++ b/src/new_render/render_types.h @@ -5,6 +5,7 @@ #pragma once #include "defines.h" +#include "maths_types.h" #include "ral.h" #include "maths.h" #include "ral_types.h" @@ -79,6 +80,7 @@ typedef struct DirectionalLight { // A renderable 'thing' typedef struct RenderEnt { ModelHandle model; - Mat4 affine; + Mat4 affine; // In the future this should be updated by the transform graph + // Bbox_3D bounding_box; bool casts_shadows; } RenderEnt; |