implemented DisplaySDL
This commit is contained in:
18
DisplaySDL.hpp
Normal file
18
DisplaySDL.hpp
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user