implemented DisplaySDL

This commit is contained in:
2024-11-28 04:08:37 -05:00
parent e4636e4901
commit 5429c5fac1
5 changed files with 114 additions and 4 deletions

18
DisplaySDL.hpp Normal file
View File

@@ -0,0 +1,18 @@
#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, uint32_t bgCol);
~DisplaySDL() override;
void updateWindow() const;
private:
SDL_Window *mpWindow;
Uint32 mFgColor;
Uint32 mBgColor;
};