/* * Copyright (C) 2018 Tomasz Kramkowski * SPDX-License-Identifier: MIT */ #ifndef CAMERA_H #define CAMERA_H #include "linmath.h" #define CAM_UP ((vec3){ 0.0, 1.0, 0.0 }) struct camera { vec3 pos; float pitch; float yaw; }; void camera_clamp(struct camera *cam); void camera_dir(vec3 out, struct camera *cam); void camera_lookat(mat4x4 out, struct camera *cam); #endif // CAMERA_H