diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-10 14:06:15 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-10 14:06:15 +1000 |
commit | 9cb4bfacc69b2a95ce8e9250afc33fb04d1ba548 (patch) | |
tree | fbe75da188ac83b34153ac79c367b9d57e0d5ff9 /src/new_render/render_frame.h | |
parent | 071a635e63536e50abfad7d5aeca1208dba58025 (diff) |
remove old code
Diffstat (limited to 'src/new_render/render_frame.h')
-rw-r--r-- | src/new_render/render_frame.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/new_render/render_frame.h b/src/new_render/render_frame.h deleted file mode 100644 index 02f7f22..0000000 --- a/src/new_render/render_frame.h +++ /dev/null @@ -1,27 +0,0 @@ -#pragma once -#include "camera.h" -#include "defines.h" -#include "ral_types.h" -#include "render_types.h" - -// Frame lifecycle on CPU - -// 1. extract -// 2. culling -// 3. render -// 4. dispatch (combined with render for now) - -typedef struct Cull_Result { - u64 n_visible_objects; - u64 n_culled_objects; - u32* visible_ent_indices; // allocated on frame arena - size_t index_count; -} Cull_Result; - -// everything that can be in the world, knows how to extract rendering data -typedef void (*ExtractRenderData)(void* world_data); - -typedef struct Renderer Renderer; - -/** @brief Produces a smaller set of only those meshes visible in the camera frustum on the CPU */ -Cull_Result Frame_Cull(Renderer* ren, RenderEnt* entities, size_t entity_count, Camera* camera);
\ No newline at end of file |