add base snes_color for clib

This commit is contained in:
scawful
2024-08-06 22:46:05 -04:00
parent 38cbba79e2
commit 34ee6c9945
3 changed files with 29 additions and 14 deletions

24
src/base/snes_color.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef YAZE_BASE_SNES_COLOR_H_
#define YAZE_BASE_SNES_COLOR_H_
#include <cstdint>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Primitive of 16-bit RGB SNES color.
*/
struct snes_color {
uint16_t red; /**< Red component of the color. */
uint16_t blue; /**< Blue component of the color. */
uint16_t green; /**< Green component of the color. */
};
typedef struct snes_color snes_color;
#ifdef __cplusplus
}
#endif
#endif // YAZE_BASE_SNES_COLOR_H_