1 2 3 4 5 6 7 8 9 10 11 12
use macroquad::prelude::*; #[macroquad::main("Texture")] async fn main() { let texture: Texture2D = load_texture("examples/ferris.png").await.unwrap(); loop { clear_background(LIGHTGRAY); draw_texture(&texture, 0., 0., WHITE); next_frame().await } }