Files
SimpleRayTracing/header/Rendering/Camera.h
2025-04-15 11:29:46 +09:00

26 lines
456 B
C

#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