handler_before_draw Subroutine

private subroutine handler_before_draw(self, window, t)

Called each frame just before drawing, the scene at time t and the camera placed (see the module documentation): e.g. to move HUD text next to a moving object, or frames. A view following a frame moved here follows it in this frame's drawing (its transform is taken again after); trajectories' points changed here are drawn from the next frame (change them in before_update).

Type Bound

WindowEventHandler

Arguments

Type IntentOptional Attributes Name
class(WindowEventHandler), intent(inout) :: self
class(WindowProxy), intent(inout) :: window

the window about to draw

real(kind=wp), intent(in) :: t

simulation time


Called by

proc~~handler_before_draw~~CalledByGraph proc~handler_before_draw WindowEventHandler%handler_before_draw proc~frame WindowProxy%frame proc~frame->proc~handler_before_draw proc~resize WindowProxy%resize proc~resize->proc~frame proc~run WindowProxy%run proc~run->proc~frame

Source Code

    subroutine handler_before_draw(self, window, t)
        class(WindowEventHandler), intent(inout) :: self
        class(WindowProxy), intent(inout) :: window         !! the window about to draw
        real(wp), intent(in) :: t                           !! simulation time
    end subroutine handler_before_draw