fg_flicopen()

Win32 DirectX Fastgraph/Light

Prototype

int fg_flicopen (char *filename, void *context);

Function fg_flicopen (ByVal filename As String, context() As Any) As Long

function fg_flicopen (filename : string; var context) : integer;

Description

The fg_flicopen() function opens an FLI or FLC file (collectively called flic files) for subsequent processing by Fastgraph's other low-level flic file support functions. If successful, the file pointer will be positioned at the beginning of the first frame.

Parameters

filename is the name of the flic file. A device and path name may be included as part of the file name. The file name must be terminated by a zero byte.

context is the name of a 16-byte buffer that will receive the flic file context descriptor. The descriptor values will only be meaningful if the return value is zero.

Return value

0 = FLI/FLC file opened successfully

-1 = The specified file does not exist

-2 = The specified file is not an FLI or FLC file

Restrictions

none

See also

fg_flicdone(), fg_flicplay(), fg_flicskip(), fg_showflic()

Examples

AVImake, Image

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.