const char

This commit is contained in:
Mylloon 2023-05-19 14:19:31 +02:00
parent e8a0c35f4a
commit 397352a504
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 3 additions and 2 deletions

View file

@ -20,7 +20,7 @@ int initFont(TTF_Font **, char *, int);
* Renvoie 2 en cas de problème de surface avec la SDL
*
* Renvoie 0 en cas de succès */
int writeText(GLuint *, TTF_Font *, char *, SDL_Color);
int writeText(GLuint *, TTF_Font *, const char *, SDL_Color);
// Libère une police de la mémoire
void freeFont(TTF_Font *);

View file

@ -14,7 +14,8 @@ int initFont(TTF_Font **font, char *filename, int size) {
return 0;
}
int writeText(GLuint *_textTexId, TTF_Font *font, char *text, SDL_Color color) {
int writeText(GLuint *_textTexId, TTF_Font *font, const char *text,
SDL_Color color) {
glGenTextures(1, _textTexId);
assert(_textTexId);