openMSX
Public Member Functions | List of all members
openmsx::OffScreenSurface Class Referencefinal

This class installs a FrameBufferObject (FBO). More...

#include <OffScreenSurface.hh>

Inheritance diagram for openmsx::OffScreenSurface:
Inheritance graph
[legend]
Collaboration diagram for openmsx::OffScreenSurface:
Collaboration graph
[legend]

Public Member Functions

 OffScreenSurface (const OutputSurface &output)
 
- Public Member Functions inherited from openmsx::OutputSurface
 OutputSurface (const OutputSurface &)=delete
 
 OutputSurface (OutputSurface &&)=delete
 
OutputSurfaceoperator= (const OutputSurface &)=delete
 
OutputSurfaceoperator= (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
 
uint32_t mapRGB (gl::vec3 rgb) const
 Returns the pixel value for the given RGB color.
 
uint32_t mapRGB255 (gl::ivec3 rgb) const
 Same as mapRGB, but RGB components are in range [0..255].
 
Pixel getKeyColor () const
 Returns the color key for this output surface.
 

Additional Inherited Members

- Public Types inherited from openmsx::OutputSurface
using Pixel = uint32_t
 
- Protected Member Functions inherited from openmsx::OutputSurface
 OutputSurface ()=default
 
void calculateViewPort (gl::ivec2 logSize, gl::ivec2 physSize)
 

Detailed Description

This class installs a FrameBufferObject (FBO).

So as long as this object is live, all openGL draw commands will be redirected to this FBO.

Definition at line 12 of file OffScreenSurface.hh.

Constructor & Destructor Documentation

◆ OffScreenSurface()

openmsx::OffScreenSurface::OffScreenSurface ( const OutputSurface output)
explicit

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