Set the color (rgba), size (window units), shape (see shaders/
marker.frag) and attenuation radius (scene units; 0 for none) of markers.
Returns 0, or -1 on failure.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | marker |
marker handle (vkf_marker_create) |
||
| real(kind=c_float), | intent(in), | dimension(4) | :: | rgba |
color (rgba, 0 to 1) |
|
| real(kind=c_float), | intent(in) | :: | size | |||
| integer, | intent(in) | :: | shape | |||
| real(kind=c_float), | intent(in) | :: | radius |
integer(c_int) function marker_set_style(marker, rgba, size, shape, radius) result(status) type(c_ptr), intent(in) :: marker !! marker handle (vkf_marker_create) real(c_float), dimension(4), intent(in) :: rgba !! color (rgba, 0 to 1) real(c_float), intent(in) :: size, radius integer, intent(in) :: shape real(c_float), dimension(:), pointer :: style type(c_ptr) :: buffer buffer = vkf_line_style(marker) if (.not. c_associated(buffer)) then status = -1 return end if call c_f_pointer(buffer, style, [8]) style(1:4) = rgba style(5:7) = [size, real(shape, c_float), radius] status = vkf_line_style_changed(marker) end function marker_set_style