CVRTrackedCamera Class
Namespace: Valve.VR
Assembly: Stride.VirtualReality.dll
System.Object →
CVRTrackedCamera
Derived from CVRTrackedCamera:
public class CVRTrackedCamera
Name |
Description |
Methods
|
|
AcquireVideoStreamingService(UInt32, ref UInt64) |
|
|
GetCameraErrorNameFromEnum(EVRTrackedCameraError) |
|
|
GetCameraFrameSize(UInt32, EVRTrackedCameraFrameType, ref UInt32, ref UInt32, ref UInt32) |
|
|
GetCameraIntrinsics(UInt32, UInt32, EVRTrackedCameraFrameType, ref HmdVector2_t, ref HmdVector2_t) |
|
|
GetCameraProjection(UInt32, UInt32, EVRTrackedCameraFrameType, Single, Single, ref HmdMatrix44_t) |
|
|
GetCameraTrackingSpace() |
|
|
GetVideoStreamFrameBuffer(UInt64, EVRTrackedCameraFrameType, IntPtr, UInt32, ref CameraVideoStreamFrameHeader_t, UInt32) |
|
|
GetVideoStreamTextureD3D11(UInt64, EVRTrackedCameraFrameType, IntPtr, ref IntPtr, ref CameraVideoStreamFrameHeader_t, UInt32) |
|
|
GetVideoStreamTextureGL(UInt64, EVRTrackedCameraFrameType, ref UInt32, ref CameraVideoStreamFrameHeader_t, UInt32) |
|
|
GetVideoStreamTextureSize(UInt32, EVRTrackedCameraFrameType, ref VRTextureBounds_t, ref UInt32, ref UInt32) |
|
|
HasCamera(UInt32, ref Boolean) |
|
|
ReleaseVideoStreamingService(UInt64) |
|
|
ReleaseVideoStreamTextureGL(UInt64, UInt32) |
|
|
SetCameraTrackingSpace(ETrackingUniverseOrigin) |
|
|
Improve this Doc
View Source
Methods
AcquireVideoStreamingService(UInt32, ref UInt64)
public EVRTrackedCameraError AcquireVideoStreamingService(uint nDeviceIndex, ref ulong pHandle)
Parameters
Type |
Name |
Description |
System.UInt32 |
nDeviceIndex |
|
System.UInt64 |
pHandle |
|
Returns
public string GetCameraErrorNameFromEnum(EVRTrackedCameraError eCameraError)
Parameters
Returns
Type |
Description |
System.String |
|
GetCameraFrameSize(UInt32, EVRTrackedCameraFrameType, ref UInt32, ref UInt32, ref UInt32)
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)
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)
public EVRTrackedCameraError GetCameraProjection(uint nDeviceIndex, uint nCameraIndex, EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, ref HmdMatrix44_t pProjection)
Parameters
Returns
GetCameraTrackingSpace()
public ETrackingUniverseOrigin GetCameraTrackingSpace()
Returns
public EVRTrackedCameraError GetVideoStreamFrameBuffer(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, IntPtr pFrameBuffer, uint nFrameBufferSize, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize)
Parameters
Returns
public EVRTrackedCameraError GetVideoStreamTextureD3D11(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, IntPtr pD3D11DeviceOrResource, ref IntPtr ppD3D11ShaderResourceView, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize)
Parameters
Returns
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)
public EVRTrackedCameraError GetVideoStreamTextureSize(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, ref VRTextureBounds_t pTextureBounds, ref uint pnWidth, ref uint pnHeight)
Parameters
Returns
HasCamera(UInt32, ref Boolean)
public EVRTrackedCameraError HasCamera(uint nDeviceIndex, ref bool pHasCamera)
Parameters
Type |
Name |
Description |
System.UInt32 |
nDeviceIndex |
|
System.Boolean |
pHasCamera |
|
Returns
ReleaseVideoStreamingService(UInt64)
public EVRTrackedCameraError ReleaseVideoStreamingService(ulong hTrackedCamera)
Parameters
Type |
Name |
Description |
System.UInt64 |
hTrackedCamera |
|
Returns
ReleaseVideoStreamTextureGL(UInt64, UInt32)
public EVRTrackedCameraError ReleaseVideoStreamTextureGL(ulong hTrackedCamera, uint glTextureId)
Parameters
Type |
Name |
Description |
System.UInt64 |
hTrackedCamera |
|
System.UInt32 |
glTextureId |
|
Returns
SetCameraTrackingSpace(ETrackingUniverseOrigin)
public void SetCameraTrackingSpace(ETrackingUniverseOrigin eUniverse)
Parameters
Extension Methods