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

18 lines
337 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"
// Charge la police d'écriture
2022-11-15 15:09:28 +01:00
TTF_Font *load_font(int quality);
2022-11-15 13:49:40 +01:00
2022-11-15 15:09:28 +01:00
// Écrit du texte à une certaine position
void write_text(TTF_Font *font, GLfloat x, GLfloat y, char *text);
2022-11-15 13:49:40 +01:00
// Décharge la police
2022-11-15 15:09:28 +01:00
void unload_font(TTF_Font *font);
2022-11-15 13:49:40 +01:00
#endif