Projection equation and first cube
This commit is contained in:
15
include/camera/camera.h
Normal file
15
include/camera/camera.h
Normal 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
|
||||
Reference in New Issue
Block a user