aboutsummaryrefslogtreecommitdiff
path: root/src/glfww.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/glfww.h')
-rw-r--r--src/glfww.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glfww.h b/src/glfww.h
index de8f6d9..63952ca 100644
--- a/src/glfww.h
+++ b/src/glfww.h
@@ -12,6 +12,7 @@
#define win_clean() glfwTerminate();
#define ab_to_vp(x,y,w,h,x1,y1) float x = 2 * ((float)x1/(w)) -1;\
float y = 2 * ((float)y1/(h)) -1;
+#define vp_to_ab(w,x1) ((float)x1 +1.0/2)*w
GLFWwindow* glfw_init();
#define glfw_load(w) glfwSwapBuffers(w);
void glfw_loop(GLFWwindow*window);