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:
parent
238343b5e8
commit
52d5bbd971
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,5 +1,4 @@
|
|||||||
/build/sdlamp2
|
/build/
|
||||||
/build/sdlamp2.dSYM
|
|
||||||
*.mp3
|
*.mp3
|
||||||
*.m4a
|
*.m4a
|
||||||
positions.txt
|
positions.txt
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
BIN
build/music.wav
BIN
build/music.wav
Binary file not shown.
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user