Class CVRTrackedCamera
Inheritance
System.Object
CVRTrackedCamera
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Assembly-CSharp.dll
Syntax
public class CVRTrackedCamera
Methods
AcquireVideoStreamingService(UInt32, ref UInt64)
Declaration
public EVRTrackedCameraError AcquireVideoStreamingService(uint nDeviceIndex, ref ulong pHandle)
Parameters
Type |
Name |
Description |
System.UInt32 |
nDeviceIndex |
|
System.UInt64 |
pHandle |
|
Returns
Declaration
public string GetCameraErrorNameFromEnum(EVRTrackedCameraError eCameraError)
Parameters
Returns
Type |
Description |
System.String |
|
GetCameraFrameSize(UInt32, EVRTrackedCameraFrameType, ref UInt32, ref UInt32, ref UInt32)
Declaration
public EVRTrackedCameraError GetCameraFrameSize(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, ref uint pnWidth, ref uint pnHeight, ref uint pnFrameBufferSize)
Parameters
Type |
Name |
Description |
System.UInt32 |
nDeviceIndex |
|
EVRTrackedCameraFrameType |
eFrameType |
|
System.UInt32 |
pnWidth |
|
System.UInt32 |
pnHeight |
|
System.UInt32 |
pnFrameBufferSize |
|
Returns
GetCameraIntrinsics(UInt32, UInt32, EVRTrackedCameraFrameType, ref HmdVector2_t, ref HmdVector2_t)
Declaration
public EVRTrackedCameraError GetCameraIntrinsics(uint nDeviceIndex, uint nCameraIndex, EVRTrackedCameraFrameType eFrameType, ref HmdVector2_t pFocalLength, ref HmdVector2_t pCenter)
Parameters
Returns
GetCameraProjection(UInt32, UInt32, EVRTrackedCameraFrameType, Single, Single, ref HmdMatrix44_t)
Declaration
public EVRTrackedCameraError GetCameraProjection(uint nDeviceIndex, uint nCameraIndex, EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, ref HmdMatrix44_t pProjection)
Parameters
Returns
Declaration
public EVRTrackedCameraError GetVideoStreamFrameBuffer(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, IntPtr pFrameBuffer, uint nFrameBufferSize, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize)
Parameters
Returns
Declaration
public EVRTrackedCameraError GetVideoStreamTextureD3D11(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, IntPtr pD3D11DeviceOrResource, ref IntPtr ppD3D11ShaderResourceView, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize)
Parameters
Returns
Declaration
public EVRTrackedCameraError GetVideoStreamTextureGL(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, ref uint pglTextureId, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize)
Parameters
Returns
GetVideoStreamTextureSize(UInt32, EVRTrackedCameraFrameType, ref VRTextureBounds_t, ref UInt32, ref UInt32)
Declaration
public EVRTrackedCameraError GetVideoStreamTextureSize(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, ref VRTextureBounds_t pTextureBounds, ref uint pnWidth, ref uint pnHeight)
Parameters
Returns
HasCamera(UInt32, ref Boolean)
Declaration
public EVRTrackedCameraError HasCamera(uint nDeviceIndex, ref bool pHasCamera)
Parameters
Type |
Name |
Description |
System.UInt32 |
nDeviceIndex |
|
System.Boolean |
pHasCamera |
|
Returns
ReleaseVideoStreamingService(UInt64)
Declaration
public EVRTrackedCameraError ReleaseVideoStreamingService(ulong hTrackedCamera)
Parameters
Type |
Name |
Description |
System.UInt64 |
hTrackedCamera |
|
Returns
ReleaseVideoStreamTextureGL(UInt64, UInt32)
Declaration
public EVRTrackedCameraError ReleaseVideoStreamTextureGL(ulong hTrackedCamera, uint glTextureId)
Parameters
Type |
Name |
Description |
System.UInt64 |
hTrackedCamera |
|
System.UInt32 |
glTextureId |
|
Returns