This repository has been archived on 2022-12-11. You can view files and clone it, but cannot push or open issues or pull requests.
Othello/includes/text.h

21 lines
372 B
C
Raw Normal View History

2022-11-15 13:49:40 +01:00
#ifndef OTHELLO_TEXT_H
#define OTHELLO_TEXT_H 1
#include <SDL_ttf.h>
#include "plateau.h"
2022-11-15 14:17:54 +01:00
static TTF_Font *font = NULL;
static SDL_Surface *surface = NULL;
2022-11-15 13:49:40 +01:00
// Charge la police d'écriture
2022-11-15 14:17:54 +01:00
void load_font(int quality);
2022-11-15 13:49:40 +01:00
// Ecrit du texte à une certaine position
2022-11-15 14:17:54 +01:00
void write_text(GLfloat x, GLfloat y, char *text);
2022-11-15 13:49:40 +01:00
// Décharge la police
void unload_font(void);
#endif