[][src]Struct openvr_sys::VR_IVRTrackedCamera_FnTable

#[repr(C)]pub struct VR_IVRTrackedCamera_FnTable {
    pub GetCameraErrorNameFromEnum: Option<unsafe extern "C" fn(eCameraError: EVRTrackedCameraError) -> *mut c_char>,
    pub HasCamera: Option<unsafe extern "C" fn(nDeviceIndex: TrackedDeviceIndex_t, pHasCamera: *mut bool) -> EVRTrackedCameraError>,
    pub GetCameraFrameSize: Option<unsafe extern "C" fn(nDeviceIndex: TrackedDeviceIndex_t, eFrameType: EVRTrackedCameraFrameType, pnWidth: *mut u32, pnHeight: *mut u32, pnFrameBufferSize: *mut u32) -> EVRTrackedCameraError>,
    pub GetCameraIntrinsics: Option<unsafe extern "C" fn(nDeviceIndex: TrackedDeviceIndex_t, nCameraIndex: u32, eFrameType: EVRTrackedCameraFrameType, pFocalLength: *mut HmdVector2_t, pCenter: *mut HmdVector2_t) -> EVRTrackedCameraError>,
    pub GetCameraProjection: Option<unsafe extern "C" fn(nDeviceIndex: TrackedDeviceIndex_t, nCameraIndex: u32, eFrameType: EVRTrackedCameraFrameType, flZNear: f32, flZFar: f32, pProjection: *mut HmdMatrix44_t) -> EVRTrackedCameraError>,
    pub AcquireVideoStreamingService: Option<unsafe extern "C" fn(nDeviceIndex: TrackedDeviceIndex_t, pHandle: *mut TrackedCameraHandle_t) -> EVRTrackedCameraError>,
    pub ReleaseVideoStreamingService: Option<unsafe extern "C" fn(hTrackedCamera: TrackedCameraHandle_t) -> EVRTrackedCameraError>,
    pub GetVideoStreamFrameBuffer: Option<unsafe extern "C" fn(hTrackedCamera: TrackedCameraHandle_t, eFrameType: EVRTrackedCameraFrameType, pFrameBuffer: *mut c_void, nFrameBufferSize: u32, pFrameHeader: *mut CameraVideoStreamFrameHeader_t, nFrameHeaderSize: u32) -> EVRTrackedCameraError>,
    pub GetVideoStreamTextureSize: Option<unsafe extern "C" fn(nDeviceIndex: TrackedDeviceIndex_t, eFrameType: EVRTrackedCameraFrameType, pTextureBounds: *mut VRTextureBounds_t, pnWidth: *mut u32, pnHeight: *mut u32) -> EVRTrackedCameraError>,
    pub GetVideoStreamTextureD3D11: Option<unsafe extern "C" fn(hTrackedCamera: TrackedCameraHandle_t, eFrameType: EVRTrackedCameraFrameType, pD3D11DeviceOrResource: *mut c_void, ppD3D11ShaderResourceView: *mut *mut c_void, pFrameHeader: *mut CameraVideoStreamFrameHeader_t, nFrameHeaderSize: u32) -> EVRTrackedCameraError>,
    pub GetVideoStreamTextureGL: Option<unsafe extern "C" fn(hTrackedCamera: TrackedCameraHandle_t, eFrameType: EVRTrackedCameraFrameType, pglTextureId: *mut glUInt_t, pFrameHeader: *mut CameraVideoStreamFrameHeader_t, nFrameHeaderSize: u32) -> EVRTrackedCameraError>,
    pub ReleaseVideoStreamTextureGL: Option<unsafe extern "C" fn(hTrackedCamera: TrackedCameraHandle_t, glTextureId: glUInt_t) -> EVRTrackedCameraError>,
}

Fields

GetCameraErrorNameFromEnum: Option<unsafe extern "C" fn(eCameraError: EVRTrackedCameraError) -> *mut c_char>HasCamera: Option<unsafe extern "C" fn(nDeviceIndex: TrackedDeviceIndex_t, pHasCamera: *mut bool) -> EVRTrackedCameraError>GetCameraFrameSize: Option<unsafe extern "C" fn(nDeviceIndex: TrackedDeviceIndex_t, eFrameType: EVRTrackedCameraFrameType, pnWidth: *mut u32, pnHeight: *mut u32, pnFrameBufferSize: *mut u32) -> EVRTrackedCameraError>GetCameraIntrinsics: Option<unsafe extern "C" fn(nDeviceIndex: TrackedDeviceIndex_t, nCameraIndex: u32, eFrameType: EVRTrackedCameraFrameType, pFocalLength: *mut HmdVector2_t, pCenter: *mut HmdVector2_t) -> EVRTrackedCameraError>GetCameraProjection: Option<unsafe extern "C" fn(nDeviceIndex: TrackedDeviceIndex_t, nCameraIndex: u32, eFrameType: EVRTrackedCameraFrameType, flZNear: f32, flZFar: f32, pProjection: *mut HmdMatrix44_t) -> EVRTrackedCameraError>AcquireVideoStreamingService: Option<unsafe extern "C" fn(nDeviceIndex: TrackedDeviceIndex_t, pHandle: *mut TrackedCameraHandle_t) -> EVRTrackedCameraError>ReleaseVideoStreamingService: Option<unsafe extern "C" fn(hTrackedCamera: TrackedCameraHandle_t) -> EVRTrackedCameraError>GetVideoStreamFrameBuffer: Option<unsafe extern "C" fn(hTrackedCamera: TrackedCameraHandle_t, eFrameType: EVRTrackedCameraFrameType, pFrameBuffer: *mut c_void, nFrameBufferSize: u32, pFrameHeader: *mut CameraVideoStreamFrameHeader_t, nFrameHeaderSize: u32) -> EVRTrackedCameraError>GetVideoStreamTextureSize: Option<unsafe extern "C" fn(nDeviceIndex: TrackedDeviceIndex_t, eFrameType: EVRTrackedCameraFrameType, pTextureBounds: *mut VRTextureBounds_t, pnWidth: *mut u32, pnHeight: *mut u32) -> EVRTrackedCameraError>GetVideoStreamTextureD3D11: Option<unsafe extern "C" fn(hTrackedCamera: TrackedCameraHandle_t, eFrameType: EVRTrackedCameraFrameType, pD3D11DeviceOrResource: *mut c_void, ppD3D11ShaderResourceView: *mut *mut c_void, pFrameHeader: *mut CameraVideoStreamFrameHeader_t, nFrameHeaderSize: u32) -> EVRTrackedCameraError>GetVideoStreamTextureGL: Option<unsafe extern "C" fn(hTrackedCamera: TrackedCameraHandle_t, eFrameType: EVRTrackedCameraFrameType, pglTextureId: *mut glUInt_t, pFrameHeader: *mut CameraVideoStreamFrameHeader_t, nFrameHeaderSize: u32) -> EVRTrackedCameraError>ReleaseVideoStreamTextureGL: Option<unsafe extern "C" fn(hTrackedCamera: TrackedCameraHandle_t, glTextureId: glUInt_t) -> EVRTrackedCameraError>

Trait Implementations

impl Clone for VR_IVRTrackedCamera_FnTable[src]

impl Copy for VR_IVRTrackedCamera_FnTable[src]

impl Debug for VR_IVRTrackedCamera_FnTable[src]

Auto Trait Implementations

impl RefUnwindSafe for VR_IVRTrackedCamera_FnTable

impl Send for VR_IVRTrackedCamera_FnTable

impl Sync for VR_IVRTrackedCamera_FnTable

impl Unpin for VR_IVRTrackedCamera_FnTable

impl UnwindSafe for VR_IVRTrackedCamera_FnTable

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.