2024-10-05 00:56:13 +02:00
|
|
|
// Voir README.md pour license précise, par Fcalva 2023-2024 et est sous GPLv3
|
|
|
|
|
|
|
|
#ifndef sprites__h
|
|
|
|
#define sprites__h
|
|
|
|
|
|
|
|
#include "utils.h"
|
2024-10-05 21:48:42 +02:00
|
|
|
#include "fixed.h"
|
|
|
|
#include "game.h"
|
2024-10-05 00:56:13 +02:00
|
|
|
|
|
|
|
#include <gint/display.h>
|
|
|
|
|
2024-10-05 21:48:42 +02:00
|
|
|
typedef struct {
|
|
|
|
V2d pos;
|
|
|
|
int tex;
|
|
|
|
} Sprite;
|
|
|
|
|
2024-10-08 13:16:05 +02:00
|
|
|
//Adds the sprite reference to the internal sprite index
|
|
|
|
// /!\ This sprite reference may be used at every call of draw_sprites
|
|
|
|
void add_sprite(Sprite *sprite);
|
|
|
|
|
|
|
|
void clear_sprites();
|
|
|
|
|
|
|
|
void draw_sprites(bopti_image_t *tex_index[], RcActor *player);
|
2024-10-05 00:56:13 +02:00
|
|
|
|
|
|
|
#endif
|