diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-11-15 15:18:38 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-11-15 15:18:38 +0100 |
| commit | a4fd7a681376899526cfe38c0449f90feb0f582e (patch) | |
| tree | 1cf4a074b36903a025652a6ef1ae55e280b6418c /miniLibX/mlx_opengl.h | |
| parent | 9e1f4605408821b74c9e74216fbf995d29a3921c (diff) | |
| download | cub3d-a4fd7a681376899526cfe38c0449f90feb0f582e.tar.gz cub3d-a4fd7a681376899526cfe38c0449f90feb0f582e.tar.bz2 cub3d-a4fd7a681376899526cfe38c0449f90feb0f582e.zip | |
Added miniLibX man pages
Diffstat (limited to 'miniLibX/mlx_opengl.h')
| -rw-r--r-- | miniLibX/mlx_opengl.h | 21 |
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 */ |
