SchemeExt:Light:list

From DocR21

Jump to: navigation, search

Contents

Action

Gets the list of active lights.

Filename

scm/scmext/rnd/lite_scm.cpp

APIs

api_rh_get_light_list

Syntax

(light:list)

Argument Types

None

Returns

(light...)

Description

This extension returns the list of all active lights.

Example

; light:list
; Set active light 1.
(define distant1 (light "distant"))
;; distant1
; Set active light 2.
(define spot1 (light "spot"))
;; spot1
; Set active light 3.
(define ambient1 (light "ambient"))
;; ambient1
; Put the three active lights into the light list.
(light:set #t (list distant1 spot1 ambient1))
;; ()
; Get the list of all active lights.
(light:list)
;; (#[entity 2 1] #[entity 3 1] #[entity 4 1])
Personal tools
Live