ladybird/Widgets/FrameBufferSDL.h
2018-10-10 16:49:36 +02:00

25 lines
482 B
C++

#pragma once
#include "AbstractScreen.h"
#include <SDL.h>
class FrameBufferSDL final : public AbstractScreen {
public:
FrameBufferSDL(unsigned width, unsigned height);
virtual ~FrameBufferSDL() override;
void show();
SDL_Surface* surface() { return m_surface; }
SDL_Window* window() { return m_window; }
static FrameBufferSDL& the();
private:
void initializeSDL();
SDL_Window* m_window { nullptr };
SDL_Surface* m_surface { nullptr };
};