summaryrefslogtreecommitdiff
path: root/src/new_render/render_scene.h
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-07-11 18:03:34 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-07-11 18:03:34 +1000
commit9f23f65ec631bcd08f200b3ef517da8acf8d6b17 (patch)
treebc0e9d9fc0c687b646ddcb5c44122bfc70b4cfed /src/new_render/render_scene.h
parent65d74bdb26af833b5380046dec204f685f745cc1 (diff)
new
Diffstat (limited to 'src/new_render/render_scene.h')
-rw-r--r--src/new_render/render_scene.h20
1 files changed, 20 insertions, 0 deletions
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);