diff options
author | Joshua Rowe <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-21 11:48:06 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-21 11:48:06 +1000 |
commit | d8b564ffd1257152094966784a8db3d1396a8879 (patch) | |
tree | adbbda6eec38d0cd6f35f29e422debe09b807461 /src/renderer/render.h | |
parent | 45f035c2174a018444a4e495ec78b4806900d903 (diff) | |
parent | 540bdfd0cbe4a95b49281cec4d3ed207070a3b5b (diff) |
Merge pull request #10 from omnisci3nce/cel-41-port-over-a-basic-3d-scene-example
Cel 41 port over a basic 3d scene example
Diffstat (limited to 'src/renderer/render.h')
-rw-r--r-- | src/renderer/render.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/renderer/render.h b/src/renderer/render.h index 10702e3..1a35488 100644 --- a/src/renderer/render.h +++ b/src/renderer/render.h @@ -3,6 +3,7 @@ #include "camera.h" #include "loaders.h" #include "render_types.h" +#include "transform_hierarchy.h" // --- Lifecycle /** @brief initialise the render system frontend */ @@ -17,8 +18,10 @@ void render_frame_end(renderer* ren); // --- models meshes void model_upload_meshes(renderer* ren, model* model); -void draw_model(renderer* ren, camera* camera, model* model, transform tf, scene* scene); -void draw_mesh(renderer* ren, mesh* mesh, transform tf, material* mat, mat4* view, mat4* proj); +void draw_model(renderer* ren, camera* camera, model* model, mat4* tf, scene* scene); +void draw_mesh(renderer* ren, mesh* mesh, mat4* tf, material* mat, mat4* view, mat4* proj); +void draw_scene(arena* frame, model_darray* models, renderer* ren, camera* camera, + transform_hierarchy* tfh, scene* scene); // --- texture texture_data_load(const char* path, bool invert_y); // #frontend |