Refactored.

This commit is contained in:
2021-04-22 13:55:34 +10:00
parent 5897c1045d
commit ea3e502524
62 changed files with 1033 additions and 1391 deletions

View File

@ -4,31 +4,7 @@
// https://opensource.org/licenses/MIT
#pragma once
#include <cglm/cglm.h>
#include <malloc.h>
/** The math for the camera is stored here. */
typedef struct {
/** View Matrix (Where the camera looks) */
mat4 view;
/** Projection Matrix (How the camera looks) */
mat4 projection;
} camera_t;
/**
* Create a new camera instance.
*
* @return A new camera instance.
*/
camera_t * cameraCreate();
/**
* Cleanup a previously created camera
*
* @param camera Camera instance to dispose.
*/
void cameraDispose(camera_t *camera);
#include <dawn/dawn.h>
/**
* Make a camera look at a position in world space while itself being positioned