Procházet zdrojové kódy

Reviewed example for clarity

pull/579/head
Ray před 7 roky
rodič
revize
7d7c6fc42d
2 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. +3
    -0
      examples/text/text_font_sdf.c
  2. binární
      examples/text/text_font_sdf.png

+ 3
- 0
examples/text/text_font_sdf.c Zobrazit soubor

@ -98,6 +98,9 @@ int main()
DrawTextEx(fontDefault, msg, fontPosition, fontSize, 0, BLACK); DrawTextEx(fontDefault, msg, fontPosition, fontSize, 0, BLACK);
DrawTexture(fontDefault.texture, 10, 10, BLACK); DrawTexture(fontDefault.texture, 10, 10, BLACK);
} }
if (currentFont == 1) DrawText("SDF!", 320, 20, 80, RED);
else DrawText("default font", 315, 40, 30, GRAY);
DrawText("FONT SIZE: 16.0", GetScreenWidth() - 240, 20, 20, DARKGRAY); DrawText("FONT SIZE: 16.0", GetScreenWidth() - 240, 20, 20, DARKGRAY);
DrawText(FormatText("RENDER SIZE: %02.02f", fontSize), GetScreenWidth() - 240, 50, 20, DARKGRAY); DrawText(FormatText("RENDER SIZE: %02.02f", fontSize), GetScreenWidth() - 240, 50, 20, DARKGRAY);

binární
examples/text/text_font_sdf.png Zobrazit soubor

Před Za
Šířka: 800  |  Výška: 450  |  Velikost: 51 KiB Šířka: 800  |  Výška: 450  |  Velikost: 51 KiB

Načítá se…
Zrušit
Uložit