blob: 7ad821dda3bde2ecb783b1b9b76b5184cc9670b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* sprite.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kdx <kdx @student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/09 07:15:24 by kdx #+# #+# */
/* Updated: 2022/10/09 07:47:13 by kdx ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef SPRITE_H
# define SPRITE_H
# include "sily.h"
typedef struct s_sprite
{
void *img;
int width;
int height;
} t_sprite;
t_sprite *sprite_load(t_sily *sily, char *path, int width, int height);
void sprite_destroy(t_sily *sily, t_sprite *sprite);
void sprite_draw(t_sily *sily, t_sprite *sprite, int x, int y);
#endif
|