1#ifndef SDLVISIBLESURFACE_HH
2#define SDLVISIBLESURFACE_HH
20 const std::string& filename);
std::unique_ptr< SDL_Renderer, SDLDestroyRenderer > SDLRendererPtr
std::unique_ptr< SDL_Texture, SDLDestroyTexture > SDLTexturePtr
Wrapper around a SDL_Surface.
Represents the output window/screen of openMSX.
Contains the main loop of openMSX.
A frame buffer where pixels can be written to.
Common functionality for the plain SDL and SDLGL VisibleSurface classes.
void finish() override
When a complete frame is finished, call this method.
void saveScreenshot(const std::string &filename) override
Save the content of this OutputSurface to a PNG file.
SDLVisibleSurface(int width, int height, Display &display, RTScheduler &rtScheduler, EventDistributor &eventDistributor, InputEventGenerator &inputEventGenerator, CliComm &cliComm, VideoSystem &videoSystem)
std::unique_ptr< Layer > createConsoleLayer(Reactor &reactor, CommandConsole &console) override
static void saveScreenshotSDL(const SDLOutputSurface &output, const std::string &filename)
std::unique_ptr< Layer > createSnowLayer() override
void flushFrameBuffer() override
Copy frame buffer to display buffer.
std::unique_ptr< OutputSurface > createOffScreenSurface() override
Create an off-screen OutputSurface which has similar properties as this VisibleSurface.
std::unique_ptr< Layer > createOSDGUILayer(OSDGUI &gui) override
void fullScreenUpdated(bool fullScreen) override
void clearScreen() override
Clear frame buffer (paint it black).
This file implemented 3 utility functions: