mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 22:53:34 +00:00
working textures
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/10/04 17:35:20 by maldavid #+# #+# */
|
||||
/* Updated: 2022/12/18 22:24:25 by maldavid ### ########.fr */
|
||||
/* Updated: 2023/04/01 15:32:57 by maldavid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -58,10 +58,29 @@ extern "C"
|
||||
|
||||
int mlx_mouse_move(void* win_ptr, int x, int y)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int mlx_mouse_get_pos(void* win_ptr, int* x, int* y)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int mlx_put_image_to_window(void* mlx_ptr, void* win_ptr, void* img_ptr, int x, int y)
|
||||
{
|
||||
static_cast<mlx::core::Application*>(mlx_ptr)->texture_put(win_ptr, img_ptr, x, y);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int mlx_destroy_image(void* mlx_ptr, void* img_ptr)
|
||||
{
|
||||
static_cast<mlx::core::Application*>(mlx_ptr)->destroy_texture(img_ptr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void* mlx_png_file_to_image(void* mlx_ptr, char* filename, int* width, int* height)
|
||||
{
|
||||
return static_cast<mlx::core::Application*>(mlx_ptr)->new_stb_texture(filename, width, height);
|
||||
}
|
||||
|
||||
int mlx_pixel_put(void* mlx, void* win_ptr, int x, int y, int color)
|
||||
|
||||
Reference in New Issue
Block a user