Vulkan spec
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// vim:fileencoding=utf-8:foldmethod=marker
|
||||
|
||||
#include "cglm/vec3.h"
|
||||
#define CGLM_DEFINE_PRINTS
|
||||
#define CGLM_FORCE_DEPTH_ZERO_TO_ONE
|
||||
#include "cglm/cglm.h"
|
||||
|
||||
int main(void) {
|
||||
vec3 eye = {-3.0f, 2.0f, -4.0f};
|
||||
vec3 center = {0.0f, 0.0f, 0.0f};
|
||||
vec3 up = {0.0f, 1.0f, 0.0f};
|
||||
mat4 view;
|
||||
mat4 proj;
|
||||
glm_lookat(eye, center, up, view);
|
||||
glm_perspective(glm_rad(45.0f), 1600.0f / 1200.0f, 0.1f, 10.0f, proj);
|
||||
glm_mat4_print(view, stdout);
|
||||
glm_mat4_print(proj, stdout);
|
||||
}
|
||||
Reference in New Issue
Block a user