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