Files
choco-chip8/DisplaySDL.hpp

19 lines
358 B
C++

#pragma once
#include "Peripherals.hpp"
#include <cstdint>
#include <SDL2/SDL_video.h>
class DisplaySDL : public chocochip8::Display {
public:
DisplaySDL(int w, int h, uint32_t fgCol = 0xffffff, uint32_t bgCol = 0x000000);
~DisplaySDL() override;
void updateWindow() const;
private:
SDL_Window *mpWindow;
Uint32 mFgColor;
Uint32 mBgColor;
};