#ifndef __CAMERA__ #include #include "linear.h" enum CameraMovement { CAMDIR_FORWARD, CAMDIR_BACKWARD, CAMDIR_LEFT, CAMDIR_RIGHT }; struct Camera { Vec3 position, front, up; float yaw; float pitch; float movementSpeed; float mouseSensivity; }; Mat4 cameraGetViewMatrix(struct Camera camera); void cameraProcessKeyboard(struct Camera *camera, enum CameraMovement direction, float deltaTime); void cameraProcessMouseMovement(struct Camera *camera, float xoffset, float yoffset); #endif