summaryrefslogtreecommitdiff
path: root/scene.hpp
blob: 31f1cab830c389e5469325699fc8ad5d0932efb0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef scene_hpp
#define scene_hpp

#include "maths.hpp"
#include "video.hpp"
#include "world.hpp"

#include <tuple>

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<Entity_Id, int> scene_pick(
	World& world,
	const Camera& cam,
	int w,
	int h,
	int mx,
	int my
);

#endif