Fixing all other macros by adding RL_ prefix.

This commit is contained in:
Marco Lizza 2018-12-20 16:15:55 +01:00
commit b6cb51e3e8

View file

@ -97,26 +97,26 @@ int main()
//----------------------------------------------------------------------------------
BeginDrawing();
ClearBackground(RAYWHITE);
ClearBackground(RL_RAYWHITE);
DrawText("Use mouse wheel to change font size", 20, 20, 10, GRAY);
DrawText("Use KEY_RIGHT and KEY_LEFT to move text", 20, 40, 10, GRAY);
DrawText("Use 1, 2, 3 to change texture filter", 20, 60, 10, GRAY);
DrawText("Drop a new TTF font for dynamic loading", 20, 80, 10, DARKGRAY);
DrawText("Use mouse wheel to change font size", 20, 20, 10, RL_GRAY);
DrawText("Use KEY_RIGHT and KEY_LEFT to move text", 20, 40, 10, RL_GRAY);
DrawText("Use 1, 2, 3 to change texture filter", 20, 60, 10, RL_GRAY);
DrawText("Drop a new TTF font for dynamic loading", 20, 80, 10, RL_DARKGRAY);
DrawTextEx(font, msg, fontPosition, fontSize, 0, BLACK);
DrawTextEx(font, msg, fontPosition, fontSize, 0, RL_BLACK);
// TODO: It seems texSize measurement is not accurate due to chars offsets...
//DrawRectangleLines(fontPosition.x, fontPosition.y, textSize.x, textSize.y, RED);
//DrawRectangleLines(fontPosition.x, fontPosition.y, textSize.x, textSize.y, RL_RED);
DrawRectangle(0, screenHeight - 80, screenWidth, 80, LIGHTGRAY);
DrawText(FormatText("Font size: %02.02f", fontSize), 20, screenHeight - 50, 10, DARKGRAY);
DrawText(FormatText("Text size: [%02.02f, %02.02f]", textSize.x, textSize.y), 20, screenHeight - 30, 10, DARKGRAY);
DrawText("CURRENT TEXTURE FILTER:", 250, 400, 20, GRAY);
DrawRectangle(0, screenHeight - 80, screenWidth, 80, RL_LIGHTGRAY);
DrawText(FormatText("Font size: %02.02f", fontSize), 20, screenHeight - 50, 10, RL_DARKGRAY);
DrawText(FormatText("Text size: [%02.02f, %02.02f]", textSize.x, textSize.y), 20, screenHeight - 30, 10, RL_DARKGRAY);
DrawText("CURRENT TEXTURE FILTER:", 250, 400, 20, RL_GRAY);
if (currentFontFilter == 0) DrawText("POINT", 570, 400, 20, BLACK);
else if (currentFontFilter == 1) DrawText("BILINEAR", 570, 400, 20, BLACK);
else if (currentFontFilter == 2) DrawText("TRILINEAR", 570, 400, 20, BLACK);
if (currentFontFilter == 0) DrawText("POINT", 570, 400, 20, RL_BLACK);
else if (currentFontFilter == 1) DrawText("BILINEAR", 570, 400, 20, RL_BLACK);
else if (currentFontFilter == 2) DrawText("TRILINEAR", 570, 400, 20, RL_BLACK);
EndDrawing();
//----------------------------------------------------------------------------------