aboutsummaryrefslogtreecommitdiff
path: root/minilibx/mlx.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-03-04 11:09:50 +0100
committerCharles <sircharlesaze@gmail.com>2020-03-04 11:11:24 +0100
commit9bbc949c432f6a981fdac5aec4b36edd2f4dcdba (patch)
treeb5cf3c8591267d3bc1f9fca800c1a048bd5b6004 /minilibx/mlx.h
parentdab9efb7b745fe884fb72017591dce95978c19c4 (diff)
downloadfractol-linux.tar.gz
fractol-linux.tar.bz2
fractol-linux.zip
Linux branch with minilibx_linux(https://framagit.org/ggenois/minilibx_linux)linux
Diffstat (limited to 'minilibx/mlx.h')
-rwxr-xr-x[-rw-r--r--]minilibx/mlx.h38
1 files changed, 9 insertions, 29 deletions
diff --git a/minilibx/mlx.h b/minilibx/mlx.h
index e75b4af..a2cc7e5 100644..100755
--- a/minilibx/mlx.h
+++ b/minilibx/mlx.h
@@ -2,10 +2,10 @@
** mlx.h for MinilibX in
**
** Made by Charlie Root
-** Login <ol@staff.42.fr>
+** Login <ol@epitech.net>
**
** Started on Mon Jul 31 16:37:50 2000 Charlie Root
-** Last update Tue Oct 01 16:23:28 2014 Olivier Crouzet
+** Last update Tue May 15 16:23:28 2007 Olivier Crouzet
*/
/*
@@ -16,29 +16,14 @@
/*
** FR msg - FR msg - FR msg
**
-** MacOSX
-** La MinilibX utilise 2 frameworks Mac : OpenGL et AppKit
-** qu'il faut ajouter a la compilation :
-** -framework OpenGL -framework AppKit
-**
-** UNIX / Linux
** La MinilibX utilise 2 librairies supplementaires qu'il
** est necessaire de rajouter a la compilation :
** -lmlx -lXext -lX11
**
** La MinilibX permet le chargement des images de type Xpm.
** Notez que cette implementation est incomplete.
-**
-** Il y a des differences entre X11 et MacOS.
-** les numeros des touches ne sont pas les memes,
-** les numeros des boutons souris ne sont pas les memes.
-** Egalement l'expose est gere differemment, et sous MacOS
-** il est preferable d'entrer le plus tot possible dans mlx_loop,
-** il est normal que les fenetres n'apparaissent pas avant mlx_loop
-** (ou bien forcez avec mlx_do_sync mais c'est pas genial).
-** Sous MacOS, l'octet Alpha est pris en compte dans toutes les
-** images, et represente la transparence et non l'opacite comme
-** c'est normalement le cas.
+** Merci de communiquer tout probleme de chargement d'image
+** de ce type.
*/
@@ -58,7 +43,7 @@ void *mlx_init();
** Basic actions
*/
-void *mlx_new_window(void *mlx_ptr, int size_x, int size_y, char *title);
+void *mlx_new_window(void *mlx_ptr, int size_x, int size_y, char const *title);
/*
** return void *0 if failed
*/
@@ -78,12 +63,14 @@ int mlx_pixel_put(void *mlx_ptr, void *win_ptr, int x, int y, int color);
void *mlx_new_image(void *mlx_ptr,int width,int height);
/*
** return void *0 if failed
+** obsolete : image2 data is stored using bit planes
+** void *mlx_new_image2(void *mlx_ptr,int width,int height);
*/
char *mlx_get_data_addr(void *img_ptr, int *bits_per_pixel,
int *size_line, int *endian);
/*
** endian : 0 = sever X is little endian, 1 = big endian
-** endian : useless on macos, client and graphical framework have the same 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);
@@ -121,10 +108,8 @@ int mlx_string_put(void *mlx_ptr, void *win_ptr, int x, int y, int color,
char *string);
void *mlx_xpm_to_image(void *mlx_ptr, char **xpm_data,
int *width, int *height);
-void *mlx_xpm_file_to_image(void *mlx_ptr, char *filename,
+void *mlx_xpm_file_to_image(void *mlx_ptr, char const *filename,
int *width, int *height);
-void *mlx_png_file_to_image(void *mlx_ptr, char *file, int *width, int *height);
-
int mlx_destroy_window(void *mlx_ptr, void *win_ptr);
int mlx_destroy_image(void *mlx_ptr, void *img_ptr);
@@ -137,11 +122,6 @@ int mlx_destroy_image(void *mlx_ptr, void *img_ptr);
int mlx_hook(void *win_ptr, int x_event, int x_mask,
int (*funct)(), void *param);
-int mlx_mouse_hide();
-int mlx_mouse_show();
-int mlx_mouse_move(void *win_ptr, int x, int y);
-int mlx_mouse_get_pos(void *win_ptr, int *x, int *y);
-
int mlx_do_key_autorepeatoff(void *mlx_ptr);
int mlx_do_key_autorepeaton(void *mlx_ptr);
int mlx_do_sync(void *mlx_ptr);