Move controls.png to assets/ and gitignore all of build/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Michael Smith 2026-02-13 10:31:23 +01:00
parent 238343b5e8
commit 52d5bbd971
6 changed files with 3 additions and 4 deletions

3
.gitignore vendored
View File

@ -1,5 +1,4 @@
/build/sdlamp2 /build/
/build/sdlamp2.dSYM
*.mp3 *.mp3
*.m4a *.m4a
positions.txt positions.txt

View File

@ -24,7 +24,7 @@ No test suite, no linter, no Makefile/CMake.
## Architecture ## Architecture
Single-file C program: `src/sdlamp2.c` (~650 lines). One generated header: `src/controls_png.h` (embedded PNG byte array — regenerate with `./tools/embed_png.py build/controls.png src/controls_png.h` if the spritesheet changes). Single-file C program: `src/sdlamp2.c` (~650 lines). One generated header: `src/controls_png.h` (embedded PNG byte array — regenerate with `./tools/embed_png.py assets/controls.png src/controls_png.h` if the spritesheet changes).
Key sections in order: Key sections in order:
- **Decoder struct** — holds all FFmpeg state (format/codec contexts, swr resampler, album art texture) - **Decoder struct** — holds all FFmpeg state (format/codec contexts, swr resampler, album art texture)

View File

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

Binary file not shown.

View File

@ -2,7 +2,7 @@
# #
# embed_png.py — Convert a PNG file into a C header with a byte array. # embed_png.py — Convert a PNG file into a C header with a byte array.
# #
# Usage: ./tools/embed_png.py build/controls.png src/controls_png.h # Usage: ./tools/embed_png.py assets/controls.png src/controls_png.h
# #
import sys import sys