diff libmlk-core/core/sprite.h @ 298:196264679079

misc: remove usage of bool
author David Demelier <markand@malikania.fr>
date Wed, 10 Mar 2021 18:49:08 +0100
parents 08ab73b32832
children d01e83210ca2
line wrap: on
line diff
--- a/libmlk-core/core/sprite.h	Wed Mar 10 18:49:00 2021 +0100
+++ b/libmlk-core/core/sprite.h	Wed Mar 10 18:49:08 2021 +0100
@@ -19,8 +19,6 @@
 #ifndef MOLKO_CORE_SPRITE_H
 #define MOLKO_CORE_SPRITE_H
 
-#include <stdbool.h>
-
 #include "core.h"
 
 struct texture;
@@ -36,25 +34,22 @@
 CORE_BEGIN_DECLS
 
 void
-sprite_init(struct sprite *sprite,
-            struct texture *tex,
-            unsigned int cellw,
-            unsigned int cellh);
+sprite_init(struct sprite *, struct texture *, unsigned int, unsigned int);
 
-bool
-sprite_ok(const struct sprite *sprite);
+int
+sprite_ok(const struct sprite *);
+
+int
+sprite_draw(const struct sprite *, unsigned int, unsigned int, int, int);
 
-bool
-sprite_draw(const struct sprite *sprite, unsigned int r, unsigned int c, int x, int y);
-
-bool
-sprite_scale(const struct sprite *sprite,
-             unsigned int r,
-             unsigned int c,
-             int x,
-             int y,
-             unsigned int w,
-             unsigned int h);
+int
+sprite_scale(const struct sprite *,
+             unsigned int,
+             unsigned int,
+             int,
+             int,
+             unsigned int,
+             unsigned int);
 
 CORE_END_DECLS