fg_modetest()

Win32 DirectX Fastgraph/Light

Prototype

int fg_modetest (int width, int height, int depth);

Function fg_modetest (ByVal width As Long, ByVal height As Long, ByVal depth As Long) As Long

function fg_modetest (width, height, depth : integer) : integer;

Description

The fg_modetest() function checks if the requested display resolution and color depth are supported when using Fastgraph's native libraries.

Parameters

width is the requested horizontal resolution in pixels.

height is the requested vertical resolution in pixels.

depth is requested new color depth in bits per pixel. It must be 8, 16, 24, or 32.

Return value

<0 = The requested mode is not available

0 = The requested mode is available

1 = The requested mode is available, but Windows must first be restarted

Restrictions

none

See also

fg_colors(), fg_modeset()

Examples

Display

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.