You've already forked pico-launcher
mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-01-09 16:28:48 -08:00
19 lines
448 B
C++
19 lines
448 B
C++
#pragma once
|
|
|
|
/// @brief Interface for a color palette.
|
|
class IPalette
|
|
{
|
|
public:
|
|
virtual ~IPalette() = 0;
|
|
|
|
/// @brief Gets the colors of the palette.
|
|
/// @param dst A pointer to an array the colors should be written to.
|
|
virtual void GetColors(u16* dst) const = 0;
|
|
|
|
/// @brief Gets a hash that represents this color palette.
|
|
/// @return The hash.
|
|
virtual u32 GetHashCode() const = 0;
|
|
};
|
|
|
|
inline IPalette::~IPalette() { }
|