22 lines
366 B
C
22 lines
366 B
C
#ifndef CAMERA_H
|
|
#define CAMERA_H
|
|
|
|
#include "cglm/struct/vec3.h"
|
|
|
|
typedef struct
|
|
{
|
|
vec3s position;
|
|
versors rotation;
|
|
|
|
float focal_length;
|
|
float size_x;
|
|
float size_y;
|
|
|
|
float fov_x;
|
|
float fov_y;
|
|
} camera_t;
|
|
|
|
camera_t camera_create(vec3s position, versors rotation, float focal_length, float size_x, float aspect_ratio);
|
|
|
|
#endif // CAMERA_H
|