-
vautrin33u authoredvautrin33u authored
fonctions_SDL.h 615 B
/**
* \file fonctions_SDL.h
* \brief header des fonctions SDL
* \author Guillaume Vautrin
* \version 1.0
*/
#ifndef FONCTIONS_SDL_H
#define FONCTIONS_SDL_H
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
SDL_Texture* charger_image (const char* nomfichier, SDL_Renderer* renderer);
SDL_Texture* charger_image_transparente(const char* nomfichier, SDL_Renderer* renderer, Uint8 r, Uint8 g, Uint8 b) ;
SDL_Texture* charger_texte (const char* message, SDL_Renderer* renderer, TTF_Font *font, SDL_Color color);
void render_texte(SDL_Renderer *renderer, int x, int y, int w, int h, SDL_Texture* texte);
#endif