1#ifndef RENDERSETTINGS_HH
2#define RENDERSETTINGS_HH
15class CommandController;
101 return (horizontalBlurSetting.
getInt()) * 256 / 100;
107 return 255 - ((scanlineAlphaSetting.
getInt() * 255) / 100);
111 return narrow<float>(scanlineAlphaSetting.
getInt()) * 0.01f;
117 auto r = rendererSetting.
getEnum();
124 return scaleAlgorithmSetting.
getEnum();
164 return horizontalStretchSetting;
167 return horizontalStretchSetting.
getFloat();
173 return pointerHideDelaySetting;
176 return pointerHideDelaySetting.
getFloat();
181 return interleaveBlackFrameSetting.
getBoolean();
211 void updateBrightnessAndContrast();
bool getBoolean() const noexcept
T getEnum() const noexcept
A Setting with a floating point value.
float getFloat() const noexcept
A Setting with an integer value.
int getInt() const noexcept
Generic Gang-of-Four Observer class, templatized edition.
Class containing all settings for renderers.
bool getDeflicker() const
BooleanSetting & getDeinterlaceSetting()
Deinterlacing [on, off].
IntegerSetting & getBlurSetting()
The amount of horizontal blur [0..256].
float getBrightness() const
bool getDeinterlace() const
EnumSetting< bool > & getCmdTimingSetting()
CmdTiming [real, broken].
RendererSetting & getRendererSetting()
The current renderer.
auto & getScaleAlgorithmSetting()
The current scaling algorithm.
float transformComponent(float c) const
Apply brightness, contrast and gamma transformation on the input color component.
gl::vec3 transformRGB(gl::vec3 rgb) const
Apply brightness, contrast and gamma transformation on the input color.
bool isColorMatrixIdentity() const
Returns true iff the current color matrix is the identity matrix.
FloatSetting & getPointerHideDelaySetting()
The amount of time until the pointer is hidden in the openMSX window.
Accuracy
Render accuracy: granularity of the rendered area.
FloatSetting & getContrastSetting()
Contrast video setting.
int getScanlineFactor() const
BooleanSetting & getDisableSpritesSetting()
Disable sprite rendering?
bool getInterleaveBlackFrame() const
Is black frame interleaving enabled?
FloatSetting & getNoiseSetting()
The amount of noise to add to the frame.
IntegerSetting & getMinFrameSkipSetting()
The current min frameskip.
float getScanlineGap() const
The amount of space [0..1] between scanlines.
EnumSetting< Accuracy > & getAccuracySetting()
Accuracy [screen, line, pixel].
BooleanSetting & getFullScreenSetting()
Full screen [on, off].
IntegerSetting & getScaleFactorSetting()
The current scaling factor.
RendererID getRenderer() const
Accuracy getAccuracy() const
float getHorizontalStretch() const
FloatSetting & getBrightnessSetting()
Brightness video setting.
float getPointerHideDelay() const
EnumSetting< RendererID > RendererSetting
BooleanSetting & getVSyncSetting()
VSync [on, off].
IntegerSetting & getGlowSetting()
The amount of glow [0..100].
IntegerSetting & getScanlineSetting()
The alpha value [0..255] of the gap between scanlines.
int getScaleFactor() const
int getMinFrameSkip() const
int getMaxFrameSkip() const
DisplayDeform getDisplayDeform() const
FloatSetting & getGammaSetting()
The amount of gamma correction.
EnumSetting< bool > & getTooFastAccessSetting()
TooFastAccess [real, ignored].
ScaleAlgorithm
Scaler algorithm.
BooleanSetting & getDeflickerSetting()
Deflicker [on, off].
int getBlurFactor() const
bool getDisableSprites() const
bool getFullScreen() const
auto & getDisplayDeformSetting()
Display deformation (normal, 3d).
RendererID
Enumeration of Renderers known to openMSX.
float getContrast() const
FloatSetting & getHorizontalStretchSetting()
Amount of horizontal stretch.
IntegerSetting & getMaxFrameSkipSetting()
The current max frameskip.
StringSetting & getColorMatrixSetting()
Color matrix setting.
BooleanSetting & getLimitSpritesSetting()
Limit number of sprites per line? If true, limit number of sprites per line as real VDP does.
ScaleAlgorithm getScaleAlgorithm() const
This file implemented 3 utility functions: