mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-25 16:49:18 -05:00
BREAKING CHANGE: Renamed SpriteFont type to Font
- Preparing MP3 files support - Jumped version to raylib 2.0-dev (too many breaking changes...)
This commit is contained in:
@ -57,7 +57,7 @@ int main(void) {
|
||||
InitWindow(screenWidth, screenHeight, windowTitle);
|
||||
|
||||
// Load global data here (assets that must be available in all screens, i.e. fonts)
|
||||
font = LoadSpriteFont("resources/graphics/mainfont.png");
|
||||
font = LoadFont("resources/graphics/mainfont.png");
|
||||
|
||||
atlas01 = LoadTexture("resources/graphics/atlas01.png");
|
||||
atlas02 = LoadTexture("resources/graphics/atlas02.png");
|
||||
@ -114,7 +114,7 @@ int main(void) {
|
||||
|
||||
UnloadTexture(atlas01);
|
||||
UnloadTexture(atlas02);
|
||||
UnloadSpriteFont(font);
|
||||
UnloadFont(font);
|
||||
|
||||
UnloadShader(colorBlend); // Unload color overlay blending shader
|
||||
|
||||
|
||||
@ -42,7 +42,7 @@ typedef enum GameScreen { LOGO, TITLE, OPTIONS, GAMEPLAY, ENDING } GameScreen;
|
||||
GameScreen currentScreen;
|
||||
|
||||
// NOTE: This is all the data used in the game
|
||||
SpriteFont font;
|
||||
Font font;
|
||||
Shader colorBlend;
|
||||
Texture2D atlas01;
|
||||
Texture2D atlas02;
|
||||
|
||||
Reference in New Issue
Block a user