28 lines
624 B
C
28 lines
624 B
C
/**
|
|
* Copyright (c) 2026 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#pragma once
|
|
#include "dusk.h"
|
|
|
|
typedef struct {
|
|
|
|
} palettetexture_t;
|
|
|
|
/**
|
|
* Initializes a palette texture.
|
|
*
|
|
* @param texture The palette texture to initialize.
|
|
* @param width The width of the texture. Must be a power of 2.
|
|
* @param height The height of the texture. Must be a power of 2.
|
|
* @param data The palette index data for the texture.
|
|
*/
|
|
void paletteTextureInit(
|
|
palettetexture_t *texture,
|
|
const int32_t width,
|
|
const int32_t height,
|
|
const uint8_t *data
|
|
); |