NVAPI Reference Documentation 545
Loading...
Searching...
No Matches
nvapi_lite_stereo.h
1 /************************************************************************************************************************************\
2|* *|
3|* Copyright © 2012 NVIDIA Corporation. All rights reserved. *|
4|* *|
5|* NOTICE TO USER: *|
6|* *|
7|* This software is subject to NVIDIA ownership rights under U.S. and international Copyright laws. *|
8|* *|
9|* This software and the information contained herein are PROPRIETARY and CONFIDENTIAL to NVIDIA *|
10|* and are being provided solely under the terms and conditions of an NVIDIA software license agreement. *|
11|* Otherwise, you have no rights to use or access this software in any manner. *|
12|* *|
13|* If not covered by the applicable NVIDIA software license agreement: *|
14|* NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. *|
15|* IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. *|
16|* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, *|
17|* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. *|
18|* IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, *|
19|* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, *|
20|* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOURCE CODE. *|
21|* *|
22|* U.S. Government End Users. *|
23|* This software is a "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT 1995), *|
24|* consisting of "commercial computer software" and "commercial computer software documentation" *|
25|* as such terms are used in 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government only as a commercial end item. *|
26|* Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), *|
27|* all U.S. Government End Users acquire the software with only those rights set forth herein. *|
28|* *|
29|* Any use of this software in individual and commercial software must include, *|
30|* in the user documentation and internal comments to the code, *|
31|* the above Disclaimer (as applicable) and U.S. Government End Users Notice. *|
32|* *|
33 \************************************************************************************************************************************/
34
35#pragma once
36#include"nvapi_lite_salstart.h"
37#include"nvapi_lite_common.h"
38#pragma pack(push,8)
39#ifdef __cplusplus
40extern "C" {
41#endif
43//
44// FUNCTION NAME: NvAPI_Stereo_Enable
45//
63NVAPI_INTERFACE NvAPI_Stereo_Enable(void);
65//
66// FUNCTION NAME: NvAPI_Stereo_Disable
67//
85NVAPI_INTERFACE NvAPI_Stereo_Disable(void);
87//
88// FUNCTION NAME: NvAPI_Stereo_IsEnabled
89//
106NVAPI_INTERFACE NvAPI_Stereo_IsEnabled(NvU8 *pIsStereoEnabled);
107#if defined(_D3D9_H_) || defined(__d3d10_h__) || defined(__d3d11_h__)|| defined(__d3d12_h__)
108
110//
111// FUNCTION NAME: NvAPI_Stereo_CreateHandleFromIUnknown
112//
141NVAPI_INTERFACE NvAPI_Stereo_CreateHandleFromIUnknown(IUnknown *pDevice, StereoHandle *pStereoHandle);
142
143#endif // defined(_D3D9_H_) || defined(__d3d10_h__)
145//
146// FUNCTION NAME: NvAPI_Stereo_DestroyHandle
147//
165NVAPI_INTERFACE NvAPI_Stereo_DestroyHandle(StereoHandle stereoHandle);
167//
168// FUNCTION NAME: NvAPI_Stereo_Activate
169//
192NVAPI_INTERFACE NvAPI_Stereo_Activate(StereoHandle stereoHandle);
194//
195// FUNCTION NAME: NvAPI_Stereo_Deactivate
196//
218NVAPI_INTERFACE NvAPI_Stereo_Deactivate(StereoHandle stereoHandle);
220//
221// FUNCTION NAME: NvAPI_Stereo_IsActivated
222//
243NVAPI_INTERFACE NvAPI_Stereo_IsActivated(StereoHandle stereoHandle, NvU8 *pIsStereoOn);
245//
246// FUNCTION NAME: NvAPI_Stereo_GetSeparation
247//
268NVAPI_INTERFACE NvAPI_Stereo_GetSeparation(StereoHandle stereoHandle, float *pSeparationPercentage);
270//
271// FUNCTION NAME: NvAPI_Stereo_SetSeparation
272//
294NVAPI_INTERFACE NvAPI_Stereo_SetSeparation(StereoHandle stereoHandle, float newSeparationPercentage);
296//
297// FUNCTION NAME: NvAPI_Stereo_GetConvergence
298//
319NVAPI_INTERFACE NvAPI_Stereo_GetConvergence(StereoHandle stereoHandle, float *pConvergence);
321//
322// FUNCTION NAME: NvAPI_Stereo_SetConvergence
323//
344NVAPI_INTERFACE NvAPI_Stereo_SetConvergence(StereoHandle stereoHandle, float newConvergence);
346//
347// FUNCTION NAME: NvAPI_Stereo_SetActiveEye
348//
370//
372
374typedef enum _NV_StereoActiveEye
375{
376 NVAPI_STEREO_EYE_RIGHT = 1,
377 NVAPI_STEREO_EYE_LEFT = 2,
378 NVAPI_STEREO_EYE_MONO = 3,
379} NV_STEREO_ACTIVE_EYE;
380
382NVAPI_INTERFACE NvAPI_Stereo_SetActiveEye(StereoHandle hStereoHandle, NV_STEREO_ACTIVE_EYE StereoEye);
384//
385// FUNCTION NAME: NvAPI_Stereo_SetDriverMode
386//
405//
407
409typedef enum _NV_StereoDriverMode
410{
411 NVAPI_STEREO_DRIVER_MODE_AUTOMATIC = 0,
412 NVAPI_STEREO_DRIVER_MODE_DIRECT = 2,
413} NV_STEREO_DRIVER_MODE;
414
416NVAPI_INTERFACE NvAPI_Stereo_SetDriverMode( NV_STEREO_DRIVER_MODE mode );
417
419//
420// FUNCTION NAME: NvAPI_Stereo_GetEyeSeparation
421//
440NVAPI_INTERFACE NvAPI_Stereo_GetEyeSeparation(StereoHandle hStereoHandle, float *pSeparation );
442//
443// FUNCTION NAME: NvAPI_Stereo_IsWindowedModeSupported
444//
461NVAPI_INTERFACE NvAPI_Stereo_IsWindowedModeSupported(NvU8* bSupported);
463//
464// FUNCTION NAME: NvAPI_Stereo_SetSurfaceCreationMode
465//
483
491
493NVAPI_INTERFACE NvAPI_Stereo_SetSurfaceCreationMode(__in StereoHandle hStereoHandle, __in NVAPI_STEREO_SURFACECREATEMODE creationMode);
495//
496// FUNCTION NAME: NvAPI_Stereo_GetSurfaceCreationMode
497//
515
517NVAPI_INTERFACE NvAPI_Stereo_GetSurfaceCreationMode(__in StereoHandle hStereoHandle, __in NVAPI_STEREO_SURFACECREATEMODE* pCreationMode);
519//
520// FUNCTION NAME: NvAPI_Stereo_Debug_WasLastDrawStereoized
521//
537NVAPI_INTERFACE NvAPI_Stereo_Debug_WasLastDrawStereoized(__in StereoHandle hStereoHandle, __out NvU8 *pWasStereoized);
539//
540// FUNCTION NAME: NvAPI_Stereo_SetDefaultProfile
541//
561NVAPI_INTERFACE NvAPI_Stereo_SetDefaultProfile(__in const char* szProfileName);
563//
564// FUNCTION NAME: NvAPI_Stereo_GetDefaultProfile
565//
594NVAPI_INTERFACE NvAPI_Stereo_GetDefaultProfile( __in NvU32 cbSizeIn, __out_bcount_part_opt(cbSizeIn, *pcbSizeOut) char* szProfileName, __out NvU32 *pcbSizeOut);
595
596#include"nvapi_lite_salend.h"
597#ifdef __cplusplus
598}
599#endif
600#pragma pack(pop)
void * StereoHandle
A stereo handle, that corresponds to the device interface.
Definition nvapi_lite_common.h:146
NVAPI_INTERFACE NvAPI_Stereo_GetConvergence(StereoHandle stereoHandle, float *pConvergence)
NVAPI_INTERFACE NvAPI_Stereo_GetDefaultProfile(__in NvU32 cbSizeIn, __out_bcount_part_opt(cbSizeIn, *pcbSizeOut) char *szProfileName, __out NvU32 *pcbSizeOut)
NVAPI_INTERFACE NvAPI_Stereo_Disable(void)
NVAPI_INTERFACE NvAPI_Stereo_IsWindowedModeSupported(NvU8 *bSupported)
_NVAPI_STEREO_SURFACECREATEMODE
Definition nvapi_lite_stereo.h:486
NVAPI_INTERFACE NvAPI_Stereo_GetSurfaceCreationMode(__in StereoHandle hStereoHandle, __in NVAPI_STEREO_SURFACECREATEMODE *pCreationMode)
NVAPI_INTERFACE NvAPI_Stereo_GetEyeSeparation(StereoHandle hStereoHandle, float *pSeparation)
NVAPI_INTERFACE NvAPI_Stereo_Deactivate(StereoHandle stereoHandle)
NVAPI_INTERFACE NvAPI_Stereo_SetActiveEye(StereoHandle hStereoHandle, NV_STEREO_ACTIVE_EYE StereoEye)
NVAPI_INTERFACE NvAPI_Stereo_SetSeparation(StereoHandle stereoHandle, float newSeparationPercentage)
NVAPI_INTERFACE NvAPI_Stereo_IsActivated(StereoHandle stereoHandle, NvU8 *pIsStereoOn)
enum _NVAPI_STEREO_SURFACECREATEMODE NVAPI_STEREO_SURFACECREATEMODE
NVAPI_INTERFACE NvAPI_Stereo_GetSeparation(StereoHandle stereoHandle, float *pSeparationPercentage)
NVAPI_INTERFACE NvAPI_Stereo_Debug_WasLastDrawStereoized(__in StereoHandle hStereoHandle, __out NvU8 *pWasStereoized)
NVAPI_INTERFACE NvAPI_Stereo_Activate(StereoHandle stereoHandle)
NVAPI_INTERFACE NvAPI_Stereo_IsEnabled(NvU8 *pIsStereoEnabled)
NVAPI_INTERFACE NvAPI_Stereo_Enable(void)
NVAPI_INTERFACE NvAPI_Stereo_SetDriverMode(NV_STEREO_DRIVER_MODE mode)
NVAPI_INTERFACE NvAPI_Stereo_SetDefaultProfile(__in const char *szProfileName)
NVAPI_INTERFACE NvAPI_Stereo_DestroyHandle(StereoHandle stereoHandle)
NVAPI_INTERFACE NvAPI_Stereo_SetConvergence(StereoHandle stereoHandle, float newConvergence)
@ NVAPI_STEREO_SURFACECREATEMODE_FORCEMONO
Always create mono surfaces.
Definition nvapi_lite_stereo.h:489
@ NVAPI_STEREO_SURFACECREATEMODE_AUTO
Use driver registry profile settings for surface creation mode.
Definition nvapi_lite_stereo.h:487
@ NVAPI_STEREO_SURFACECREATEMODE_FORCESTEREO
Always create stereo surfaces.
Definition nvapi_lite_stereo.h:488