scene_counts Function

private function scene_counts(self) result(counts)

The size of the window's scene graph (see vkf_diagnostics): traverses it all, for an occasional update, not every frame. Zeros while it isn't open.

Type Bound

WindowProxy

Arguments

Type IntentOptional Attributes Name
class(WindowProxy), intent(in) :: self

Return Value type(SceneCounts)


Calls

proc~~scene_counts~~CallsGraph proc~scene_counts WindowProxy%scene_counts interface~vkf_viewer_scene_counts vkf_viewer_scene_counts proc~scene_counts->interface~vkf_viewer_scene_counts

Source Code

    function scene_counts(self) result(counts)
        class(WindowProxy), intent(in) :: self
        type(SceneCounts) :: counts
        real(c_double) :: c(3)
        if (.not. c_associated(self%viewer_)) return
        if (vkf_viewer_scene_counts(self%viewer_, c) /= 0) return
        counts%nodes = int(c(1), int64)
        counts%draws = int(c(2), int64)
        counts%vertices = int(c(3), int64)
    end function scene_counts