mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-26 03:32:51 +00:00
27 lines
367 B
C
27 lines
367 B
C
|
#pragma once
|
||
|
|
||
|
#include <vector>
|
||
|
#include <cstdint>
|
||
|
|
||
|
namespace EightBit {
|
||
|
class AbstractColourPalette {
|
||
|
public:
|
||
|
enum {
|
||
|
Off,
|
||
|
Light,
|
||
|
Medium,
|
||
|
Dark
|
||
|
};
|
||
|
|
||
|
AbstractColourPalette::AbstractColourPalette()
|
||
|
: m_colours(4) {
|
||
|
}
|
||
|
|
||
|
uint32_t getColour(size_t index) const {
|
||
|
return m_colours[index];
|
||
|
}
|
||
|
|
||
|
protected:
|
||
|
std::vector<uint32_t> m_colours;
|
||
|
};
|
||
|
}
|