From 32d06c51642fd3d356462b74742698233012ac84 Mon Sep 17 00:00:00 2001 From: lisk77 Date: Sun, 2 Nov 2025 02:15:03 +0100 Subject: [PATCH] fix(examples): changed functions for atlas initialization --- examples/simple_text.rs | 1 + examples/textured_entity.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/simple_text.rs b/examples/simple_text.rs index 4821ad8..b0f0056 100644 --- a/examples/simple_text.rs +++ b/examples/simple_text.rs @@ -1,6 +1,7 @@ use comet::prelude::*; fn setup(app: &mut App, renderer: &mut Renderer2D) { + renderer.init_atlas(); // Loading the font from the res/fonts directory with a rendered size of 77px renderer.load_font("./res/fonts/PressStart2P-Regular.ttf", 77.0); diff --git a/examples/textured_entity.rs b/examples/textured_entity.rs index e4bd86b..9757081 100644 --- a/examples/textured_entity.rs +++ b/examples/textured_entity.rs @@ -2,7 +2,7 @@ use comet::prelude::*; fn setup(app: &mut App, renderer: &mut Renderer2D) { // Creating a texture atlas from the provided textures in the vector - renderer.set_texture_atlas_by_paths(vec!["./res/textures/comet_icon.png".to_string()]); + renderer.init_atlas_by_paths(vec!["./res/textures/comet_icon.png".to_string()]); // Creating a camera entity let cam = app.new_entity();