diff --git a/src/raylib.h b/src/raylib.h index 4c154d989..a95b07231 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1331,8 +1331,6 @@ RLAPI void DrawText(const char *text, int posX, int posY, int fontSize, Color co RLAPI void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint); // Draw text using font and additional parameters RLAPI void DrawTextPro(Font font, const char *text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint); // Draw text using Font and pro parameters (rotation) RLAPI void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint); // Draw one character (codepoint) -RLAPI void DrawTextShadowed (const char* text, Vector2 position, Vector2 offset, float fontSize, float spacing, Color tint, Color shadowTint); // Draw text with a shadow -RLAPI void DrawTextShadowedEx (Font font, const char* text, Vector2 position, Vector2 offset, float fontSize, float spacing, Color tint, Color shadowTint); // Draw text with a shadow using Font parameter // Text font info functions RLAPI int MeasureText(const char *text, int fontSize); // Measure string width for default font diff --git a/src/rtext.c b/src/rtext.c index 9d2b28ed3..137ad1864 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -931,24 +931,6 @@ void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSiz DrawTexturePro(font.texture, srcRec, dstRec, (Vector2){ 0, 0 }, 0.0f, tint); } -// Draw text with a shadow -void DrawTextShadowed (const char* text, Vector2 position, Vector2 offset, float fontSize, float spacing, Color tint, Color shadowTint) -{ - // Draw the shadow - DrawText (text, position.x + offset.x, position.y + offset.y, fontSize, shadowTint); - // Draw the actual text - DrawText (text, position.x, position.y, fontSize, tint); -} - -// Draw text with a shadow using Font parameter -void DrawTextShadowedEx (Font font, const char* text, Vector2 position, Vector2 offset, float fontSize, float spacing, Color tint, Color shadowTint) -{ - // Draw the shadow - DrawTextEx (font, text, (Vector2){position.x + offset.x, position.y + offset.y}, fontSize, spacing, shadowTint); - // Draw the actual text - DrawTextEx (font, text, position, fontSize, spacing, tint); -} - // Measure string width for default font int MeasureText(const char *text, int fontSize) {