Asset manager refactor begin.
This commit is contained in:
22
archive/asset/assetpalette.h
Normal file
22
archive/asset/assetpalette.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* Copyright (c) 2025 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "dusk.h"
|
||||
#include "display/color.h"
|
||||
|
||||
#define ASSET_PALETTE_COLOR_COUNT_MAX 256
|
||||
|
||||
typedef struct {
|
||||
int32_t colorCount;
|
||||
color4b_t colors[ASSET_PALETTE_COLOR_COUNT_MAX];
|
||||
} assetpalette_t;
|
||||
|
||||
/**
|
||||
* Parse the palette from the loaded raw data.
|
||||
*/
|
||||
void assetParsePalette(void);
|
Reference in New Issue
Block a user