SDLOffScreenSurface.hh 542 B

12345678910111213141516171819202122232425262728
  1. #ifndef SDLOFFSCREENSURFACE_HH
  2. #define SDLOFFSCREENSURFACE_HH
  3. #include "SDLOutputSurface.hh"
  4. #include "SDLSurfacePtr.hh"
  5. #include "MemBuffer.hh"
  6. namespace openmsx {
  7. class SDLOffScreenSurface final : public SDLOutputSurface
  8. {
  9. public:
  10. explicit SDLOffScreenSurface(const SDL_Surface& prototype);
  11. private:
  12. // OutputSurface
  13. void saveScreenshot(const std::string& filename) override;
  14. void clearScreen() override;
  15. MemBuffer<char, SSE2_ALIGNMENT> buffer;
  16. SDLSurfacePtr surface;
  17. SDLRendererPtr renderer;
  18. };
  19. } // namespace openmsx
  20. #endif