Projection equation and first cube

This commit is contained in:
2024-06-29 17:11:31 +01:00
parent 6dc609be14
commit f922980232
7 changed files with 107 additions and 19 deletions

15
include/camera/camera.h Normal file
View File

@@ -0,0 +1,15 @@
#ifndef CAMERA_H
#define CAMERA_H
#include "vector/vec.h"
#include "window/window.h"
typedef struct {
vec3f_t position;
vec3f_t rotation;
} camera_t;
vec2i_t project_point(vec3f_t point, const window_t *wnd,
const camera_t *camera, vec3f_t viewport);
#endif // !CAMERA_H