From 9b431298d0346ce2a181771e9cc78b83c97737f1 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 23 Jan 2020 15:40:55 +0100 Subject: Renamed minilibx to mlx --- libmlx/mlx_opengl.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 libmlx/mlx_opengl.h (limited to 'libmlx/mlx_opengl.h') diff --git a/libmlx/mlx_opengl.h b/libmlx/mlx_opengl.h new file mode 100644 index 0000000..bb39267 --- /dev/null +++ b/libmlx/mlx_opengl.h @@ -0,0 +1,21 @@ +/* +** +** mlx_opengl.h +** +** public include, use it after mlx.h +** designed only for minilibx_macos +** +*/ + +void *mlx_new_opengl_window(void *mlx_ptr, int size_x, int size_y, char *title); + +/* create an opengl window. put_image & pixel_put & string_put do not work there. */ + +int mlx_opengl_swap_buffers(void *win_ptr); + +/* the created window is double buffered. Use this funct to swap buffers */ +/* this funct will call glFlush(). Don't call it. */ + +int mlx_opengl_window_set_context(void *win_ptr); + +/* in case multiple opengl windows are present, change opengl active context */ -- cgit v1.2.3