diff options
| author | raysan5 <[email protected]> | 2021-06-28 12:24:39 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-06-28 12:24:39 +0200 |
| commit | 957fe60d0be9b4eec4998e038734df47adc40b14 (patch) | |
| tree | 4c9606da6b855fb597a6ab20d43ff3de88351efd | |
| parent | 7e57cdf8ad704dac6bdce051bdb9e718d83ea703 (diff) | |
| download | raylib.com-957fe60d0be9b4eec4998e038734df47adc40b14.tar.gz raylib.com-957fe60d0be9b4eec4998e038734df47adc40b14.zip | |
Reviewed comments
| -rw-r--r-- | examples/web/text/text_raylib_fonts.c | 4 | ||||
| -rw-r--r-- | examples/web/textures/textures_image_drawing.c | 8 | ||||
| -rw-r--r-- | examples/web/textures/textures_image_text.c | 8 |
3 files changed, 9 insertions, 11 deletions
diff --git a/examples/web/text/text_raylib_fonts.c b/examples/web/text/text_raylib_fonts.c index 24022f6..6d8d61a 100644 --- a/examples/web/text/text_raylib_fonts.c +++ b/examples/web/text/text_raylib_fonts.c @@ -89,9 +89,7 @@ int main(void) // De-Initialization //-------------------------------------------------------------------------------------- - - // SpriteFont unloading - for (int i = 0; i < MAX_FONTS; i++) UnloadFont(fonts[i]); + for (int i = 0; i < MAX_FONTS; i++) UnloadFont(fonts[i]); // Fonts unloading CloseWindow(); // Close window and OpenGL context //-------------------------------------------------------------------------------------- diff --git a/examples/web/textures/textures_image_drawing.c b/examples/web/textures/textures_image_drawing.c index 0bac06a..1de01c2 100644 --- a/examples/web/textures/textures_image_drawing.c +++ b/examples/web/textures/textures_image_drawing.c @@ -60,7 +60,7 @@ int main(void) // Draw over image using custom font ImageDrawTextEx(&parrots, font, "PARROTS & CAT", (Vector2){ 300, 230 }, font.baseSize, -2, WHITE); - UnloadFont(font); // Unload custom spritefont (already drawn used on image) + UnloadFont(font); // Unload custom font (already drawn used on image) texture = LoadTextureFromImage(parrots); // Image converted to texture, uploaded to GPU memory (VRAM) UnloadImage(parrots); // Once image has been converted to texture and uploaded to VRAM, it can be unloaded from RAM @@ -68,7 +68,7 @@ int main(void) #if defined(PLATFORM_WEB) emscripten_set_main_loop(UpdateDrawFrame, 60, 1); #else - SetTargetFPS(60); // Set our game to run at 60 frames-per-second + SetTargetFPS(60); // Set our game to run at 60 frames-per-second //-------------------------------------------------------------------------------------- // Main game loop @@ -80,9 +80,9 @@ int main(void) // De-Initialization //-------------------------------------------------------------------------------------- - UnloadTexture(texture); // Texture unloading + UnloadTexture(texture); // Texture unloading - CloseWindow(); // Close window and OpenGL context + CloseWindow(); // Close window and OpenGL context //-------------------------------------------------------------------------------------- return 0; diff --git a/examples/web/textures/textures_image_text.c b/examples/web/textures/textures_image_text.c index f56cac5..fc8f661 100644 --- a/examples/web/textures/textures_image_text.c +++ b/examples/web/textures/textures_image_text.c @@ -72,11 +72,11 @@ int main(void) // De-Initialization //-------------------------------------------------------------------------------------- - UnloadTexture(texture); // Texture unloading + UnloadTexture(texture); // Texture unloading - UnloadFont(font); // Unload custom spritefont + UnloadFont(font); // Unload custom font - CloseWindow(); // Close window and OpenGL context + CloseWindow(); // Close window and OpenGL context //-------------------------------------------------------------------------------------- return 0; @@ -110,7 +110,7 @@ void UpdateDrawFrame(void) } else DrawTexture(font.texture, screenWidth/2 - font.texture.width/2, 50, BLACK); - DrawText("PRESS SPACE to SEE USED SPRITEFONT ", 290, 420, 10, DARKGRAY); + DrawText("PRESS SPACE to SHOW USED FONT ATLAS", 290, 420, 10, DARKGRAY); EndDrawing(); //---------------------------------------------------------------------------------- |
