element_generate, element_list_generate

The element_generate function does the final color mapping of a gauge image to the Flight Simulator 98 palette, plus the thirty-two colors specified in the Panel.cfg file; the element_list_generate does the final color mapping of all gauge images in the element list to the Flight Simulator 98 palette, plus the thirty-two colors specified in the Panel.cfg file.

Syntax

element_generate(PELEMENT_HEADER element, GENERATE_PHASE phase)

element_list_generate(PELEMENT_HEADER element, GENERATE_PHASE phase)

The element_generate and element_list_generate functions have these parameters:

Parameter Description
PELEMENT_HEADER
element Pointer to one or more elements to initialize.
GENERATE_PHASE phase Not currently defined. Pass from generate_routine to either element_generate or element_list_generate.

Example

void generate_routine(GENERATE_PHASE phase)

{

element_list_generate(list, phase);

}