mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-23 15:29:24 +00:00
70c70af969
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
29 lines
393 B
C++
29 lines
393 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include <cstdint>
|
|
|
|
namespace EightBit {
|
|
namespace GameBoy {
|
|
class AbstractColourPalette {
|
|
public:
|
|
enum {
|
|
Off,
|
|
Light,
|
|
Medium,
|
|
Dark
|
|
};
|
|
|
|
AbstractColourPalette() noexcept
|
|
: m_colours(4) {
|
|
}
|
|
|
|
uint32_t getColour(size_t index) const {
|
|
return m_colours[index];
|
|
}
|
|
|
|
protected:
|
|
std::vector<uint32_t> m_colours;
|
|
};
|
|
}
|
|
} |