Class TVideoModeList

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TVideoModeList = class(TReferenceCounted)

Description

A list of all available video modes.
You can get a list via TIrrlichtDevice.GetVideoModeList. If you are confused now, because you think you have to create an Irrlicht Device with a video mode before being able to get the video mode list, let me tell you that there is no need to start up an Irrlicht Device with vdtDirect3D8, vdtOpenGL or vdtSoftware: For this (and for lots of other reasons) the null device, vdtNull, exists.

Hierarchy

Overview

Methods

Public function GetResolutionWithinRange(const MinSize, MaxSize: TSize): TSize; inline;
Public function GetVideoModeDepth(Mode: LongInt): LongInt; inline;
Public function GetVideoModeResolution(Mode: LongInt): TSize; inline;

Properties

Public property DesktopDepth: LongInt read GetDesktopDepth;
Public property DesktopResolution: TSize read GetDesktopResolution;
Public property VideoModeCount: LongInt read GetVideoModeCount;

Description

Methods

Public function GetResolutionWithinRange(const MinSize, MaxSize: TSize): TSize; inline;

Get a supported screen size with certain constraints. MinSize Minimum dimensions required. MaxSize Maximum dimensions allowed.

Returns

Resolution which matches the requirements as good as possible.

Public function GetVideoModeDepth(Mode: LongInt): LongInt; inline;

Returns the depth of a video mode.

Parameters
Mode
The mode to query.
Returns

The depth in bits.

Public function GetVideoModeResolution(Mode: LongInt): TSize; inline;

Returns the resolution of a video mode.

Parameters
Mode
The mode to query.
Returns

The resolution.

Properties

Public property DesktopDepth: LongInt read GetDesktopDepth;

The pixel depth of a video mode in bits.

Public property DesktopResolution: TSize read GetDesktopResolution;

The current desktop screen resolution.

Public property VideoModeCount: LongInt read GetVideoModeCount;

The number of video modes in the list.


Generated by PasDoc 0.12.1 on 2012-09-14 17:32:22