Skip to content
Snippets Groups Projects
Forked from FOURREAUX Mathias / Shooter
Up to date with the upstream repository.
effets.h 423 B
#include <SDL2/SDL.h>
#include <stdio.h>

typedef struct s_Effet Effet, s_Effet;
struct s_Effet
{
    SDL_Rect pos;
    SDL_Rect srcrect;
    SDL_Texture *image;
    float angle;
    int yMax;
    int id;
};

Effet nouvel_effet_bloodHit(SDL_Texture **sprites, SDL_Rect pos, int angle);
Effet nouvel_effet_bloodSplatter(SDL_Texture **sprites, SDL_Rect pos, int angle);
void afficher_effet(SDL_Renderer *renderer, Effet e);