diff options
author | amy <[email protected]> | 2023-04-17 11:02:58 +0000 |
---|---|---|
committer | amy <[email protected]> | 2023-04-17 11:02:58 +0000 |
commit | eeb33f80fd96f04b4d19a11dc5fc0a37534f469e (patch) | |
tree | 9105add0c71507c1d4bc95f38bdde8ea86239243 /src/glfww.h | |
parent | d769c253e8a6ddc67cf8424da2017d309e93f11b (diff) |
idk better rendering
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*); |