Added some transitions.

This commit is contained in:
2021-09-26 16:45:27 -07:00
parent eb9c45826a
commit 32afdfa17f
17 changed files with 406 additions and 87 deletions

View File

@ -17,6 +17,10 @@ typedef struct {
matrix_t projection;
} camera_t;
typedef struct {
float x, y, z, lookX, lookY, lookZ;
} cameralookat_t;
/**
* Make a camera look at a position in world space while itself being positioned
* within world space.
@ -34,6 +38,14 @@ void cameraLookAt(camera_t *camera,
float targetX, float targetY, float targetZ
);
/**
* Shorthand for look at that uses the look struct.
*
* @param camera Camera to position.
* @param look Look vectors.
*/
void cameraLookAtStruct(camera_t *camera, cameralookat_t look);
/**
* Make a camera look in a direction based on a rotation direction.
*