Refactored.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user