The structure of type t_camera contains the necessary information for camera configuration, rendering and transformation. More...
#include <camera.h>
Data Fields | |
float | hsize |
float | vsize |
float | field_of_view |
float | half_width |
float | half_height |
float | pixel_size |
t_matrix | transform |
t_matrix | inverse |
t_matrix | transpose |
The structure of type t_camera contains the necessary information for camera configuration, rendering and transformation.
ABOUT THE HEADER CAMERA.H
This header contains all functions regarding camera implementation.
hsize | Stores the horizontal size (in pixels). |
vsize | Stores the vertical size (in pixels). |
field_of_view | This field stores angle that describes how much the camera can see. When the field of view is small, the view will be "zoomed in", magnifying a smaller area of the scene. |
half_width | Stores the camera's half hsize value. |
half_height | Stores the camera's half vsize value. |
pixel_size | Stores the camera's pixel size calculated from half_width and hsize values. |
transform | Stores the transformation matrix for the camera. |
inverse | Stores the inverse matrix for the camera. |
transpose | Stores the transpose matrix for the camera. |