EightBit/LR35902/inc/AbstractColourPalette.h
Adrian.Conlon 129286f1a7 Ensure LR35902 fuse tests run successfully to completion.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
2017-09-07 01:15:28 +01:00

29 lines
408 B
C++

#pragma once
#include <vector>
#include <cstdint>
namespace EightBit {
namespace GameBoy {
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;
};
}
}