Palette loading done.
This commit is contained in:
@@ -18,6 +18,12 @@
|
||||
|
||||
engine_t ENGINE;
|
||||
|
||||
void assetLoadCallback(void *data) {
|
||||
consolePrint("Asset load callback called!");
|
||||
test = ASSET.loaded.palette;
|
||||
consolePrint("Loaded palette with %d colors", ASSET.data.palette.colorCount);
|
||||
}
|
||||
|
||||
errorret_t engineInit(void) {
|
||||
memoryZero(&ENGINE, sizeof(engine_t));
|
||||
ENGINE.running = true;
|
||||
@@ -28,9 +34,8 @@ errorret_t engineInit(void) {
|
||||
ecsSystemInit();
|
||||
errorChain(assetInit());
|
||||
errorChain(displayInit());
|
||||
|
||||
// assetLoad("test.palette.dp123123");
|
||||
assetLoad("test.palette.dpf");
|
||||
|
||||
assetLoad("test.palette.dpf", assetLoadCallback, NULL);
|
||||
if(ASSET.state == ASSET_STATE_ERROR) errorChain(ASSET.error);
|
||||
|
||||
sceneTestAdd();
|
||||
|
Reference in New Issue
Block a user