aboutsummaryrefslogtreecommitdiff
path: root/minilibx/mlx_opengl.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-14 11:22:21 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-15 06:01:51 +0100
commit0433beffa8c5caae0503082b9776e1035c44f94f (patch)
tree45b94ba359fef2dbca65a2f317d9cc09a4b521fe /minilibx/mlx_opengl.h
parentb71e91e052a2884626c297cb014cbe2b63131c80 (diff)
downloadcub3d-0433beffa8c5caae0503082b9776e1035c44f94f.tar.gz
cub3d-0433beffa8c5caae0503082b9776e1035c44f94f.tar.bz2
cub3d-0433beffa8c5caae0503082b9776e1035c44f94f.zip
Added miniLibX and basic .cub generator
Diffstat (limited to 'minilibx/mlx_opengl.h')
-rw-r--r--minilibx/mlx_opengl.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/minilibx/mlx_opengl.h b/minilibx/mlx_opengl.h
new file mode 100644
index 0000000..bb39267
--- /dev/null
+++ b/minilibx/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 */