fg_realize()

Win32 DirectX Fastgraph/Light

Prototype

void fg_realize (HPALETTE hpal);

Sub fg_realize (ByVal hpal As Long)

procedure fg_realize (hpal : HPALETTE);

Description

The fg_realize() function activates or "realizes" a logical palette created with fg_defpal() or fg_logpal(). The colors defined in a logical palette determine the colors in which pixels are displayed in the client area. The WM_SETFOCUS message handler usually calls fg_realize().

Parameters

hpal is a Windows handle to the logical palette, as returned by fg_defpal() or fg_logpal().

Return value

none

Restrictions

none

See also

fg_defpal(), fg_getdacs(), fg_getrgb(), fg_logpal(), fg_setdacs(), fg_setrgb()

Examples

First and all the other example programs use this function.

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.