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