Edited Mis-spell

This commit is contained in:
tusharsingh09 2021-12-30 15:16:53 +05:30
parent c2a70b3f68
commit dad6a9c0a5
2 changed files with 0 additions and 20 deletions

View File

@ -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

View File

@ -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)
{