blob: 6706899809093479406bf00294c981565a1ee1f3 (
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
40
41
42
|
#ifndef scene_hpp
#define scene_hpp
#include "maths.hpp"
#include "video.hpp"
#include "world.hpp"
#include <tuple>
struct Arena;
struct Camera;
struct Lighting;
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 Lighting& lighting,
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
|