The window's light on while no frame of the scene has a light source.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(WindowProxy), | intent(inout) | :: | self | |||
| class(ReferenceFrame), | intent(in), | pointer | :: | root |
the scene's root (may be null) |
subroutine update_window_light(self, root) type(WindowProxy), intent(inout) :: self class(ReferenceFrame), pointer, intent(in) :: root !! the scene's root (may be null) logical :: on on = .true. if (associated(root)) on = .not. root%has_light_source() if (on .eqv. self%light_on) return self%light_on = on if (vkf_viewer_light_enable(self%viewer_, merge(1_c_int, 0_c_int, on)) /= 0) & write(*, '(a)') 'vkframes: could not switch the window light' end subroutine update_window_light