openMSX
SDLGLOffScreenSurface.hh
Go to the documentation of this file.
1 #ifndef SDLGLOFFSCREENSURFACE_HH
2 #define SDLGLOFFSCREENSURFACE_HH
3 
4 #include "OutputSurface.hh"
5 #include "SDLGLOutputSurface.hh"
6 #include "GLUtil.hh"
7 
8 namespace openmsx {
9 
10 class SDLGLVisibleSurface;
11 
16 {
17 public:
18  explicit SDLGLOffScreenSurface(const SDLGLVisibleSurface& output);
19 
20 private:
21  // OutputSurface
22  void saveScreenshot(const std::string& filename) override;
23  void flushFrameBuffer() override;
24  void clearScreen() override;
25 
26  gl::Texture fboTex;
28 };
29 
30 } // namespace openmsx
31 
32 #endif
Most basic/generic texture: only contains a texture ID.
Definition: GLUtil.hh:35
A frame buffer where pixels can be written to.
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
Visible surface for openGL renderers, both SDLGL-PP and SDLGL-FBxx.
This is a common base class for SDLGLVisibleSurface and SDLGLOffScreenSurface.
This class installs a FrameBufferObject (FBO).
SDLGLOffScreenSurface(const SDLGLVisibleSurface &output)