summaryrefslogtreecommitdiff
path: root/include/scene.h
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-06-05 18:20:49 -0500
committersanine-a <sanine.not@pm.me>2020-06-05 18:20:49 -0500
commite4dd7978d24f53465c8475bd3a027047b4a53bb8 (patch)
tree5c861830a2f7ad6ed2bcc0f9f04cd504403b3292 /include/scene.h
parent70784cdb24628e758df27cbe1965ff83102decb0 (diff)
refactor: rename honey_error to honey_result
Diffstat (limited to 'include/scene.h')
-rw-r--r--include/scene.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/scene.h b/include/scene.h
new file mode 100644
index 0000000..c998af9
--- /dev/null
+++ b/include/scene.h
@@ -0,0 +1,27 @@
+#ifndef HONEY_SCENE_H
+#define HONEY_SCENE_H
+
+#include "common.h"
+#include "light.h"
+#include "model.h"
+#include "texture.h"
+
+#define HONEY_SCENE_MAX_POINT_LIGHTS 8
+#define HONEY_SCENE_MAX_DIRECTIONAL_LIGHTS 8
+#define HONEY_SCENE_MAX_MODELS 8
+#define HONEY_SCENE_MAX_TEXTURES 8
+
+typedef struct {
+ honey_point_light point_lights[HONEY_SCENE_MAX_POINT_LIGHTS];
+ unsigned int n_point_lights;
+
+ honey_directional_light directional_lights[HONEY_SCENE_MAX_DIRECTIONAL_LIGHTS];
+ unsigned int n_directional_lights;
+
+ honey_mode models[HONEY_SCENE_MAX_MODELS];
+ unsigned int n_models;
+} honey_scene;
+
+/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+#endif