1
0
mirror of https://github.com/microsoft/DirectXMath synced 2024-11-21 20:00:12 +00:00

Updated Stereo3D (markdown)

Chuck Walbourn 2017-07-13 01:46:28 -07:00
parent f20f5829b9
commit a749e06373

@ -4,16 +4,16 @@
This function filled out a default ``STEREO_PARAMETERS`` which you could then modify before passing on to the other functions.
void StereoCreateDefaultParameters(_Out_ STEREO_PARAMETERS* pStereoParameters);
void StereoCreateDefaultParameters(STEREO_PARAMETERS& pStereoParameters);
These functions compute the stereo projection matrices. You'd call it twice, once for ``STEREO_CHANNEL_LEFT`` and once for ``STEREO_CHANNEL_RIGHT`` to get two matrices. If you pass ``nullptr`` for the ``pStereoParameters`` parameter, you get the values obtained from ``StereoCreateDefaultParameters``.
XMMATRIX StereoProjectionFovLH(_In_opt_ const STEREO_PARAMETERS* pStereoParameters,
XMMATRIX StereoProjectionFovLH(const STEREO_PARAMETERS* pStereoParameters,
STEREO_CHANNEL Channel,
float FovAngleY, float AspectRatio, float NearZ, float FarZ,
STEREO_MODE StereoMode = STEREO_MODE_NORMAL);
XMMATRIX StereoProjectionFovRH(_In_opt_ const STEREO_PARAMETERS* pStereoParameters,
XMMATRIX StereoProjectionFovRH(const STEREO_PARAMETERS* pStereoParameters,
STEREO_CHANNEL Channel,
float FovAngleY, float AspectRatio, float NearZ, float FarZ,
STEREO_MODE StereoMode = STEREO_MODE_NORMAL);