diff options
| author | Ray San <[email protected]> | 2018-05-04 16:59:48 +0200 |
|---|---|---|
| committer | Ray San <[email protected]> | 2018-05-04 16:59:48 +0200 |
| commit | ec33e7d705e301eb2b74a841e823907295caa37a (patch) | |
| tree | 7726a0d89a862b96cc91ec8a1ba18d07cf022c79 /examples/text/text_bmfont_ttf.c | |
| parent | 6045062a05a0cc5bd654ad2c2e7d88f94579cd73 (diff) | |
| download | raylib-ec33e7d705e301eb2b74a841e823907295caa37a.tar.gz raylib-ec33e7d705e301eb2b74a841e823907295caa37a.zip | |
BREAKING CHANGE: Renamed SpriteFont type to Font
- Preparing MP3 files support
- Jumped version to raylib 2.0-dev (too many breaking changes...)
Diffstat (limited to 'examples/text/text_bmfont_ttf.c')
| -rw-r--r-- | examples/text/text_bmfont_ttf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/text/text_bmfont_ttf.c b/examples/text/text_bmfont_ttf.c index 0778fd11..f71f5ddb 100644 --- a/examples/text/text_bmfont_ttf.c +++ b/examples/text/text_bmfont_ttf.c @@ -1,6 +1,6 @@ /******************************************************************************************* * -* raylib [text] example - BMFont and TTF SpriteFonts loading +* raylib [text] example - BMFont and TTF Fonts loading * * This example has been created using raylib 1.4 (www.raylib.com) * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) @@ -24,8 +24,8 @@ int main() const char msgTtf[64] = "THIS SPRITE FONT has been GENERATED from a TTF"; // NOTE: Textures/Fonts MUST be loaded after Window initialization (OpenGL context is required) - SpriteFont fontBm = LoadSpriteFont("resources/bmfont.fnt"); // BMFont (AngelCode) - SpriteFont fontTtf = LoadSpriteFont("resources/pixantiqua.ttf"); // TTF font + Font fontBm = LoadFont("resources/bmfont.fnt"); // BMFont (AngelCode) + Font fontTtf = LoadFont("resources/pixantiqua.ttf"); // TTF font Vector2 fontPosition; @@ -58,8 +58,8 @@ int main() // De-Initialization //-------------------------------------------------------------------------------------- - UnloadSpriteFont(fontBm); // AngelCode SpriteFont unloading - UnloadSpriteFont(fontTtf); // TTF SpriteFont unloading + UnloadFont(fontBm); // AngelCode Font unloading + UnloadFont(fontTtf); // TTF Font unloading CloseWindow(); // Close window and OpenGL context //-------------------------------------------------------------------------------------- |
