1#ifndef RENDERSETTINGS_HH
2#define RENDERSETTINGS_HH
15class CommandController;
97 return (horizontalBlurSetting.
getInt()) * 256 / 100;
102 return 255 - ((scanlineAlphaSetting.
getInt() * 255) / 100);
107 return narrow<float>(scanlineAlphaSetting.
getInt()) * 0.01f;
116 return scaleAlgorithmSetting.
getEnum();
156 return horizontalStretchSetting;
159 return horizontalStretchSetting.
getFloat();
165 return pointerHideDelaySetting;
168 return pointerHideDelaySetting.
getFloat();
173 return interleaveBlackFrameSetting.
getBoolean();
203 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
Deflicker [on, off].
float getBrightness() const
bool getDeinterlace() const
Deinterlacing [on, off].
EnumSetting< bool > & getCmdTimingSetting()
CmdTiming [real, broken].
RendererSetting & getRendererSetting()
The current renderer.
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 getGlow() const
The amount of glow [0..100].
int getScanlineFactor() const
The alpha value [0..255] of the gap between scanlines.
bool getInterleaveBlackFrame() const
Is black frame interleaving enabled?
FloatSetting & getNoiseSetting()
The amount of noise to add to the frame.
RenderSettings(CommandController &commandController)
IntegerSetting & getMinFrameSkipSetting()
The current min frameskip.
float getScanlineGap() const
The amount of space [0..1] between scanlines.
BooleanSetting & getFullScreenSetting()
Full screen [on, off].
IntegerSetting & getScaleFactorSetting()
The current scaling factor.
RendererID getRenderer() const
Accuracy getAccuracy() const
Accuracy [screen, line, pixel].
float getHorizontalStretch() const
FloatSetting & getBrightnessSetting()
Brightness video setting.
float getPointerHideDelay() const
EnumSetting< RendererID > RendererSetting
BooleanSetting & getVSyncSetting()
VSync [on, off] ATM this only works when using the SDLGL-PP renderer.
int getScaleFactor() const
int getMinFrameSkip() const
int getMaxFrameSkip() const
FloatSetting & getGammaSetting()
The amount of gamma correction.
EnumSetting< bool > & getTooFastAccessSetting()
TooFastAccess [real, ignored].
ScaleAlgorithm
Scaler algorithm.
int getBlurFactor() const
The amount of horizontal blur [0..256].
bool getDisableSprites() const
Disable sprite rendering?
bool getFullScreen() const
DisplayDeform getDisplayDeform()
Display deformation (normal, 3d) ATM this only works when using the SDLGL-PP renderer.
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
The current scaling algorithm.
This file implemented 3 utility functions: