29 lines
854 B
C
29 lines
854 B
C
#include "types.h"
|
|
|
|
#ifndef CONSTANTS_H
|
|
#define CONSTANTS_H
|
|
|
|
static const unsigned int GLFW_BACKEND_ANY = 0;
|
|
static const unsigned int GLFW_BACKEND_X11 = 1;
|
|
static const unsigned int GLFW_BACKEND_WAYLAND = 2;
|
|
static const unsigned int GLFW_BACKEND_COCOA = 3;
|
|
static const unsigned int GLFW_BACKEND_WIN32 = 4;
|
|
|
|
static const char *vertex_shader_text =
|
|
"#version 460\n"
|
|
"const mat4 mvp = "
|
|
"{{2.,0.,0.,0.},{0.,2.,0.,0.},{0.,0.,2.,0.},{-1.,-1.,1.,1.}};\n"
|
|
"in vec2 vPos;\n"
|
|
"out vec2 vUV;\n"
|
|
"void main()\n"
|
|
"{\n"
|
|
" gl_Position = mvp * vec4(vPos, 0.0, 1.0);\n"
|
|
" vUV = vPos;\n"
|
|
"}";
|
|
|
|
static const Vertex vertices[6] = {{{0.0f, 0.0f}}, {{0.0f, 1.0f}},
|
|
{{1.0f, 1.0f}}, {{0.0f, 0.0f}},
|
|
{{1.0f, 1.0f}}, {{1.0f, 0.0f}}};
|
|
|
|
#endif /* CONSTANTS_H */
|