Kohi Game Engine
|
Represents a camera that can be used for a variety of things, especially rendering. Ideally, these are created and managed by the camera system. More...
#include <camera.h>
Data Fields | |
vec3 | position |
The position of this camera. NOTE: Do not set this directly, use camera_positon_set() instead so the view matrix is recalculated when needed. More... | |
vec3 | euler_rotation |
The rotation of this camera using Euler angles (pitch, yaw, roll). NOTE: Do not set this directly, use camera_rotation_euler_set() instead so the view matrix is recalculated when needed. More... | |
b8 | is_dirty |
Internal flag used to determine when the view matrix needs to be rebuilt. More... | |
mat4 | view_matrix |
The view matrix of this camera. NOTE: IMPORTANT: Do not get this directly, use camera_view_get() instead so the view matrix is recalculated when needed. More... | |
Represents a camera that can be used for a variety of things, especially rendering. Ideally, these are created and managed by the camera system.
vec3 euler_rotation |
The rotation of this camera using Euler angles (pitch, yaw, roll). NOTE: Do not set this directly, use camera_rotation_euler_set() instead so the view matrix is recalculated when needed.
b8 is_dirty |
Internal flag used to determine when the view matrix needs to be rebuilt.
vec3 position |
The position of this camera. NOTE: Do not set this directly, use camera_positon_set() instead so the view matrix is recalculated when needed.
mat4 view_matrix |
The view matrix of this camera. NOTE: IMPORTANT: Do not get this directly, use camera_view_get() instead so the view matrix is recalculated when needed.