Move camera initialisation into seperate module

This commit is contained in:
2025-09-23 15:36:08 +01:00
parent 47fcd8a11e
commit f4ffea57fd
4 changed files with 57 additions and 28 deletions

17
include/camera.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef CAMERA_H
#define CAMERA_H
#include "vec3.h"
#include <stdint.h>
typedef struct {
vec3_t pos;
vec3_t pix_origin, x_step, y_step;
} camera_t;
camera_t camera_init(
vec3_t pos, double focal_len, double viewport_height, uint32_t img_width,
uint32_t img_height);
#endif