mirror of https://github.com/bgiraudr/Adoranda.git
11 lines
191 B
C
11 lines
191 B
C
|
#include "vec2.h"
|
||
|
#include "camera.h"
|
||
|
|
||
|
struct Camera camera_new(struct Vec2f *target) {
|
||
|
return (struct Camera) {
|
||
|
.pos = *target,
|
||
|
.offset = vec2f_vec2(*target),
|
||
|
.target = target,
|
||
|
};
|
||
|
}
|