openMSX
GLSaIScaler.cc
Go to the documentation of this file.
1 #include "GLSaIScaler.hh"
2 
3 namespace openmsx {
4 
6  : GLScaler("sai")
7 {
8 }
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.
Definition: GLSaIScaler.cc:10
Abstract base class for OpenGL scalers.
Definition: GLScaler.hh:15
void setup(bool superImpose)
Definition: GLScaler.cc:39
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.
Definition: GLScaler.cc:45
This file implemented 3 utility functions:
Definition: Autofire.cc:9