Kohi Game Engine
camera Struct Reference

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...
 

Detailed Description

Represents a camera that can be used for a variety of things, especially rendering. Ideally, these are created and managed by the camera system.

Field Documentation

◆ euler_rotation

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.

◆ is_dirty

b8 is_dirty

Internal flag used to determine when the view matrix needs to be rebuilt.

◆ position

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.

◆ view_matrix

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.


The documentation for this struct was generated from the following file: