This file contains the implementation of the light system, which manages all lighting objects within the engine.
More...
|
| b8 | light_system_initialize (u64 *memory_requirement, light_system_state *memory, void *config) |
| | Initializes the light system. As with most systems, this should be called twice, the first time to obtain the memory requirement (where memory=0), and a second time passing allocated memory the size of memory_requirement. More...
|
| |
| void | light_system_shutdown (light_system_state *state) |
| | Shuts down the light system, releasing all resources. More...
|
| |
| void | light_system_frame_prepare (light_system_state *state, frame_data *p_frame_data) |
| |
| KAPI klight | point_light_create (light_system_state *state, vec3 position, colour3 colour, f32 constant_f, f32 linear, f32 quadratic) |
| |
| KAPI klight | directional_light_create (light_system_state *state, vec3 direction, colour3 colour) |
| |
| KAPI vec3 | directional_light_get_direction (light_system_state *state, klight light) |
| |
| KAPI colour3 | directional_light_get_colour (light_system_state *state, klight light) |
| |
| KAPI vec3 | point_light_get_position (light_system_state *state, klight light) |
| |
| KAPI colour3 | point_light_get_colour (light_system_state *state, klight light) |
| |
| KAPI void | directional_light_set_direction (light_system_state *state, klight light, vec3 direction) |
| |
| KAPI void | point_light_set_position (light_system_state *state, klight light, vec3 position) |
| |
| KAPI void | point_light_set_colour (light_system_state *state, klight light, colour3 colour) |
| |
| KAPI f32 | point_light_radius_get (light_system_state *state, klight light) |
| |
| KAPI void | light_destroy (light_system_state *state, klight light) |
| |
| KAPI klight_data | light_get_data (light_system_state *state, klight light) |
| |
This file contains the implementation of the light system, which manages all lighting objects within the engine.
- Author
- Travis Vroman (travi.nosp@m.s@ko.nosp@m.hieng.nosp@m.ine..nosp@m.com)
- Version
- 1.0
- Date
- 2023-03-02
- Copyright
- Kohi Game Engine is Copyright (c) Travis Vroman 2021-2023