Projection equation and first cube

This commit is contained in:
abdelrahman committed 2024-06-29 17:11:31 +01:00
1 parent 6dc609be14
commit f922980232
7 files changed
+107 -19

No files matched your search

+15
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