diff options
Diffstat (limited to 'src/glfww.h')
-rw-r--r-- | src/glfww.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glfww.h b/src/glfww.h index fd784c2..fb0eb81 100644 --- a/src/glfww.h +++ b/src/glfww.h @@ -1,17 +1,21 @@ #include <stdio.h> #include <GLFW/glfw3.h> +#include <GL/gl.h> #include "util.h" #include <unistd.h> #include <stdlib.h> #include <math.h> #ifndef __glfww_ #define __glfww_ + #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; GLFWwindow* glfw_init(); #define glfw_load(w) glfwSwapBuffers(w); void glfw_loop(GLFWwindow*window); +int get_h(); +int get_w(); void glfw_pixel_partial(GLFWwindow*wi,int x, int y); void glfw_clear(GLFWwindow*w); void refresh_size(GLFWwindow*); |