set_name_label_on_top Subroutine

private subroutine set_name_label_on_top(self, on_top)

Draw the name label on top of the scene (true: not hidden by bodies in front of it, as HUD text; e.g. a readout) or depth-tested (false, the default, as OpenFrames').

Type Bound

ReferenceFrame

Arguments

Type IntentOptional Attributes Name
class(ReferenceFrame), intent(inout) :: self
logical, intent(in) :: on_top

(true: drawn on top of the scene; false: depth-tested)


Calls

proc~~set_name_label_on_top~~CallsGraph proc~set_name_label_on_top ReferenceFrame%set_name_label_on_top interface~vkf_label_set_on_top vkf_label_set_on_top proc~set_name_label_on_top->interface~vkf_label_set_on_top proc~check_status check_status proc~set_name_label_on_top->proc~check_status

Source Code

    subroutine set_name_label_on_top(self, on_top)
        class(ReferenceFrame), intent(inout) :: self
        logical, intent(in) :: on_top                       !! (true: drawn on top of the scene; false: depth-tested)
        self%name_on_top = on_top
        if (c_associated(self%name_text)) &
            call check_status(vkf_label_set_on_top(self%name_text, merge(1_c_int, 0_c_int, on_top)))
    end subroutine set_name_label_on_top