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 ()
 
virtual void scaleImage (ColorTexture &src, 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 ()
 
virtual ~GLScaler ()
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::GLScaler
void drawMultiTex (ColorTexture &src, unsigned srcStartY, unsigned srcEndY, float physSrcHeight, float logSrcHeight, unsigned dstStartY, unsigned dstEndY, unsigned dstWidth, bool textureFromZero=false)
 Helper method to draw a rectangle with multiple texture coordinates. More...
 

Detailed Description

Definition at line 11 of file GLHQLiteScaler.hh.

Constructor & Destructor Documentation

openmsx::GLHQLiteScaler::GLHQLiteScaler ( )

Member Function Documentation

void openmsx::GLHQLiteScaler::scaleImage ( ColorTexture src,
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 74 of file GLHQLiteScaler.cc.

References openmsx::Texture::bind(), openmsx::Texture::disableInterpolation(), openmsx::GLScaler::drawMultiTex(), openmsx::Texture::enableInterpolation(), openmsx::ColorTexture::getHeight(), and openmsx::GLScaler::scaleImage().

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

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