diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 15:18:45 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 15:18:45 +0100 |
commit | a6acf55cddec28eebf8d0e1c44603270d591cdee (patch) | |
tree | dff9c6d1075c05ee89631021e7211343e6949b28 /minilibx/mlx_opengl.h | |
parent | Deleted libx (diff) | |
download | 42-cub3d-a6acf55cddec28eebf8d0e1c44603270d591cdee.tar.gz 42-cub3d-a6acf55cddec28eebf8d0e1c44603270d591cdee.tar.bz2 42-cub3d-a6acf55cddec28eebf8d0e1c44603270d591cdee.tar.xz 42-cub3d-a6acf55cddec28eebf8d0e1c44603270d591cdee.tar.zst 42-cub3d-a6acf55cddec28eebf8d0e1c44603270d591cdee.zip |
Added back minilibx, added gitignore
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 */ |