openMSX
SDLOffScreenSurface.hh
Go to the documentation of this file.
1 #ifndef SDLOFFSCREENSURFACE_HH
2 #define SDLOFFSCREENSURFACE_HH
3 
4 #include "SDLOutputSurface.hh"
5 #include "SDLSurfacePtr.hh"
6 #include "MemBuffer.hh"
7 #include "aligned.hh"
8 
9 namespace openmsx {
10 
12 {
13 public:
14  explicit SDLOffScreenSurface(const SDL_Surface& prototype);
15 
16 private:
17  // OutputSurface
18  void saveScreenshot(const std::string& filename) override;
19  void clearScreen() override;
20 
22  SDLSurfacePtr surface;
23  SDLRendererPtr renderer;
24 };
25 
26 } // namespace openmsx
27 
28 #endif
aligned.hh
openmsx::SDLOffScreenSurface::SDLOffScreenSurface
SDLOffScreenSurface(const SDL_Surface &prototype)
Definition: SDLOffScreenSurface.cc:7
SDLSurfacePtr
Wrapper around a SDL_Surface.
Definition: SDLSurfacePtr.hh:34
openmsx::SDLOffScreenSurface
Definition: SDLOffScreenSurface.hh:12
SDLRendererPtr
std::unique_ptr< SDL_Renderer, SDLDestroyRenderer > SDLRendererPtr
Definition: SDLSurfacePtr.hh:147
SDLSurfacePtr.hh
openmsx::MemBuffer< char, SSE_ALIGNMENT >
SDLOutputSurface.hh
openmsx::SDLOutputSurface
A frame buffer where pixels can be written to.
Definition: SDLOutputSurface.hh:30
openmsx::filename
constexpr const char *const filename
Definition: FirmwareSwitch.cc:10
MemBuffer.hh
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5