TOC PREV NEXT INDEX

DefaultLightInfo

Synopsis

define the Graphics Display Kit light information

GDlight_info_templ

group+OPort GDlight_info_templ {
int+read show_lights;
int amb_state;
float amb_col<animate=1>[3];
int nlights;
GDlight_templ+IPort2+read &lights[];
ptr+nonotify local_ptr<NEvisible=0>;
};

GDlight_info

GDlight_info_templ GDlight_info<cxx_name="GDXlight_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.

TOC PREV NEXT INDEX