Draw sky behind the scene (it must stay alive while shown; it can be
shown in several windows), in place of the window's sky so far; at any
time (its texture and stars can change too).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(WindowProxy), | intent(inout) | :: | self | |||
| type(SkySphere), | intent(inout), | target | :: | sky |
the sky (not owned; can be shown in several windows) |
subroutine set_sky(self, sky) class(WindowProxy), intent(inout) :: self type(SkySphere), intent(inout), target :: sky !! the sky (not owned; can be shown in several windows) integer(c_int) :: status if (self%scene_added) then ! shown: swap the sky's node if (associated(self%sky_)) status = vkf_viewer_remove_node(self%viewer_, self%sky_%node(self%viewer_)) if (vkf_viewer_add_node(self%viewer_, sky%node(self%viewer_)) /= 0) & write(*, '(a)') 'vkframes: could not add the sky' end if self%sky_ => sky end subroutine set_sky