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
9namespace openmsx {
10
12{
13public:
14 explicit SDLOffScreenSurface(const SDL_Surface& prototype);
15
16private:
17 // OutputSurface
18 void saveScreenshot(const std::string& filename) override;
19 void clearScreen() override;
20
21private:
23 SDLSurfacePtr surface;
24 SDLRendererPtr renderer;
25};
26
27} // namespace openmsx
28
29#endif
std::unique_ptr< SDL_Renderer, SDLDestroyRenderer > SDLRendererPtr
Wrapper around a SDL_Surface.
SDLOffScreenSurface(const SDL_Surface &prototype)
A frame buffer where pixels can be written to.
This file implemented 3 utility functions:
Definition: Autofire.cc:9