This commit is contained in:
2025-10-01 17:59:41 -05:00
parent a734ecaa10
commit 83243ba32f
10 changed files with 149 additions and 8 deletions

View File

@@ -59,10 +59,20 @@ typedef struct {
} camera_t;
/**
* Initializes a camera to default values.
* Initializes a camera to default values. This calls cameraInitPerspective.
*/
void cameraInit(camera_t *camera);
/**
* Initializes a camera for perspective projection.
*/
void cameraInitPerspective(camera_t *camera);
/**
* Initializes a camera for orthographic projection.
*/
void cameraInitOrthographic(camera_t *camera);
/**
* Pushes the camera's view matrix onto the matrix stack.
*