]> Chaos Git - corbenik/ctrulib.git/commit
Automate graphics conversion
authorDave Murphy <davem@devkitpro.org>
Mon, 15 Dec 2014 12:35:03 +0000 (12:35 +0000)
committerDave Murphy <davem@devkitpro.org>
Mon, 15 Dec 2014 12:35:03 +0000 (12:35 +0000)
commitcbb00e413d03eeb09bfa3a6e385839146a234cac
treed1692e08862d7eddd352d4cdda3b83ec2bc745c0
parent75d62ef1e360668d3af05b17c1bdb5dab932c4fb
Automate graphics conversion

Makefile:

- Don't set DATA, we're no longer embedding files from there directly

- Add folders from GRAPHICS to VPATH. This is how make finds the source files

- Add PNGFILES variable containing all png files from GRAPHICS folders

- Add png files to OFILES with extension changed to rgb.o

- Add rule to create .rgb.o fromn .rgb using normal bin2o macro

- Add rule to create .rgb from .png using imagemagick

source/main.c

- the extension has changed to .rgb so the header is now <filename>_rgb.h and the variables end in _rgb
examples/graphics/bitmap/24bit-color/Makefile
examples/graphics/bitmap/24bit-color/source/main.c