diff options
Diffstat (limited to 'include/gfx/scene/camera.h')
-rw-r--r-- | include/gfx/scene/camera.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/gfx/scene/camera.h b/include/gfx/scene/camera.h new file mode 100644 index 0000000..99d83fe --- /dev/null +++ b/include/gfx/scene/camera.h | |||
@@ -0,0 +1,22 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include <math/fwd.h> | ||
4 | |||
5 | typedef struct SceneNode SceneNode; | ||
6 | |||
7 | typedef struct SceneCamera SceneCamera; | ||
8 | |||
9 | /// Create a new camera. | ||
10 | SceneCamera* gfx_make_camera(); | ||
11 | |||
12 | /// Destroy the camera. | ||
13 | /// | ||
14 | /// The camera is conveniently removed from the scene graph and its parent scene | ||
15 | /// node is destroyed. | ||
16 | void gfx_destroy_camera(SceneCamera**); | ||
17 | |||
18 | /// Set the scene camera's math camera. | ||
19 | void gfx_set_camera_camera(SceneCamera* scene_camera, Camera* camera); | ||
20 | |||
21 | /// Get the scene camera's math camera. | ||
22 | Camera* gfx_get_camera_camera(SceneCamera*); | ||