diff options
| author | Dominik Kaiser | 2024-05-09 13:58:50 +0200 |
|---|---|---|
| committer | Dominik Kaiser | 2024-05-09 13:58:50 +0200 |
| commit | 7b7f18ebf7636b656788d8f0bfea5ab2662fd8dc (patch) | |
| tree | 92cffacb52f96bfc3a2e52419d7ae3b3234e37b7 /mlx/mlx_opengl.h | |
| parent | 0673f8b572b575bd5f3f9297cff615d61494dcdf (diff) | |
| download | so_long-7b7f18ebf7636b656788d8f0bfea5ab2662fd8dc.tar.gz so_long-7b7f18ebf7636b656788d8f0bfea5ab2662fd8dc.zip | |
Add MiniLibX
Diffstat (limited to 'mlx/mlx_opengl.h')
| -rw-r--r-- | mlx/mlx_opengl.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mlx/mlx_opengl.h b/mlx/mlx_opengl.h new file mode 100644 index 0000000..bb39267 --- /dev/null +++ b/mlx/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 */ |
