The arrow's color, brighter when hovered and more when dragged.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(VectorHandle), | intent(inout) | :: | self |
subroutine vector_show_state(self) class(VectorHandle), intent(inout) :: self real(c_float) :: color(4), glow(4) if (.not. c_associated(self%shaft_mesh)) return color = real(self%color(), c_float) glow = 0.0_c_float if (self%dragged()) then glow(1:3) = 0.45_c_float else if (self%hovered()) then glow(1:3) = 0.25_c_float end if call check_status(mesh_set_material(self%shaft_mesh, [1.0_c_float, 1.0_c_float, 1.0_c_float, 1.0_c_float], color, & [0.0_c_float, 0.0_c_float, 0.0_c_float, 1.0_c_float], glow, 0.0_c_float)) call check_status(mesh_set_material(self%head_mesh, [1.0_c_float, 1.0_c_float, 1.0_c_float, 1.0_c_float], color, & [0.0_c_float, 0.0_c_float, 0.0_c_float, 1.0_c_float], glow, 0.0_c_float)) end subroutine vector_show_state