The texture node for the current image, in place of the old one.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(SkySphere), | intent(inout) | :: | self |
subroutine make_texture_node(self) type(SkySphere), intent(inout) :: self if (c_associated(self%texture_node)) then call check_status(vkf_node_remove_child(self%texture_switch, self%texture_node), 'SkySphere') call vkf_node_delete(self%texture_node) self%texture_node = c_null_ptr end if if (c_associated(self%image)) then self%texture_node = vkf_sky_texture_create(self%image) if (c_associated(self%texture_node)) then call apply_attitude(self, self%texture_node) if (self%shown) call check_status(vkf_compile_node(self%texture_node), 'SkySphere') call check_status(vkf_node_add_child(self%texture_switch, self%texture_node), 'SkySphere') end if end if call apply_mode(self) end subroutine make_texture_node