fg_ddsetversion()

Win32 DirectX Fastgraph/Light

Prototype

void fg_ddsetversion (int min_ver, int max_ver);

Sub fg_ddsetversion (ByVal min_ver As Long, ByVal max_ver As Long)

procedure fg_ddsetversion (min_ver, max_ver : integer);

Description

The fg_ddsetversion() function defines the highest and lowest DirectX versions under which the program can run. If you don't call fg_ddsetversion(), Fastgraph will use the highest supported version of DirectX available. To require a specific DirectX version, specify that version for both function parameters.

Parameters

min_ver is the lowest DirectX version under which the program can run. It must be between 2 and 7 for DirectDraw programs, or between 5 and 7 for Direct3D programs.

max_ver is the highest DirectX version under which the program can run. It must be greater than or equal to min_ver.

Return value

none

Restrictions

If used, this function must be called before fg_vbinit().

This function is available only in Fastgraph's DirectX libraries.

See also

fg_ddgetversion(), fg_ddsetup(), fg_vbinit()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.