fg_vbopen()

Win32 DirectX Fastgraph/Light

Prototype

int fg_vbopen (int handle);

Function fg_vbopen (ByVal handle As Long) As Long

function fg_vbopen (handle : integer) : integer;

Description

The fg_vbopen() function makes an existing virtual buffer the active virtual buffer. If another virtual buffer is open when you call fg_vbopen(), that virtual buffer is first closed.

Parameters

handle is the handle of the desired virtual buffer, as returned by fg_vballoc() or fg_vbdefine(). Its value must be a valid virtual buffer handle.

Return value

0 = Virtual buffer opened successfully

-1 = Invalid virtual buffer handle

-2 = No virtual buffer yet defined for specified handle

Restrictions

none

See also

fg_vballoc(), fg_vbclose(), fg_vbdefine(), fg_vbinit()

Examples

First and all the other example programs use this function.

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.