openMSX
GLSimpleScaler.hh
Go to the documentation of this file.
1#ifndef GLSIMPLESCALER_HH
2#define GLSIMPLESCALER_HH
3
4#include "GLScaler.hh"
5#include <array>
6
7namespace openmsx {
8
9class RenderSettings;
10
11class GLSimpleScaler final : public GLScaler
12{
13public:
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
22private:
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
Abstract base class for OpenGL scalers.
Definition GLScaler.hh:16
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.
Class containing all settings for renderers.
This file implemented 3 utility functions:
Definition Autofire.cc:11