mirror of
https://github.com/recp/cglm.git
synced 2025-12-26 02:25:02 +00:00
add missing definitions, fix initizlizing vector
This commit is contained in:
@@ -10,10 +10,11 @@
|
||||
void
|
||||
test_camera_lookat(void **state) {
|
||||
mat4 view1, view2;
|
||||
vec3 eye = {0.024f, 14.6f, 67.04f},
|
||||
vec3 center,
|
||||
eye = {0.024f, 14.6f, 67.04f},
|
||||
dir = {0.0f, 0.0f, -1.0f},
|
||||
up = GLM_YUP,
|
||||
center;
|
||||
up = {0.0f, 1.0f, 0.0f}
|
||||
;
|
||||
|
||||
glm_vec_add(eye, dir, center);
|
||||
glm_lookat(eye, center, up, view1);
|
||||
|
||||
Reference in New Issue
Block a user