22 lines
379 B
C
22 lines
379 B
C
|
#ifndef OTHELLO_TEXT_H
|
||
|
#define OTHELLO_TEXT_H 1
|
||
|
|
||
|
#include <SDL_ttf.h>
|
||
|
|
||
|
#include "plateau.h"
|
||
|
|
||
|
TTF_Font *font = NULL;
|
||
|
SDL_Surface *surface = NULL;
|
||
|
SDL_Texture *texture = NULL;
|
||
|
|
||
|
// Charge la police d'écriture
|
||
|
void load_font(int size_font);
|
||
|
|
||
|
// Ecrit du texte à une certaine position
|
||
|
void write_text(Pos origin, char *text);
|
||
|
|
||
|
// Décharge la police
|
||
|
void unload_font(void);
|
||
|
|
||
|
#endif
|