openMSX
GLRGBScaler.hh
Go to the documentation of this file.
1 #ifndef GLRGBSCALER_HH
2 #define GLRGBSCALER_HH
3 
4 #include "GLScaler.hh"
5 
6 namespace openmsx {
7 
8 class RenderSettings;
9 
10 class GLRGBScaler final : public GLScaler
11 {
12 public:
13  GLRGBScaler(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 unifCnsts[2];
25 };
26 
27 } // namespace openmsx
28 
29 #endif // GLSIMPLESCALER_HH
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: GLRGBScaler.cc:18
GLRGBScaler(RenderSettings &renderSettings, GLScaler &fallback)
Definition: GLRGBScaler.cc:6
Abstract base class for OpenGL scalers.
Definition: GLScaler.hh:15
Class containing all settings for renderers.
This file implemented 3 utility functions:
Definition: Autofire.cc:9