The map (in the contents group) for viewer, with the settings and layers.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(TerrainBody), | intent(inout) | :: | self | |||
| type(c_ptr), | intent(in) | :: | viewer |
a window's viewer handle |
subroutine make_map(self, viewer) type(TerrainBody), intent(inout) :: self type(c_ptr), intent(in) :: viewer !! a window's viewer handle integer :: k self%map = vkf_rocky_map_create(viewer, self%profile_, len(self%profile_, kind=c_int), & real(self%units_per_meter_, c_double)) if (.not. c_associated(self%map)) then write(*, '(a)') 'vkframes: TerrainBody '//self%name()//': could not make the map' return end if call apply_settings(self) do k = 1, self%n_layers call apply_layer(self, self%layers(k)) end do if (vkf_node_add_child(self%map_group, self%map) /= 0) & write(*, '(a)') 'vkframes: TerrainBody '//self%name()//': could not build the scene' end subroutine make_map