DefaultLightInfo

Synopsis

define the Graphics Display Kit light information

GDlight_info_templ

group+OPort _GDlight_info_templ
{
int_ show_lights;
int _amb_state;
float _amb_col[3];
int _nlights;
GDlight_templ+IPort2 _&lights[];
ptr+nonotify _local_ptr;
};

GDlight_info

GDlight_info_templ _GDlight_info
{
nlights => array_size(lights);
local_ptr+write;
method+notify_inst+notify_val upd_func = "GDlight_info_update";
method+notify_deinst del_func = "GDlight_info_delete";
};

DefaultLightInfo


GDlight_info _DefaultLightInfo
{
show_lights = 0;
amb_state = 1;
amb_col = {GD_DEFAULT_RED, GD_DEFAULT_GREEN,
GD_DEFAULT_BLUE};
};

Description

These templates define the Graphics Display Kit light information. GDlight_info_templ defines the elements that cause the light information's methods to execute. GDlight_info defines an instanceable version without default values. DefaultLightInfo defines an instanceable version with default values.

Input

lights

An array of lights that is associated with the light information object. lights is one or more connections to objects that match type GDlight_templ.

Parameters

show_lights

This parameter controls whether icons for the light sources appear on the screen: 0 means no; 1 means yes. This parameter is currently unsupported.

amb_state

This parameter controls if ambient lighting is enabled or disabled: 0 means disabled; 1 means enabled.

amb_col

This parameter controls the ambient light's color, in terms of RGB.

nlights

The number of lights connected to the light information. nlights is automatically updated when the size of the array changes.

Example

Libraries.Graphics_Display.Views.View3D

File

v/gdif.v

See also related modules

Not Applicable.