OXYGENHUB
◆ main openmsx / src / video / scalers / GLTVScaler.hh
658 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef GLTVSCALER_HH
2
#define GLTVSCALER_HH
3
4
#include "GLScaler.hh"
5
#include "GLUtil.hh"
6
#include <array>
7
8
namespace openmsx {
9
10
class RenderSettings;
11
12
class GLTVScaler final : public GLScaler
13
{
14
public:
15
	explicit GLTVScaler(RenderSettings& renderSettings);
16
17
	void scaleImage(
18
		gl::ColorTexture& src, gl::ColorTexture* superImpose,
19
		unsigned srcStartY, unsigned srcEndY, unsigned srcWidth,
20
		unsigned dstStartY, unsigned dstEndY, unsigned dstWidth,
21
		unsigned logSrcHeight) override;
22
23
private:
24
	RenderSettings& renderSettings;
25
	std::array<GLint, 2> unifMinScanline;
26
	std::array<GLint, 2> unifSizeVariance;
27
};
28
29
} // namespace openmsx
30
31
#endif // GLTVSCALER_HH