openMSX
GLSimpleScaler.hh
Go to the documentation of this file.
1 #ifndef GLSIMPLESCALER_HH
2 #define GLSIMPLESCALER_HH
3 
4 #include "GLScaler.hh"
5 
6 namespace openmsx {
7 
8 class RenderSettings;
9 
10 class GLSimpleScaler final : public GLScaler
11 {
12 public:
13  GLSimpleScaler(RenderSettings& renderSettings, GLScaler& fallback);
14 
15  void scaleImage(
16  gl::ColorTexture& src, gl::ColorTexture* superImpose,
17  unsigned srcStartY, unsigned srcEndY, unsigned srcWidth,
18  unsigned dstStartY, unsigned dstEndY, unsigned dstWidth,
19  unsigned logSrcHeight) override;
20 
21 private:
22  RenderSettings& renderSettings;
23  GLScaler& fallback;
24  int unifTexStepX[2];
25  int unifCnst[2];
26 };
27 
28 } // namespace openmsx
29 
30 #endif // GLSIMPLESCALER_HH
openmsx::GLSimpleScaler::scaleImage
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: GLSimpleScaler.cc:19
openmsx::RenderSettings
Class containing all settings for renderers.
Definition: RenderSettings.hh:21
gl::ColorTexture
Definition: GLUtil.hh:94
GLScaler.hh
openmsx::GLSimpleScaler
Definition: GLSimpleScaler.hh:10
openmsx::GLSimpleScaler::GLSimpleScaler
GLSimpleScaler(RenderSettings &renderSettings, GLScaler &fallback)
Definition: GLSimpleScaler.cc:6
openmsx::GLScaler
Abstract base class for OpenGL scalers.
Definition: GLScaler.hh:13
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5