Compute the segments each frame with callback (see the module
documentation; it must stay alive while set).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(CustomLineSegments), | intent(inout) | :: | self | |||
| class(LineSegmentsCallback), | intent(in), | target | :: | callback |
the callback (not owned) |
subroutine set_callback(self, callback) class(CustomLineSegments), intent(inout) :: self class(LineSegmentsCallback), intent(in), target :: callback !! the callback (not owned) self%callback => callback end subroutine set_callback