Move camera initialisation into seperate module
This commit is contained in:
1 parent
47fcd8a11e
commit
f4ffea57fd
4 files changed
+57
-28
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user