openMSX
|
#include <SDLOffScreenSurface.hh>
Public Member Functions | |
SDLOffScreenSurface (const SDL_Surface &prototype) | |
Public Member Functions inherited from openmsx::SDLOutputSurface | |
SDLOutputSurface (const SDLOutputSurface &)=delete | |
SDLOutputSurface & | operator= (const SDLOutputSurface &)=delete |
SDL_Surface * | getSDLSurface () const |
SDL_Renderer * | getSDLRenderer () const |
SDLDirectPixelAccess | getDirectPixelAccess () |
Return a SDLDirectPixelAccess object. More... | |
virtual void | flushFrameBuffer () |
Copy frame buffer to display buffer. More... | |
virtual void | clearScreen () |
Clear frame buffer (paint it black). More... | |
Public Member Functions inherited from openmsx::OutputSurface | |
OutputSurface (const OutputSurface &)=delete | |
OutputSurface & | operator= (const OutputSurface &)=delete |
virtual | ~OutputSurface ()=default |
int | getLogicalWidth () const |
int | getLogicalHeight () const |
gl::ivec2 | getLogicalSize () const |
gl::ivec2 | getPhysicalSize () const |
gl::ivec2 | getViewOffset () const |
gl::ivec2 | getViewSize () const |
gl::vec2 | getViewScale () const |
bool | isViewScaled () const |
const PixelFormat & | getPixelFormat () const |
uint32_t | mapRGB (gl::vec3 rgb) const |
Returns the pixel value for the given RGB color. More... | |
uint32_t | mapRGB255 (gl::ivec3 rgb) const |
Same as mapRGB, but RGB components are in range [0..255]. More... | |
template<std::unsigned_integral Pixel> | |
Pixel | getKeyColor () const |
Returns the color key for this output surface. More... | |
template<std::unsigned_integral Pixel> | |
Pixel | getKeyColorClash () const |
Returns a color that is visually very close to the key color. More... | |
template<std::unsigned_integral Pixel> | |
Pixel | mapKeyedRGB255 (gl::ivec3 rgb) |
Returns the pixel value for the given RGB color. More... | |
template<std::unsigned_integral Pixel> | |
Pixel | mapKeyedRGB (gl::vec3 rgb) |
Returns the pixel value for the given RGB color. More... | |
virtual void | saveScreenshot (const std::string &filename)=0 |
Save the content of this OutputSurface to a PNG file. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from openmsx::SDLOutputSurface | |
SDLOutputSurface ()=default | |
void | setSDLPixelFormat (const SDL_PixelFormat &format) |
void | setSDLSurface (SDL_Surface *surface_) |
void | setSDLRenderer (SDL_Renderer *r) |
Protected Member Functions inherited from openmsx::OutputSurface | |
OutputSurface ()=default | |
void | calculateViewPort (gl::ivec2 logSize, gl::ivec2 physSize) |
void | setPixelFormat (const PixelFormat &format) |
void | setOpenGlPixelFormat () |
Definition at line 11 of file SDLOffScreenSurface.hh.
|
explicit |
Definition at line 8 of file SDLOffScreenSurface.cc.
References openmsx::OutputSurface::calculateViewPort(), openmsx::MemBuffer< T, ALIGNMENT >::data(), ranges::fill(), SDLSurfacePtr::get(), openmsx::PixelFormat::getAmask(), openmsx::PixelFormat::getBmask(), openmsx::PixelFormat::getBpp(), openmsx::PixelFormat::getBytesPerPixel(), openmsx::PixelFormat::getGmask(), openmsx::OutputSurface::getPixelFormat(), openmsx::PixelFormat::getRmask(), SDLSurfacePtr::reset(), openmsx::MemBuffer< T, ALIGNMENT >::resize(), openmsx::SDLOutputSurface::setSDLPixelFormat(), openmsx::SDLOutputSurface::setSDLRenderer(), openmsx::SDLOutputSurface::setSDLSurface(), and utf8::unchecked::size().