Added True Type fonts

This commit is contained in:
2021-05-23 10:53:00 -07:00
parent ec13de8b3e
commit cafcf22326
36 changed files with 575 additions and 167 deletions

View File

@ -8,13 +8,14 @@
#include "camera.h"
void cameraLookAt(camera_t *camera,
float x, float y, float z, float targetX, float targetY, float targetZ
float x, float y, float z,
float targetX, float targetY, float targetZ
) {
glm_mat4_identity(camera->view);
glm_lookat(
(vec3){ x, y, z },
(vec3){ targetX, targetY, targetZ },
(vec3){ 0, 1, 0 },
(vec3){ 0,1,0 },
camera->view
);
}
@ -27,7 +28,7 @@ void cameraLook(camera_t *camera,
glm_look(
(vec3){ x, y, z },
(vec3){ pitch, yaw, roll },
(vec3){ 0, 1, 0 },
(vec3){ 0,1,0 },
camera->view
);
}