openMSX
Public Member Functions | List of all members
openmsx::GLHQLiteScaler Class Reference

#include <GLHQLiteScaler.hh>

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

Public Member Functions

 GLHQLiteScaler (GLScaler &fallback)
 
virtual void scaleImage (gl::ColorTexture &src, gl::ColorTexture *superImpose, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, unsigned dstStartY, unsigned dstEndY, unsigned dstWidth, unsigned logSrcHeight)
 Scales the image in the given area, which must consist of lines which are all equally wide. More...
 
virtual void uploadBlock (unsigned srcStartY, unsigned srcEndY, unsigned lineWidth, FrameSource &paintFrame)
 
- Public Member Functions inherited from openmsx::GLScaler
 GLScaler (const std::string &progName)
 
virtual ~GLScaler ()
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::GLScaler
void setup (bool superImpose)
 
void execute (gl::ColorTexture &src, gl::ColorTexture *superImpose, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, unsigned dstStartY, unsigned dstEndY, unsigned dstWidth, unsigned logSrcHeight, bool textureFromZero=false)
 Helper method to draw a rectangle with multiple texture coordinates. More...
 
- Protected Attributes inherited from openmsx::GLScaler
gl::ShaderProgram program [2]
 
GLint unifTexSize [2]
 

Detailed Description

Definition at line 11 of file GLHQLiteScaler.hh.

Constructor & Destructor Documentation

openmsx::GLHQLiteScaler::GLHQLiteScaler ( GLScaler fallback)
explicit

Member Function Documentation

void openmsx::GLHQLiteScaler::scaleImage ( gl::ColorTexture src,
gl::ColorTexture superImpose,
unsigned  srcStartY,
unsigned  srcEndY,
unsigned  srcWidth,
unsigned  dstStartY,
unsigned  dstEndY,
unsigned  dstWidth,
unsigned  logSrcHeight 
)
virtual

Scales the image in the given area, which must consist of lines which are all equally wide.

Scaling factor depends on the concrete scaler.

Parameters
srcSource: texture containing the frame to be scaled.
superImposeTexture containing the to-be-superimposed image (can be nullptr).
srcStartYY-coordinate of the top source line (inclusive).
srcEndYY-coordinate of the bottom source line (exclusive).
srcWidthThe number of pixels per line for the given area.
dstStartYY-coordinate of the top destination line (inclusive).
dstEndYY-coordinate of the bottom destination line (exclusive).
dstWidthThe number of pixels per line on the output screen.
logSrcHeightThe logical height of the complete src texture (actual texture height can be double as high in case of non-interlace). This is needed to translate src-Y-coordinates to superImpose-Y-coordinates.

Implements openmsx::GLScaler.

Definition at line 60 of file GLHQLiteScaler.cc.

References gl::Texture::bind(), openmsx::GLScaler::execute(), openmsx::GLScaler::scaleImage(), gl::Texture::setInterpolation(), and openmsx::GLScaler::setup().

void openmsx::GLHQLiteScaler::uploadBlock ( unsigned  srcStartY,
unsigned  srcEndY,
unsigned  lineWidth,
FrameSource paintFrame 
)
virtual

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