Initial commit

This commit is contained in:
Gericom
2025-11-22 17:21:45 +01:00
commit 5d6f67c612
517 changed files with 63025 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#pragma once
#include <string.h>
#include "IPalette.h"
/// @brief Palette of 16 specified colors.
class alignas(4) DirectPalette : public IPalette
{
public:
explicit DirectPalette(const u16* colors)
{
memcpy(_colors, colors, sizeof(_colors));
}
void GetColors(u16* dst) const override
{
memcpy(dst, _colors, sizeof(_colors));
}
u32 GetHashCode() const override;
private:
u16 _colors[16];
};