Struct CameraComponent¶
Defined in File camera.h
Struct Documentation¶
-
struct CameraComponent¶
Public Functions
-
void calculate_projection()¶
-
void calculate_view(glm::vec3 position, glm::vec3 forward_direction)¶
-
void set_viewport_bounds(glm::uvec4 bounds)¶
-
void archive(ArchiveObject &archive) const¶
-
void serialize(Serializer &serializer) const¶
Public Members
-
glm::mat4 projection = {1.f}¶
-
glm::mat4 view = {1.f}¶
-
glm::mat4 inverse_projection = {1.f}¶
-
glm::mat4 inverse_view = {1.f}¶
-
float vertical_fov = 35.f¶
-
float near_clip = 10000.f¶
-
float far_clip = 0.0175f¶
-
uint32_t width = 1¶
-
uint32_t height = 1¶
Public Static Functions
-
static CameraComponent dearchive(ArchiveObject &archive)¶
-
static CameraComponent deserialize(Deserializer &deserializer)¶
-
void calculate_projection()¶