Show or hide the texture, the constellations and the stars (and their names), as the draw mode says.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(SkySphere), | intent(in) | :: | self |
subroutine apply_mode(self) type(SkySphere), intent(in) :: self if (c_associated(self%texture_switch)) & call check_status(vkf_switch_set(self%texture_switch, merge(1_c_int, 0_c_int, iand(self%mode, SKY_TEXTURE) /= 0)), & 'SkySphere') if (c_associated(self%star_switch)) & call check_status(vkf_switch_set(self%star_switch, merge(1_c_int, 0_c_int, iand(self%mode, SKY_STARS) /= 0)), & 'SkySphere') if (c_associated(self%line_switch)) & call check_status(vkf_switch_set(self%line_switch, merge(1_c_int, 0_c_int, self%mode /= SKY_NONE)), 'SkySphere') end subroutine apply_mode