The attitude matrix (column-major 4x4) into a sky node's style.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(SkySphere), | intent(in) | :: | self | |||
| type(c_ptr), | intent(in) | :: | n |
a sky node, texture or stars (null: nothing done) |
subroutine apply_attitude(self, n) type(SkySphere), intent(in) :: self type(c_ptr), intent(in) :: n !! a sky node, texture or stars (null: nothing done) real(c_float), dimension(:,:), pointer :: m type(c_ptr) :: style if (.not. c_associated(n)) return style = vkf_sky_style(n) if (.not. c_associated(style)) return call c_f_pointer(style, m, [4, 4]) m = 0.0_c_float m(1:3, 1:3) = real(quat_to_matrix(self%attitude_), c_float) m(4, 4) = 1.0_c_float call check_status(vkf_sky_style_changed(n), 'SkySphere') end subroutine apply_attitude