const char
This commit is contained in:
parent
e8a0c35f4a
commit
397352a504
2 changed files with 3 additions and 2 deletions
|
@ -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 *);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Reference in a new issue