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.

It's 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.

Referenced by getFrameBufferType().

◆ ~SDLGLOutputSurface()

openmsx::SDLGLOutputSurface::~SDLGLOutputSurface ( )
protecteddefault

Referenced by getFrameBufferType().

Member Function Documentation

◆ clearScreen()

void openmsx::SDLGLOutputSurface::clearScreen ( )
protected

◆ flushFrameBuffer()

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

◆ getFrameBufferType()

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

◆ init()

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

◆ saveScreenshot()

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

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