Render frames until the window is closed (or for max_frames frames).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(WindowProxy), | intent(inout) | :: | self | |||
| integer, | intent(in), | optional | :: | max_frames |
default: until the window is closed |
subroutine run(self, max_frames) class(WindowProxy), intent(inout) :: self integer, intent(in), optional :: max_frames !! default: until the window is closed integer :: n n = 0 do while (self%frame()) n = n + 1 if (present(max_frames)) then if (n >= max_frames) exit end if end do end subroutine run