From cf2abfcfe34a9b3e4cf5af193d1f320374416267 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 18 Jan 2025 16:19:41 +1100 Subject: convert models and editor to use ecs --- scene.hpp | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 scene.hpp (limited to 'scene.hpp') diff --git a/scene.hpp b/scene.hpp new file mode 100644 index 0000000..31f1cab --- /dev/null +++ b/scene.hpp @@ -0,0 +1,39 @@ +#ifndef scene_hpp +#define scene_hpp + +#include "maths.hpp" +#include "video.hpp" +#include "world.hpp" + +#include + +struct Arena; +struct Camera; +struct Model_Instance; +struct Model_Scene; +struct World; + +struct Transform { + m4f mat; +}; + +struct C_Model { + Model_Instance* i; +}; + +void update_scene( + Model_Scene& ms, + Device* dev, + const Camera& cam, + World& w +); +std::pair scene_pick( + World& world, + const Camera& cam, + int w, + int h, + int mx, + int my +); + +#endif -- cgit v1.2.3-54-g00ecf