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
Abstract base class for OpenGL scalers.
Definition: GLScaler.hh:14
GLSimpleScaler(RenderSettings &renderSettings, GLScaler &fallback)
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.
Class containing all settings for renderers.
This file implemented 3 utility functions:
Definition: Autofire.cc:9