EightBit/LR35902/inc/CharacterDefinition.h
2021-07-18 14:28:40 +01:00

22 lines
346 B
C++

#pragma once
#include <cstdint>
#include <array>
namespace EightBit {
class Ram;
namespace GameBoy {
class CharacterDefinition final {
public:
CharacterDefinition(Ram& vram, uint16_t address) noexcept;
[[nodiscard]] std::array<int, 8> get(int row) const noexcept;
private:
Ram& m_vram;
uint16_t m_address = ~0;
};
}
}