mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
24 lines
482 B
C++
24 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 };
|
|
};
|
|
|