|
|
@ -53,6 +53,8 @@ |
|
|
|
#include "config.h" // Defines module configuration flags |
|
|
|
#endif |
|
|
|
|
|
|
|
#include "rlgl.h" // OpenGL abstraction layer to OpenGL 1.1, 2.1, 3.3+ or ES2 -> Only DrawTextPro() |
|
|
|
|
|
|
|
#include <stdlib.h> // Required for: malloc(), free() |
|
|
|
#include <stdio.h> // Required for: vsprintf() |
|
|
|
#include <string.h> // Required for: strcmp(), strstr(), strcpy(), strncpy() [Used in TextReplace()], sscanf() [Used in LoadBMFont()] |
|
|
@ -893,15 +895,13 @@ void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, f |
|
|
|
// Draw text using Font and pro parameters (rotation) |
|
|
|
void DrawTextPro(Font font, const char *text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint) |
|
|
|
{ |
|
|
|
// TODO: Not working... why??? |
|
|
|
|
|
|
|
rlPushMatrix(); |
|
|
|
|
|
|
|
o">//rlTranslatef(position.x, position.y, 0.0f); |
|
|
|
rlTranslatef(position.x, position.y, 0.0f); |
|
|
|
rlRotatef(rotation, 0.0f, 0.0f, 1.0f); |
|
|
|
rlTranslatef(-origin.x, -origin.y, 0.0f); |
|
|
|
|
|
|
|
DrawTextEx(font, text, (Vector2){ n">position.x, position.y }, fontSize, spacing, tint); |
|
|
|
DrawTextEx(font, text, (Vector2){ mf">0.0f, 0.0f }, fontSize, spacing, tint); |
|
|
|
|
|
|
|
rlPopMatrix(); |
|
|
|
} |
|
|
|