vkf_viewer_hud_add Interface

interface


Called by

interface~~vkf_viewer_hud_add~~CalledByGraph interface~vkf_viewer_hud_add vkf_viewer_hud_add proc~create_hud create_hud proc~create_hud->interface~vkf_viewer_hud_add proc~add_hud_text WindowProxy%add_hud_text proc~add_hud_text->proc~create_hud proc~create_huds create_huds proc~create_huds->proc~create_hud proc~update_huds update_huds proc~update_huds->proc~create_hud proc~frame WindowProxy%frame proc~frame->proc~create_huds proc~frame->proc~update_huds proc~resize WindowProxy%resize proc~resize->proc~frame proc~run WindowProxy%run proc~run->proc~frame

public function vkf_viewer_hud_add(viewer, label) bind(C, name="vkf_viewer_hud_add")

Arguments

Type IntentOptional Attributes Name
type(c_ptr), value :: viewer

viewer handle (vkf_viewer_create) and label handle

type(c_ptr), value :: label

viewer handle (vkf_viewer_create) and label handle

Return Value integer(kind=c_int)

Description

Show a label in the viewer's HUD, on top of the scene, also while running: the label's position is (x, y) from 0 to 1 across the viewport, bottom to top. Returns 0, or -1 on failure.