mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-26 19:29:20 +00:00
129286f1a7
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
35 lines
647 B
C++
35 lines
647 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include <cstdint>
|
|
|
|
#include "GameBoyBus.h"
|
|
#include "AbstractColourPalette.h"
|
|
|
|
namespace EightBit {
|
|
namespace GameBoy {
|
|
class Display {
|
|
public:
|
|
enum {
|
|
BufferWidth = 256,
|
|
BufferHeight = 256,
|
|
BufferCharacterWidth = BufferWidth / 8,
|
|
BufferCharacterHeight = BufferHeight / 8,
|
|
RasterWidth = 160,
|
|
RasterHeight = 144,
|
|
};
|
|
|
|
Display(const AbstractColourPalette* colours, Bus& bus);
|
|
|
|
const std::vector<uint32_t>& pixels() const;
|
|
|
|
void initialise();
|
|
void render();
|
|
|
|
private:
|
|
std::vector<uint32_t> m_pixels;
|
|
Bus& m_bus;
|
|
const AbstractColourPalette* m_colours;
|
|
};
|
|
}
|
|
} |