VLC 4.0.0-dev
|
Functions | |
void | vlc_viewpoint_to_4x4 (const vlc_viewpoint_t *vp, float *m) |
Generate the 4x4 transform matrix corresponding to a viewpoint. | |
void | vlc_viewpoint_from_orientation (vlc_viewpoint_t *vp, video_orientation_t orient) |
void vlc_viewpoint_from_orientation | ( | vlc_viewpoint_t * | vp, |
video_orientation_t | orient | ||
) |
void vlc_viewpoint_to_4x4 | ( | const vlc_viewpoint_t * | vp, |
float * | matrix | ||
) |
Generate the 4x4 transform matrix corresponding to a viewpoint.
Convert a vlc_viewpoint_t into a 4x4 transform matrix with a column-major layout.
vp | a valid viewpoint object |
matrix | a 4x4-sized array which will contain the matrix data |
Column-major matrix multiplication mathematically equal to z_rot * x_rot * y_rot
References vlc_viewpoint_t::pitch, vlc_viewpoint_t::roll, and vlc_viewpoint_t::yaw.