move struct snes_palette to base

This commit is contained in:
scawful
2024-08-06 23:46:45 -04:00
parent 1d2911d0e6
commit 3631a962bc
3 changed files with 13 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
#ifndef YAZE_BASE_SNES_COLOR_H_
#define YAZE_BASE_SNES_COLOR_H_
#include <cstdint>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
@@ -17,6 +17,16 @@ struct snes_color {
};
typedef struct snes_color snes_color;
/**
* @brief Primitive of a SNES color palette.
*/
struct snes_palette {
unsigned int id; /**< ID of the palette. */
unsigned int size; /**< Size of the palette. */
snes_color* colors; /**< Pointer to the colors in the palette. */
};
using snes_palette = struct snes_palette;
#ifdef __cplusplus
}
#endif