Open topic with navigation
In order to simplify correct usage of NVAPI with stereo, NVIDIA has written a header file
nvstereo.h, which can be freely used in your application. This header is targeted at PC developers and will work with Direct3D 9 or 10.
nvstereo.h is available as part of the NVIDIA SDK 11 for PC developers.
nvstereo.h header is a simple header library, and needs only to be included from your source code to be used. However, it does have a dependency on the public NVAPI. To setup NVAPI with your project, follow the instructions in the Using NVAPI section.
nvstereo.h manages several important aspects for you.
StereoHandlefor your application.
Although the specific data stored in the texture can be modified by the application, by default the information is stored as:
Detailed usage instructions for
nvstereo.h are included in the header itself to ease integration. However, the general steps are:
ParamTextureManagerprior to device creation.
UpdateStereoTextureonce per frame, at the beginning of the frame.
ParamTextureManagerafter the device has been destroyed.
NVIDIA® GameWorks™ Documentation Rev. 1.0.200601 ©2014-2020. NVIDIA Corporation. All Rights Reserved.