Adoranda/src/camera.c

11 lines
191 B
C
Raw Normal View History

2021-08-25 01:01:43 +02:00
#include "vec2.h"
#include "camera.h"
struct Camera camera_new(struct Vec2f *target) {
return (struct Camera) {
.pos = *target,
.offset = vec2f_vec2(*target),
.target = target,
};
}