openMSX
SDLVisibleSurfaceBase.hh
Go to the documentation of this file.
1#ifndef SDLVISIBLESURFACEBASE_HH
2#define SDLVISIBLESURFACEBASE_HH
3
4#include "SDLOutputSurface.hh"
5#include "VisibleSurface.hh"
6#include "SDLSurfacePtr.hh"
7
8namespace openmsx {
9
13{
14public:
15 void updateWindowTitle() override;
16 bool setFullScreen(bool fullscreen) override;
17 ~SDLVisibleSurfaceBase() override;
18
19protected:
21 void createSurface(int width, int height, unsigned flags);
22 virtual void fullScreenUpdated(bool fullscreen) = 0;
23
24protected:
27
28private:
29 static int windowPosX;
30 static int windowPosY;
31};
32
33} // namespace openmsx
34
35#endif
std::unique_ptr< SDL_Window, SDLDestroyWindow > SDLWindowPtr
A frame buffer where pixels can be written to.
Common functionality for the plain SDL and SDLGL VisibleSurface classes.
void createSurface(int width, int height, unsigned flags)
virtual void fullScreenUpdated(bool fullscreen)=0
SDLSubSystemInitializer< SDL_INIT_VIDEO > videoSubSystem
bool setFullScreen(bool fullscreen) override
An OutputSurface which is visible to the user, such as a window or a full screen display.
VisibleSurface(Display &display, RTScheduler &rtScheduler, EventDistributor &eventDistributor, InputEventGenerator &inputEventGenerator, CliComm &cliComm, VideoSystem &videoSystem)
This file implemented 3 utility functions:
Definition: Autofire.cc:9