Initial upload
This commit is contained in:
25
header/Rendering/Camera.h
Normal file
25
header/Rendering/Camera.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef CAMERA_H
|
||||
#define CAMERA_H
|
||||
|
||||
#include "cglm/struct/vec3.h"
|
||||
#include "cglm/types-struct.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
vec3s position;
|
||||
vec3s forward;
|
||||
vec3s up;
|
||||
vec3s right;
|
||||
|
||||
float focal_length;
|
||||
float size_x;
|
||||
float size_y;
|
||||
float aspect_ratio;
|
||||
|
||||
float fov_x;
|
||||
float fov_y;
|
||||
} camera_t;
|
||||
|
||||
camera_t camera_create(vec3s position, vec3s forward, vec3s up, float focal_length, float size_x, float aspect_ratio);
|
||||
|
||||
#endif // CAMERA_H
|
||||
Reference in New Issue
Block a user