OXYGENHUB
◆ main openmsx / src / video / scalers / GLSimpleScaler.hh
674 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef GLSIMPLESCALER_HH
2
#define GLSIMPLESCALER_HH
3
4
#include "GLScaler.hh"
5
#include <array>
6
7
namespace openmsx {
8
9
class RenderSettings;
10
11
class GLSimpleScaler final : public GLScaler
12
{
13
public:
14
	GLSimpleScaler(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> unifTexStepX;
26
	std::array<int, 2> unifCnst;
27
};
28
29
} // namespace openmsx
30
31
#endif // GLSIMPLESCALER_HH