openMSX
|
This class installs a FrameBufferObject (FBO). More...
#include <OffScreenSurface.hh>
Public Member Functions | |
OffScreenSurface (const OutputSurface &output) | |
Public Member Functions inherited from openmsx::OutputSurface | |
OutputSurface (const OutputSurface &)=delete | |
OutputSurface (OutputSurface &&)=delete | |
OutputSurface & | operator= (const OutputSurface &)=delete |
OutputSurface & | operator= (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) |
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.
|
explicit |
Definition at line 7 of file OffScreenSurface.cc.
References gl::Texture::bind(), openmsx::OutputSurface::calculateViewPort(), openmsx::OutputSurface::getLogicalSize(), openmsx::OutputSurface::getPhysicalSize(), and gl::FrameBufferObject::push().