openMSX
GLHQLiteScaler.hh
Go to the documentation of this file.
1#ifndef GLHQLITESCALER_HH
2#define GLHQLITESCALER_HH
3
4#include "GLScaler.hh"
5#include "GLUtil.hh"
6#include <array>
7#include <cstdint>
8
9namespace openmsx {
10
11class GLHQLiteScaler final : public GLScaler
12{
13public:
14 explicit GLHQLiteScaler(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 void uploadBlock(
22 unsigned srcStartY, unsigned srcEndY,
23 unsigned lineWidth, FrameSource& paintFrame) override;
24
25private:
26 GLScaler& fallback;
27 gl::Texture edgeTexture;
28 std::array<gl::Texture, 3> offsetTexture;
30};
31
32} // namespace openmsx
33
34#endif
Wrapper around a pixel buffer.
Definition GLUtil.hh:155
Most basic/generic texture: only contains a texture ID.
Definition GLUtil.hh:39
Interface for getting lines from a video frame.
void uploadBlock(unsigned srcStartY, unsigned srcEndY, unsigned lineWidth, FrameSource &paintFrame) override
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
This file implemented 3 utility functions:
Definition Autofire.cc:11