openMSX
Public Types | Public Member Functions | Protected Member Functions | List of all members
openmsx::SDLGLOutputSurface Class Reference

This is a common base class for SDLGLVisibleSurface and SDLGLOffScreenSurface. More...

#include <SDLGLOutputSurface.hh>

Inheritance diagram for openmsx::SDLGLOutputSurface:
Inheritance graph
[legend]

Public Types

enum  FrameBuffer { FB_NONE, FB_16BPP, FB_32BPP }
 These correspond respectively with the renderers: SDLGL-PP, SDLGL-FB16, SDLGL-FB32. More...
 

Public Member Functions

FrameBuffer getFrameBufferType () const
 

Protected Member Functions

 SDLGLOutputSurface (FrameBuffer frameBuffer=FB_NONE)
 
 ~SDLGLOutputSurface ()=default
 
void init (OutputSurface &output)
 
void flushFrameBuffer (unsigned width, unsigned height)
 
void clearScreen ()
 
void saveScreenshot (const std::string &filename, const OutputSurface &output) const
 

Detailed Description

This is a common base class for SDLGLVisibleSurface and SDLGLOffScreenSurface.

Its only purpose is to have a place to put common code.

Definition at line 16 of file SDLGLOutputSurface.hh.

Member Enumeration Documentation

◆ FrameBuffer

These correspond respectively with the renderers: SDLGL-PP, SDLGL-FB16, SDLGL-FB32.

Enumerator
FB_NONE 
FB_16BPP 
FB_32BPP 

Definition at line 22 of file SDLGLOutputSurface.hh.

Constructor & Destructor Documentation

◆ SDLGLOutputSurface()

openmsx::SDLGLOutputSurface::SDLGLOutputSurface ( FrameBuffer  frameBuffer = FB_NONE)
explicitprotected

Definition at line 15 of file SDLGLOutputSurface.cc.

References openmsx::EnumSetting< T >::getEnum().

◆ ~SDLGLOutputSurface()

openmsx::SDLGLOutputSurface::~SDLGLOutputSurface ( )
protecteddefault

Member Function Documentation

◆ clearScreen()

void openmsx::SDLGLOutputSurface::clearScreen ( )
protected

Definition at line 100 of file SDLGLOutputSurface.cc.

References openmsx::EnumSetting< T >::getEnum().

◆ flushFrameBuffer()

void openmsx::SDLGLOutputSurface::flushFrameBuffer ( unsigned  width,
unsigned  height 
)
protected

Definition at line 62 of file SDLGLOutputSurface.cc.

References openmsx::EnumSetting< T >::getEnum().

◆ getFrameBufferType()

FrameBuffer openmsx::SDLGLOutputSurface::getFrameBufferType ( ) const
inline

Definition at line 24 of file SDLGLOutputSurface.hh.

◆ init()

void openmsx::SDLGLOutputSurface::init ( OutputSurface output)
protected

Definition at line 21 of file SDLGLOutputSurface.cc.

References openmsx::EnumSetting< T >::getEnum().

◆ saveScreenshot()

void openmsx::SDLGLOutputSurface::saveScreenshot ( const std::string &  filename,
const OutputSurface output 
) const
protected

Definition at line 106 of file SDLGLOutputSurface.cc.

References openmsx::EnumSetting< T >::getEnum().


The documentation for this class was generated from the following files: