Added True Type fonts
This commit is contained in:
@ -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
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user