stdme os revamped

This commit is contained in:
Maieul BOYER 2024-08-01 07:26:32 +02:00
parent f29e4ad7ef
commit 2c9a3ee834
No known key found for this signature in database
11 changed files with 285 additions and 274 deletions

28
stdme/vendor/mlx.h vendored
View file

@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* mlx.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ol <ol@epitech.net> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2000/08/01 16:37:50 by ol #+# #+# */
/* Updated: 2024/08/01 06:44:00 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
/*
** mlx.h for MinilibX in
**
@ -44,7 +56,9 @@ void *mlx_new_window(void *mlx_ptr, int size_x, int size_y, char *title);
** return void *0 if failed
*/
int mlx_clear_window(void *mlx_ptr, void *win_ptr);
int mlx_pixel_put(void *mlx_ptr, void *win_ptr, int x, int y, int color);
//int mlx_pixel_put(void *mlx_ptr, void *win_ptr, int x, int y, int color);
int mlx_pixel_put(void *mlx_ptr, void *win_ptr, ...);
/*
** origin for x & y is top left corner of the window
** y down is positive
@ -67,8 +81,10 @@ char *mlx_get_data_addr(void *img_ptr, int *bits_per_pixel, int *size_line,
** endian : 0 = sever X is little endian, 1 = big endian
** for mlx_new_image2, 2nd arg of mlx_get_data_addr is number_of_planes
*/
int mlx_put_image_to_window(void *mlx_ptr, void *win_ptr, void *img_ptr,
int x, int y);
//int mlx_put_image_to_window(void *mlx_ptr, void *win_ptr, void *img_ptr,
// int x, int y);
int mlx_put_image_to_window(void *mlx_ptr, void *win_ptr, void *img_ptr, \
...);
int mlx_get_color_value(void *mlx_ptr, int color);
/*
@ -97,8 +113,10 @@ int mlx_loop_end(void *mlx_ptr);
** Usually asked...
*/
int mlx_string_put(void *mlx_ptr, void *win_ptr, int x, int y, int color,
char *string);
//int mlx_string_put(void *mlx_ptr, void *win_ptr, int x, int y, int color,
// char *string);
int mlx_string_put(void *mlx_ptr, void *win_ptr, ...);
void mlx_set_font(void *mlx_ptr, void *win_ptr, char *name);
void *mlx_xpm_to_image(void *mlx_ptr, char **xpm_data, int *width,
int *height);