This commit is contained in:
Mylloon 2022-11-15 14:58:49 +01:00
parent cbf3651452
commit 9b1046667d
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -15,6 +15,7 @@ void write_text(GLfloat x, GLfloat y, char *text) {
surface = TTF_RenderText_Solid(font, text, (SDL_Color){255, 255, 255, 255}); surface = TTF_RenderText_Solid(font, text, (SDL_Color){255, 255, 255, 255});
// TODO: Make scale depend of the text length
gl4dpCopyFromSDLSurfaceWithTransforms(surface, (GLfloat[2]){.3, -.1}, gl4dpCopyFromSDLSurfaceWithTransforms(surface, (GLfloat[2]){.3, -.1},
(GLfloat[2]){x, y}); (GLfloat[2]){x, y});
} }