mirror of
https://github.com/bgiraudr/Adoranda.git
synced 2024-06-07 05:51:24 +02:00
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,
|
|
};
|
|
}
|