17 lines
337 B
C
17 lines
337 B
C
#ifndef OTHELLO_TEXT_H
|
|
#define OTHELLO_TEXT_H 1
|
|
|
|
#include <SDL_ttf.h>
|
|
|
|
#include "plateau.h"
|
|
|
|
// Charge la police d'écriture
|
|
TTF_Font *load_font(int quality);
|
|
|
|
// Écrit du texte à une certaine position
|
|
void write_text(TTF_Font *font, GLfloat x, GLfloat y, char *text);
|
|
|
|
// Décharge la police
|
|
void unload_font(TTF_Font *font);
|
|
|
|
#endif
|