openMSX
SDLOffScreenSurface.hh
Go to the documentation of this file.
1 #ifndef SDLOFFSCREENSURFACE_HH
2 #define SDLOFFSCREENSURFACE_HH
3 
4 #include "OutputSurface.hh"
5 #include "SDLSurfacePtr.hh"
6 #include "MemBuffer.hh"
7 
8 namespace openmsx {
9 
10 class SDLOffScreenSurface final : public OutputSurface
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
SDLOffScreenSurface(const SDL_Surface &prototype)
std::unique_ptr< SDL_Renderer, SDLDestroyRenderer > SDLRendererPtr
A frame buffer where pixels can be written to.
Wrapper around a SDL_Surface.
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5