define the Graphics Display Kit light information
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_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";
};
GDlight_info _DefaultLightInfo
{
show_lights = 0;
amb_state = 1;
amb_col = {GD_DEFAULT_RED, GD_DEFAULT_GREEN,
GD_DEFAULT_BLUE};
};
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.
Libraries.Graphics_Display.Views.View3D