mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 14:43:34 +00:00
fixing compatibility, workign on renderer
This commit is contained in:
@@ -6,26 +6,34 @@
|
||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/10/04 16:56:35 by maldavid #+# #+# */
|
||||
/* Updated: 2022/10/05 18:42:22 by maldavid ### ########.fr */
|
||||
/* Updated: 2022/12/18 04:03:37 by maldavid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef __MICRO_LIB_X_H__
|
||||
#define __MICRO_LIB_X_H__
|
||||
#ifndef __MACRO_LIB_X_H__
|
||||
#define __MACRO_LIB_X_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void mlx_init();
|
||||
void mlx_new_window(int w, int h, const char* title);
|
||||
int mlx_loop();
|
||||
void* mlx_init();
|
||||
void* mlx_new_window(void* mlx, int w, int h, const char* title);
|
||||
|
||||
int mlx_loop_hook(void* mlx, int (*f)(void*), void* param);
|
||||
int mlx_loop(void* mlx);
|
||||
int mlx_loop_end(void* mlx);
|
||||
|
||||
int mlx_mouse_show();
|
||||
int mlx_mouse_hide();
|
||||
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_pixel_put(void* mlx, void* win_ptr, int x, int y, int color);
|
||||
|
||||
int mlx_destroy_window(void* mlx, void* win_ptr);
|
||||
int mlx_destroy_display(void* mlx);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user