From 9f23f65ec631bcd08f200b3ef517da8acf8d6b17 Mon Sep 17 00:00:00 2001 From: Omniscient Date: Thu, 11 Jul 2024 18:03:34 +1000 Subject: new --- src/new_render/render_scene.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/new_render/render_scene.h (limited to 'src/new_render/render_scene.h') diff --git a/src/new_render/render_scene.h b/src/new_render/render_scene.h new file mode 100644 index 0000000..7591d8f --- /dev/null +++ b/src/new_render/render_scene.h @@ -0,0 +1,20 @@ +/** + * @file render_scene.h + * @brief + */ +#pragma once +#include "defines.h" +#include "render_types.h" +#include "camera.h" + +/** @brief Holds globally bound data for rendering a scene. Typically held by the renderer. + * Whenever you call draw functions you can think of this as an implicit parameter. */ +typedef struct RenderScene { + Camera camera; + PointLight light; +} RenderScene; + +// --- Public APIs + +PUB void SetCamera(Camera camera); +PUB void SetPointLight(PointLight light); -- cgit v1.2.3-70-g09d2