2017-08-29 21:23:32 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
namespace EightBit {
|
2017-09-07 00:15:28 +00:00
|
|
|
namespace GameBoy {
|
|
|
|
class AbstractColourPalette {
|
|
|
|
public:
|
|
|
|
enum {
|
|
|
|
Off,
|
|
|
|
Light,
|
|
|
|
Medium,
|
|
|
|
Dark
|
|
|
|
};
|
2017-08-29 21:23:32 +00:00
|
|
|
|
2017-10-02 16:30:46 +00:00
|
|
|
AbstractColourPalette()
|
|
|
|
: m_colours(4) {
|
2017-09-07 00:15:28 +00:00
|
|
|
}
|
2017-08-29 21:23:32 +00:00
|
|
|
|
2017-09-07 00:15:28 +00:00
|
|
|
uint32_t getColour(size_t index) const {
|
|
|
|
return m_colours[index];
|
|
|
|
}
|
2017-08-29 21:23:32 +00:00
|
|
|
|
2017-09-07 00:15:28 +00:00
|
|
|
protected:
|
|
|
|
std::vector<uint32_t> m_colours;
|
|
|
|
};
|
|
|
|
}
|
2017-08-29 21:23:32 +00:00
|
|
|
}
|