Asset manager refactor begin.
This commit is contained in:
23
archive/asset/assetpalleteimage.h
Normal file
23
archive/asset/assetpalleteimage.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* Copyright (c) 2025 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "dusk.h"
|
||||
|
||||
#define ASSET_PALETTE_IMAGE_PIXELS_MAX (256*256)
|
||||
|
||||
typedef struct {
|
||||
int32_t width;
|
||||
int32_t height;
|
||||
uint8_t paletteIndex;
|
||||
uint8_t paletteIndexes[ASSET_PALETTE_IMAGE_PIXELS_MAX];
|
||||
} assetpaletteimage_t;
|
||||
|
||||
/**
|
||||
* Parse the palette image from the loaded raw data.
|
||||
*/
|
||||
void assetParsePaletteImage(void);
|
Reference in New Issue
Block a user