Create Splash.cpp
This commit is contained in:
parent
300f1e38c5
commit
bc98c48ef4
|
@ -1,3 +1,6 @@
|
||||||
|
#Add the JabyEngine tools to path
|
||||||
|
export PATH := $(JABY_ENGINE_DIR)/bin/:$(PATH)
|
||||||
|
|
||||||
#Build architecture/variant string, possible values: x86, armv7le, etc...
|
#Build architecture/variant string, possible values: x86, armv7le, etc...
|
||||||
PLATFORM ?= PSX
|
PLATFORM ?= PSX
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
JABY_ENGINE_DIR = ../../
|
||||||
|
|
||||||
ARTIFACT = libJabyEngine
|
ARTIFACT = libJabyEngine
|
||||||
BUILD_DIR = bin
|
BUILD_DIR = bin
|
||||||
|
|
||||||
|
@ -21,7 +23,7 @@ $(LIB_DIR)/$(ARTIFACT).a: $(TARGET).a
|
||||||
cp $(TARGET).a $(LIB_DIR)/$(ARTIFACT).a
|
cp $(TARGET).a $(LIB_DIR)/$(ARTIFACT).a
|
||||||
|
|
||||||
ressources/Splash.cpp: ressources/Splash.png
|
ressources/Splash.cpp: ressources/Splash.png
|
||||||
echo wuff
|
jaby_engine_fconv $< simple-tim full16 | cpp_out --name SplashScreen -o $@
|
||||||
|
|
||||||
#Rules section for default compilation and linking
|
#Rules section for default compilation and linking
|
||||||
splash: ressources/Splash.cpp
|
splash: ressources/Splash.cpp
|
||||||
|
|
BIN
src/Library/ressources/Splash.png (Stored with Git LFS)
BIN
src/Library/ressources/Splash.png (Stored with Git LFS)
Binary file not shown.
|
@ -51,7 +51,7 @@ fn encode<T: PSXImageConverter>(image: T, clut_align: ClutAlignment, mut output:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let header = Header::encode(width, height, pal_width, pal_height).ok_or(Error::from_callback(|| {format!("Image size {}, {} needs to be even", width, height)}))?;
|
let header = Header::encode(width, height, pal_width, pal_height).ok_or(Error::from_callback(|| {format!("Image size (width: {}, height: {}) needs to be even", width, height)}))?;
|
||||||
|
|
||||||
tool_helper::raw::write_generic(&mut output, header)?;
|
tool_helper::raw::write_generic(&mut output, header)?;
|
||||||
if let Some(palette) = palette {
|
if let Some(palette) = palette {
|
||||||
|
|
Loading…
Reference in New Issue