fg_setcolor()

Win32 DirectX Fastgraph/Light

Prototype

void fg_setcolor (int color);

Sub fg_setcolor (ByVal color As Long)

procedure fg_setcolor (color : integer);

Description

The fg_setcolor() function establishes the current color.

Parameters

color defines the current color. For 256-color virtual buffers, color must be between 0 and 255. For high color virtual buffers, color must be a 16-bit encoded RGB value; for true color virtual buffers, it must be a 32-bit xRGB value.

Return value

none

Restrictions

none

See also

fg_colors(), fg_getcolor(), fg_maprgb(), fg_realize(), fg_setcolorrgb()

Examples

First and nearly all the other example programs use this function.

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.