fg_showflic()Win32 DirectX Fastgraph/Light Prototype int fg_showflic (char *filename, int count, int flags); Function fg_showflic (ByVal filename As String, ByVal count As Long, ByVal flags As Long) As Long function fg_showflic (filename : string; count, flags : integer) : integer; Description The fg_showflic() function plays an animation sequence from an FLI or FLC file (collectively called flic files). Each frame in the flic file is played in the active virtual buffer and then scaled to fit the client area. For 256-color virtual buffers, flic files are reduced to the 236 non-system colors if color reduction is enabled. 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. count is the number of times to play the flic image. If count is zero, the flic plays continuously. You can stop the flic play at any time by pressing the Escape key. flags is a series of flags that controls how the image is played:
Return value 0 = Success 1 = The specified file does not exist 2 = The specified file is not a flic file Restrictions A logical palette must be defined and realized in order to use the palette values stored in the flic file. When using DirectX, the active virtual buffer must not be locked. See also fg_flichead(), fg_flicplay(), fg_flicsize(), fg_imagebuf(), fg_realize() Examples
|
 
copyright 2001 Ted Gruber Software, Inc.