SBgl 0.1.0
A graphics framework in C99
Loading...
Searching...
No Matches
sbgl_Camera Struct Reference

Stateful camera representation. More...

#include <sbgl_camera.h>

Collaboration diagram for sbgl_Camera:

Data Fields

sbgl_CameraType type
 
sbgl_Vec3 position
 
sbgl_Vec3 target
 
sbgl_Vec3 up
 
float fov_y
 
float aspect
 
float near_plane
 
float far_plane
 
float ortho_left
 
float ortho_right
 
float ortho_bottom
 
float ortho_top
 

Detailed Description

Stateful camera representation.

Stores the necessary parameters to construct view and projection matrices. The orientation is typically managed via position, target, and up vectors to generate a look-at matrix.

Definition at line 27 of file sbgl_camera.h.

Field Documentation

◆ aspect

float sbgl_Camera::aspect

Definition at line 35 of file sbgl_camera.h.

◆ far_plane

float sbgl_Camera::far_plane

Definition at line 37 of file sbgl_camera.h.

◆ fov_y

float sbgl_Camera::fov_y

Definition at line 34 of file sbgl_camera.h.

◆ near_plane

float sbgl_Camera::near_plane

Definition at line 36 of file sbgl_camera.h.

◆ ortho_bottom

float sbgl_Camera::ortho_bottom

Definition at line 41 of file sbgl_camera.h.

◆ ortho_left

float sbgl_Camera::ortho_left

Definition at line 39 of file sbgl_camera.h.

◆ ortho_right

float sbgl_Camera::ortho_right

Definition at line 40 of file sbgl_camera.h.

◆ ortho_top

float sbgl_Camera::ortho_top

Definition at line 42 of file sbgl_camera.h.

◆ position

sbgl_Vec3 sbgl_Camera::position

Definition at line 30 of file sbgl_camera.h.

◆ target

sbgl_Vec3 sbgl_Camera::target

Definition at line 31 of file sbgl_camera.h.

◆ type

sbgl_CameraType sbgl_Camera::type

Definition at line 28 of file sbgl_camera.h.

◆ up

sbgl_Vec3 sbgl_Camera::up

Definition at line 32 of file sbgl_camera.h.


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