Kohi Game Engine
camera_system.h
Go to the documentation of this file.
1 
12 #pragma once
13 
14 #include "renderer/camera.h"
15 
17 typedef struct camera_system_config {
23 
25 
27 #define DEFAULT_CAMERA_NAME "default"
28 
39 b8 camera_system_initialize(u64* memory_requirement, void* state, void* config);
40 
46 void camera_system_shutdown(void* state);
47 
56 KAPI camera* camera_system_acquire(const char* name);
57 
65 KAPI void camera_system_release(const char* name);
66 
KAPI camera * camera_system_acquire(const char *name)
Acquires a pointer to a camera by name. If one is not found, a new one is created and retuned....
b8 camera_system_initialize(u64 *memory_requirement, void *state, void *config)
Initializes the camera system. Should be called twice; once to get the memory requirement (passing st...
KAPI camera * camera_system_get_default(void)
Gets a pointer to the default camera.
KAPI void camera_system_release(const char *name)
Releases a camera with the given name. Intenral reference counter is decremented. If this reaches 0,...
struct camera_system_config camera_system_config
The camera system configuration.
void camera_system_shutdown(void *state)
Shuts down the geometry camera.
#define KAPI
Import/export qualifier.
Definition: defines.h:177
_Bool b8
8-bit boolean type
Definition: defines.h:58
unsigned short u16
Unsigned 16-bit integer.
Definition: defines.h:22
unsigned long long u64
Unsigned 64-bit integer.
Definition: defines.h:28
The camera system configuration.
Definition: camera_system.h:17
u16 max_camera_count
NOTE: The maximum number of cameras that can be managed by the system.
Definition: camera_system.h:22
Represents a camera that can be used for a variety of things, especially rendering....
Definition: camera.h:21