mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Initial commit
This commit is contained in:
18
arm9/source/gui/palette/IPalette.h
Normal file
18
arm9/source/gui/palette/IPalette.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#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() { }
|
||||
Reference in New Issue
Block a user