Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Paradox.Graphics.DisplayMode Class Reference

Describes the display mode. More...

Public Member Functions

 DisplayMode (PixelFormat format, int width, int height, Rational refreshRate)
 Initializes a new instance of the DisplayMode class. More...
 
override string ToString ()
 Retrieves a string representation of this object. More...
 

Public Attributes

readonly PixelFormat Format
 Gets a value indicating the surface format of the display mode. More...
 
readonly int Width
 Gets a value indicating the screen width, in pixels. More...
 
readonly int Height
 Gets a value indicating the screen height, in pixels. More...
 
readonly Rational RefreshRate
 Gets a value indicating the refresh rate More...
 

Properties

float AspectRatio [get]
 Gets the aspect ratio used by the graphics device. More...
 

Detailed Description

Describes the display mode.

Definition at line 10 of file DisplayMode.cs.

Constructor & Destructor Documentation

SiliconStudio.Paradox.Graphics.DisplayMode.DisplayMode ( PixelFormat  format,
int  width,
int  height,
Rational  refreshRate 
)

Initializes a new instance of the DisplayMode class.

Parameters
formatThe format.
widthThe width.
heightThe height.
refreshRateThe refresh rate.

Definition at line 19 of file DisplayMode.cs.

References DirectX.format.

Member Function Documentation

override string SiliconStudio.Paradox.Graphics.DisplayMode.ToString ( )

Retrieves a string representation of this object.

Returns

Definition at line 66 of file DisplayMode.cs.

Member Data Documentation

readonly PixelFormat SiliconStudio.Paradox.Graphics.DisplayMode.Format

Gets a value indicating the surface format of the display mode.

Definition at line 45 of file DisplayMode.cs.

readonly int SiliconStudio.Paradox.Graphics.DisplayMode.Height

Gets a value indicating the screen height, in pixels.

Definition at line 55 of file DisplayMode.cs.

readonly Rational SiliconStudio.Paradox.Graphics.DisplayMode.RefreshRate

Gets a value indicating the refresh rate

Definition at line 60 of file DisplayMode.cs.

readonly int SiliconStudio.Paradox.Graphics.DisplayMode.Width

Gets a value indicating the screen width, in pixels.

Definition at line 50 of file DisplayMode.cs.

Property Documentation

float SiliconStudio.Paradox.Graphics.DisplayMode.AspectRatio
get

Gets the aspect ratio used by the graphics device.

Definition at line 31 of file DisplayMode.cs.


The documentation for this class was generated from the following file: