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 
8 namespace openmsx {
9 
13 {
14 public:
15  void updateWindowTitle() override;
16  bool setFullScreen(bool fullscreen) override;
17  ~SDLVisibleSurfaceBase() override;
18 
19 protected:
21  void createSurface(int width, int height, unsigned flags);
22 
25 
26 private:
27  static int windowPosX;
28  static int windowPosY;
29 };
30 
31 } // namespace openmsx
32 
33 #endif
openmsx::SDLVisibleSurfaceBase::updateWindowTitle
void updateWindowTitle() override
Definition: SDLVisibleSurfaceBase.cc:82
VisibleSurface.hh
openmsx::SDLVisibleSurfaceBase
Common functionality for the plain SDL and SDLGL VisibleSurface classes.
Definition: SDLVisibleSurfaceBase.hh:13
openmsx::VisibleSurface::VisibleSurface
VisibleSurface(Display &display, RTScheduler &rtScheduler, EventDistributor &eventDistributor, InputEventGenerator &inputEventGenerator, CliComm &cliComm, VideoSystem &videoSystem)
Definition: VisibleSurface.cc:15
openmsx::SDLVisibleSurfaceBase::setFullScreen
bool setFullScreen(bool fullscreen) override
Definition: SDLVisibleSurfaceBase.cc:88
openmsx::SDLVisibleSurfaceBase::~SDLVisibleSurfaceBase
~SDLVisibleSurfaceBase() override
Definition: SDLVisibleSurfaceBase.cc:17
openmsx::VisibleSurface
An OutputSurface which is visible to the user, such as a window or a full screen display.
Definition: VisibleSurface.hh:28
SDLSurfacePtr.hh
SDLOutputSurface.hh
openmsx::SDLOutputSurface
A frame buffer where pixels can be written to.
Definition: SDLOutputSurface.hh:30
openmsx::SDLVisibleSurfaceBase::createSurface
void createSurface(int width, int height, unsigned flags)
Definition: SDLVisibleSurfaceBase.cc:30
openmsx::SDLVisibleSurfaceBase::window
SDLWindowPtr window
Definition: SDLVisibleSurfaceBase.hh:24
SDLSubSystemInitializer< SDL_INIT_VIDEO >
SDLWindowPtr
std::unique_ptr< SDL_Window, SDLDestroyWindow > SDLWindowPtr
Definition: SDLSurfacePtr.hh:153
openmsx::SDLVisibleSurfaceBase::videoSubSystem
SDLSubSystemInitializer< SDL_INIT_VIDEO > videoSubSystem
Definition: SDLVisibleSurfaceBase.hh:23
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5