fg_vbinit()

Win32 DirectX Fastgraph/Light

Prototype

int fg_vbinit (void);

Function fg_vbinit () As Long

function fg_vbinit : integer;

Description

The fg_vbinit() function initializes Fastgraph's virtual buffer environment. This function must be called once, before any other functions that reference virtual buffers, usually in the WM_CREATE message handler.

In Fastgraph's DirectX libraries, fg_vbinit() also initializes DirectDraw and Direct3D.

Parameters

none

Return value

For Fastgraph's native libraries, the return value will always be zero.

For Fastgraph's DirectX libraries, the possible return values are:

-1 = DirectX not available

0 = Using DirectX with Fastgraph's 3D rendering

1 = Using DirectX with Direct3D software rendering

2 = Using DirectX with Direct3D hardware acceleration

Restrictions

none

See also

fg_ddsetup(), fg_vballoc(), fg_vbdefine(), fg_vbdepth(), fg_vbfin(), fg_vbfree(), fg_vbopen()

Examples

First and all the other example programs use this function.

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.