openMSX
GLDefaultScaler.cc
Go to the documentation of this file.
1#include "GLDefaultScaler.hh"
2
3namespace openmsx {
4
9
11 gl::ColorTexture& src, gl::ColorTexture* superImpose,
12 unsigned srcStartY, unsigned srcEndY, unsigned srcWidth,
13 unsigned dstStartY, unsigned dstEndY, unsigned dstWidth,
14 unsigned logSrcHeight)
15{
16 setup(superImpose != nullptr);
17 execute(src, superImpose,
18 srcStartY, srcEndY, srcWidth,
19 dstStartY, dstEndY, dstWidth,
20 logSrcHeight);
21}
22
23} // namespace openmsx
void scaleImage(gl::ColorTexture &src, gl::ColorTexture *superImpose, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, unsigned dstStartY, unsigned dstEndY, unsigned dstWidth, unsigned logSrcHeight) override
Scales the image in the given area, which must consist of lines which are all equally wide.
Abstract base class for OpenGL scalers.
Definition GLScaler.hh:16
void setup(bool superImpose)
Setup scaler.
Definition GLScaler.cc:40
void execute(const gl::ColorTexture &src, const 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.
Definition GLScaler.cc:48
This file implemented 3 utility functions:
Definition Autofire.cc:11