OXYGENHUB
◆ main openmsx / src / video / scalers / GLRGBScaler.hh
629 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 1
#ifndef GLRGBSCALER_HH
2
#define GLRGBSCALER_HH
3
4
#include "GLScaler.hh"
5
#include <array>
6
7
namespace openmsx {
8
9
class RenderSettings;
10
11
class GLRGBScaler final : public GLScaler
12
{
13
public:
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
22
private:
23
	RenderSettings& renderSettings;
24
	GLScaler& fallback;
25
	std::array<int, 2> unifCnsts;
26
};
27
28
} // namespace openmsx
29
30
#endif // GLSIMPLESCALER_HH