openMSX
GLHQScaler.hh
Go to the documentation of this file.
1 #ifndef GLHQSCALER_HH
2 #define GLHQSCALER_HH
3 
4 #include "GLScaler.hh"
5 #include <cstdint>
6 
7 namespace openmsx {
8 
9 class GLHQScaler final : public GLScaler
10 {
11 public:
12  explicit GLHQScaler(GLScaler& fallback);
13 
14  void scaleImage(
15  gl::ColorTexture& src, gl::ColorTexture* superImpose,
16  unsigned srcStartY, unsigned srcEndY, unsigned srcWidth,
17  unsigned dstStartY, unsigned dstEndY, unsigned dstWidth,
18  unsigned logSrcHeight) override;
19  void uploadBlock(
20  unsigned srcStartY, unsigned srcEndY,
21  unsigned lineWidth, FrameSource& paintFrame) override;
22 
23 private:
24  GLScaler& fallback;
25  gl::Texture edgeTexture;
26  gl::Texture offsetTexture[3];
27  gl::Texture weightTexture[3];
28  gl::PixelBuffer<uint16_t> edgeBuffer;
29 };
30 
31 } // namespace openmsx
32 
33 #endif
gl::Texture
Most basic/generic texture: only contains a texture ID.
Definition: GLUtil.hh:35
gl::ColorTexture
Definition: GLUtil.hh:94
GLScaler.hh
openmsx::GLHQScaler
Definition: GLHQScaler.hh:9
gl::PixelBuffer< uint16_t >
openmsx::FrameSource
Interface for getting lines from a video frame.
Definition: FrameSource.hh:13
openmsx::GLScaler
Abstract base class for OpenGL scalers.
Definition: GLScaler.hh:13
openmsx::GLHQScaler::scaleImage
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.
Definition: GLHQScaler.cc:75
openmsx::GLHQScaler::GLHQScaler
GLHQScaler(GLScaler &fallback)
Definition: GLHQScaler.cc:15
openmsx::GLHQScaler::uploadBlock
void uploadBlock(unsigned srcStartY, unsigned srcEndY, unsigned lineWidth, FrameSource &paintFrame) override
Definition: GLHQScaler.cc:107
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5