EightBit/LR35902/inc/AbstractColourPalette.h
Adrian Conlon 015071fcfb Tidy up GameBoy processor (LR35902) with respect to C++14/17
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-10-27 19:23:02 +01:00

29 lines
389 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) {
}
auto getColour(size_t index) const {
return m_colours[index];
}
protected:
std::vector<uint32_t> m_colours;
};
}
}