Table of Contents

Class DisplaySettings

Namespace
AlphaFramework.Presentation.Config
Assembly
AlphaFramework.Presentation.dll

Stores display settings (resolution, etc.). Changes here require the engine to be reset.

public sealed class DisplaySettings
Inheritance
DisplaySettings
Inherited Members
Extension Methods

Properties

AntiAliasing

The level of anti aliasing to use

public int AntiAliasing { get; set; }

Property Value

int

AntiAliasingText

The level of anti aliasing to use - as a string followed by an x

[Browsable(false)]
public string AntiAliasingText { get; set; }

Property Value

string

ForceShaderModel

Forces the usage of a certain shader model version without checking the hardware capabilities - requires restart to become effective

public string? ForceShaderModel { get; set; }

Property Value

string

Fullscreen

Run game in fullscreen mode

public bool Fullscreen { get; set; }

Property Value

bool

Resolution

The monitor resolution for fullscreen mode

public Size Resolution { get; set; }

Property Value

Size

ResolutionText

The monitor resolution for fullscreen mode - as a string followed with an x between the components

[Browsable(false)]
public string ResolutionText { get; set; }

Property Value

string

VSync

Synchronize the framerate with the monitor's refresh rate

public bool VSync { get; set; }

Property Value

bool

WindowSize

The size of the render window

public Size WindowSize { get; set; }

Property Value

Size

Methods

ToEngineConfig(Size?)

Generates EngineConfig from the settings.

public EngineConfig ToEngineConfig(Size? windowClientSize)

Parameters

windowClientSize Size?

The client size if running in windowed mode; null if running in fullscreen mode.

Returns

EngineConfig

Events

Changed

Occurs when a setting in this group is changed.

public event Action Changed

Event Type

Action

See Also