All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.openvr.VRProperties Maven / Gradle / Ivy

Go to download

An API and runtime that allows access to VR hardware from multiple vendors without requiring that applications have specific knowledge of the hardware they are targeting.

There is a newer version: 3.3.6
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.openvr;

import org.jspecify.annotations.*;

import org.lwjgl.system.*;

import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.lwjgl.system.MemoryUtil.*;

public class VRProperties {

    protected VRProperties() {
        throw new UnsupportedOperationException();
    }

    // --- [ VRProperties_ReadPropertyBatch ] ---

    public static int nVRProperties_ReadPropertyBatch(long ulContainerHandle, long pBatch, int unBatchEntryCount) {
        long __functionAddress = OpenVR.VRProperties.ReadPropertyBatch;
        if (CHECKS) {
            check(__functionAddress);
        }
        return callJPI(ulContainerHandle, pBatch, unBatchEntryCount, __functionAddress);
    }

    @NativeType("ETrackedPropertyError")
    public static int VRProperties_ReadPropertyBatch(@NativeType("PropertyContainerHandle_t") long ulContainerHandle, @NativeType("PropertyRead_t *") PropertyRead.Buffer pBatch) {
        return nVRProperties_ReadPropertyBatch(ulContainerHandle, pBatch.address(), pBatch.remaining());
    }

    // --- [ VRProperties_WritePropertyBatch ] ---

    public static int nVRProperties_WritePropertyBatch(long ulContainerHandle, long pBatch, int unBatchEntryCount) {
        long __functionAddress = OpenVR.VRProperties.WritePropertyBatch;
        if (CHECKS) {
            check(__functionAddress);
        }
        return callJPI(ulContainerHandle, pBatch, unBatchEntryCount, __functionAddress);
    }

    @NativeType("ETrackedPropertyError")
    public static int VRProperties_WritePropertyBatch(@NativeType("PropertyContainerHandle_t") long ulContainerHandle, @NativeType("PropertyWrite_t *") PropertyWrite.Buffer pBatch) {
        return nVRProperties_WritePropertyBatch(ulContainerHandle, pBatch.address(), pBatch.remaining());
    }

    // --- [ VRProperties_GetPropErrorNameFromEnum ] ---

    public static long nVRProperties_GetPropErrorNameFromEnum(int error) {
        long __functionAddress = OpenVR.VRProperties.GetPropErrorNameFromEnum;
        if (CHECKS) {
            check(__functionAddress);
        }
        return callP(error, __functionAddress);
    }

    @NativeType("char *")
    public static @Nullable String VRProperties_GetPropErrorNameFromEnum(@NativeType("ETrackedPropertyError") int error) {
        long __result = nVRProperties_GetPropErrorNameFromEnum(error);
        return memASCIISafe(__result);
    }

    // --- [ VRProperties_TrackedDeviceToPropertyContainer ] ---

    @NativeType("PropertyContainerHandle_t")
    public static long VRProperties_TrackedDeviceToPropertyContainer(@NativeType("TrackedDeviceIndex_t") int nDevice) {
        long __functionAddress = OpenVR.VRProperties.TrackedDeviceToPropertyContainer;
        if (CHECKS) {
            check(__functionAddress);
        }
        return callJ(nDevice, __functionAddress);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy