From 5f7e0d8cf88d0adb9739e2cc7e26ba26243975f8 Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Fri, 3 Jan 2025 11:38:13 +0300 Subject: Minor optimization Animations can now share a single texture --- Week1-Pacman/src/animation.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Week1-Pacman/src/animation.h') diff --git a/Week1-Pacman/src/animation.h b/Week1-Pacman/src/animation.h index 390e3f5..af55e14 100644 --- a/Week1-Pacman/src/animation.h +++ b/Week1-Pacman/src/animation.h @@ -6,6 +6,7 @@ #include "demo.h" struct animation_init { + SDL_Texture* spritesheet_texture; SDL_Renderer* ren; const char* spritesheet; int initial_frame_count; -- cgit v1.2.3