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
openmsx::RenderSettings
Class containing all settings for renderers.
Definition: RenderSettings.hh:22
gl::ColorTexture
Definition: GLUtil.hh:100
openmsx::GLRGBScaler
Definition: GLRGBScaler.hh:11
openmsx::GLRGBScaler::GLRGBScaler
GLRGBScaler(RenderSettings &renderSettings, GLScaler &fallback)
Definition: GLRGBScaler.cc:6
GLScaler.hh
openmsx::GLRGBScaler::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: GLRGBScaler.cc:18
openmsx::GLScaler
Abstract base class for OpenGL scalers.
Definition: GLScaler.hh:14
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5