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 
8 namespace openmsx {
9 
11 {
12 public:
13  explicit SDLOffScreenSurface(const SDL_Surface& prototype);
14 
15 private:
16  // OutputSurface
17  void saveScreenshot(const std::string& filename) override;
18  void clearScreen() override;
19 
21  SDLSurfacePtr surface;
22  SDLRendererPtr renderer;
23 };
24 
25 } // namespace openmsx
26 
27 #endif
openmsx::SDLOffScreenSurface::SDLOffScreenSurface
SDLOffScreenSurface(const SDL_Surface &prototype)
Definition: SDLOffScreenSurface.cc:7
SDLSurfacePtr
Wrapper around a SDL_Surface.
Definition: SDLSurfacePtr.hh:33
openmsx::SDLOffScreenSurface
Definition: SDLOffScreenSurface.hh:10
SDLRendererPtr
std::unique_ptr< SDL_Renderer, SDLDestroyRenderer > SDLRendererPtr
Definition: SDLSurfacePtr.hh:147
SDLSurfacePtr.hh
openmsx::MemBuffer< char, SSE2_ALIGNMENT >
SDLOutputSurface.hh
openmsx::SDLOutputSurface
A frame buffer where pixels can be written to.
Definition: SDLOutputSurface.hh:29
openmsx::filename
constexpr const char *const filename
Definition: FirmwareSwitch.cc:10
MemBuffer.hh
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5