
org.lwjgl.openvr.VRChaperoneSetup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-openvr Show documentation
Show all versions of lwjgl-openvr Show documentation
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.
/*
* 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 java.nio.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.lwjgl.system.MemoryUtil.*;
/**
* Manages the working copy of the chaperone info. By default this will be the same as the live copy. Any changes made with this interface will stay in
* the working copy until {@link #VRChaperoneSetup_CommitWorkingCopy CommitWorkingCopy} is called, at which point the working copy and the live copy will be the same again.
*/
public class VRChaperoneSetup {
protected VRChaperoneSetup() {
throw new UnsupportedOperationException();
}
// --- [ VRChaperoneSetup_CommitWorkingCopy ] ---
/**
* Saves the current working copy to disk.
*
* @param configFile one of:
{@link VR#EChaperoneConfigFile_Live} {@link VR#EChaperoneConfigFile_Temp}
*/
@NativeType("bool")
public static boolean VRChaperoneSetup_CommitWorkingCopy(@NativeType("EChaperoneConfigFile") int configFile) {
long __functionAddress = OpenVR.VRChaperoneSetup.CommitWorkingCopy;
if (CHECKS) {
check(__functionAddress);
}
return callZ(configFile, __functionAddress);
}
// --- [ VRChaperoneSetup_RevertWorkingCopy ] ---
/**
* Reverts the working copy to match the live chaperone calibration.
*
* To modify existing data this MUST be do WHILE getting a non-error {@code ChaperoneCalibrationStatus}. Only after this should you do gets and sets on
* the existing data.
*/
public static void VRChaperoneSetup_RevertWorkingCopy() {
long __functionAddress = OpenVR.VRChaperoneSetup.RevertWorkingCopy;
if (CHECKS) {
check(__functionAddress);
}
callV(__functionAddress);
}
// --- [ VRChaperoneSetup_GetWorkingPlayAreaSize ] ---
/** Unsafe version of: {@link #VRChaperoneSetup_GetWorkingPlayAreaSize GetWorkingPlayAreaSize} */
public static boolean nVRChaperoneSetup_GetWorkingPlayAreaSize(long pSizeX, long pSizeZ) {
long __functionAddress = OpenVR.VRChaperoneSetup.GetWorkingPlayAreaSize;
if (CHECKS) {
check(__functionAddress);
}
return callPPZ(pSizeX, pSizeZ, __functionAddress);
}
/**
* Returns the width and depth of the Play Area (formerly named Soft Bounds) in X and Z from the working copy. Tracking space center (0,0,0) is the center
* of the Play Area.
*/
@NativeType("bool")
public static boolean VRChaperoneSetup_GetWorkingPlayAreaSize(@NativeType("float *") FloatBuffer pSizeX, @NativeType("float *") FloatBuffer pSizeZ) {
if (CHECKS) {
check(pSizeX, 1);
check(pSizeZ, 1);
}
return nVRChaperoneSetup_GetWorkingPlayAreaSize(memAddress(pSizeX), memAddress(pSizeZ));
}
// --- [ VRChaperoneSetup_GetWorkingPlayAreaRect ] ---
/** Unsafe version of: {@link #VRChaperoneSetup_GetWorkingPlayAreaRect GetWorkingPlayAreaRect} */
public static boolean nVRChaperoneSetup_GetWorkingPlayAreaRect(long rect) {
long __functionAddress = OpenVR.VRChaperoneSetup.GetWorkingPlayAreaRect;
if (CHECKS) {
check(__functionAddress);
}
return callPZ(rect, __functionAddress);
}
/**
* Returns the 4 corner positions of the Play Area (formerly named Soft Bounds) from the working copy.
*
* Corners are in clockwise order. Tracking space center (0,0,0) is the center of the Play Area. It's a rectangle. 2 sides are parallel to the X axis and
* 2 sides are parallel to the Z axis. Height of every corner is 0Y (on the floor).
*/
@NativeType("bool")
public static boolean VRChaperoneSetup_GetWorkingPlayAreaRect(@NativeType("HmdQuad_t *") HmdQuad rect) {
return nVRChaperoneSetup_GetWorkingPlayAreaRect(rect.address());
}
// --- [ VRChaperoneSetup_GetWorkingCollisionBoundsInfo ] ---
/** Unsafe version of: {@link #VRChaperoneSetup_GetWorkingCollisionBoundsInfo GetWorkingCollisionBoundsInfo} */
public static boolean nVRChaperoneSetup_GetWorkingCollisionBoundsInfo(long pQuadsBuffer, long punQuadsCount) {
long __functionAddress = OpenVR.VRChaperoneSetup.GetWorkingCollisionBoundsInfo;
if (CHECKS) {
check(__functionAddress);
}
return callPPZ(pQuadsBuffer, punQuadsCount, __functionAddress);
}
/** Returns the number of Quads if the buffer points to null. Otherwise it returns Quads into the buffer up to the max specified from the working copy. */
@NativeType("bool")
public static boolean VRChaperoneSetup_GetWorkingCollisionBoundsInfo(@NativeType("HmdQuad_t *") HmdQuad.@Nullable Buffer pQuadsBuffer, @NativeType("uint32_t *") IntBuffer punQuadsCount) {
if (CHECKS) {
check(punQuadsCount, 1);
checkSafe(pQuadsBuffer, punQuadsCount.get(punQuadsCount.position()));
}
return nVRChaperoneSetup_GetWorkingCollisionBoundsInfo(memAddressSafe(pQuadsBuffer), memAddress(punQuadsCount));
}
// --- [ VRChaperoneSetup_GetLiveCollisionBoundsInfo ] ---
/** Unsafe version of: {@link #VRChaperoneSetup_GetLiveCollisionBoundsInfo GetLiveCollisionBoundsInfo} */
public static boolean nVRChaperoneSetup_GetLiveCollisionBoundsInfo(long pQuadsBuffer, long punQuadsCount) {
long __functionAddress = OpenVR.VRChaperoneSetup.GetLiveCollisionBoundsInfo;
if (CHECKS) {
check(__functionAddress);
}
return callPPZ(pQuadsBuffer, punQuadsCount, __functionAddress);
}
/** Returns the number of Quads if the buffer points to null. Otherwise it returns Quads into the buffer up to the max specified. */
@NativeType("bool")
public static boolean VRChaperoneSetup_GetLiveCollisionBoundsInfo(@NativeType("HmdQuad_t *") HmdQuad.@Nullable Buffer pQuadsBuffer, @NativeType("uint32_t *") IntBuffer punQuadsCount) {
if (CHECKS) {
check(punQuadsCount, 1);
checkSafe(pQuadsBuffer, punQuadsCount.get(punQuadsCount.position()));
}
return nVRChaperoneSetup_GetLiveCollisionBoundsInfo(memAddressSafe(pQuadsBuffer), memAddress(punQuadsCount));
}
// --- [ VRChaperoneSetup_GetWorkingSeatedZeroPoseToRawTrackingPose ] ---
/** Unsafe version of: {@link #VRChaperoneSetup_GetWorkingSeatedZeroPoseToRawTrackingPose GetWorkingSeatedZeroPoseToRawTrackingPose} */
public static boolean nVRChaperoneSetup_GetWorkingSeatedZeroPoseToRawTrackingPose(long pmatSeatedZeroPoseToRawTrackingPose) {
long __functionAddress = OpenVR.VRChaperoneSetup.GetWorkingSeatedZeroPoseToRawTrackingPose;
if (CHECKS) {
check(__functionAddress);
}
return callPZ(pmatSeatedZeroPoseToRawTrackingPose, __functionAddress);
}
/** Returns the preferred seated position from the working copy. */
@NativeType("bool")
public static boolean VRChaperoneSetup_GetWorkingSeatedZeroPoseToRawTrackingPose(@NativeType("HmdMatrix34_t *") HmdMatrix34 pmatSeatedZeroPoseToRawTrackingPose) {
return nVRChaperoneSetup_GetWorkingSeatedZeroPoseToRawTrackingPose(pmatSeatedZeroPoseToRawTrackingPose.address());
}
// --- [ VRChaperoneSetup_GetWorkingStandingZeroPoseToRawTrackingPose ] ---
/** Unsafe version of: {@link #VRChaperoneSetup_GetWorkingStandingZeroPoseToRawTrackingPose GetWorkingStandingZeroPoseToRawTrackingPose} */
public static boolean nVRChaperoneSetup_GetWorkingStandingZeroPoseToRawTrackingPose(long pmatStandingZeroPoseToRawTrackingPose) {
long __functionAddress = OpenVR.VRChaperoneSetup.GetWorkingStandingZeroPoseToRawTrackingPose;
if (CHECKS) {
check(__functionAddress);
}
return callPZ(pmatStandingZeroPoseToRawTrackingPose, __functionAddress);
}
/** Returns the standing origin from the working copy. */
@NativeType("bool")
public static boolean VRChaperoneSetup_GetWorkingStandingZeroPoseToRawTrackingPose(@NativeType("HmdMatrix34_t *") HmdMatrix34 pmatStandingZeroPoseToRawTrackingPose) {
return nVRChaperoneSetup_GetWorkingStandingZeroPoseToRawTrackingPose(pmatStandingZeroPoseToRawTrackingPose.address());
}
// --- [ VRChaperoneSetup_SetWorkingPlayAreaSize ] ---
/** Sets the Play Area in the working copy. */
public static void VRChaperoneSetup_SetWorkingPlayAreaSize(float sizeX, float sizeZ) {
long __functionAddress = OpenVR.VRChaperoneSetup.SetWorkingPlayAreaSize;
if (CHECKS) {
check(__functionAddress);
}
callV(sizeX, sizeZ, __functionAddress);
}
// --- [ VRChaperoneSetup_SetWorkingCollisionBoundsInfo ] ---
/** Unsafe version of: {@link #VRChaperoneSetup_SetWorkingCollisionBoundsInfo SetWorkingCollisionBoundsInfo} */
public static void nVRChaperoneSetup_SetWorkingCollisionBoundsInfo(long pQuadsBuffer, int unQuadsCount) {
long __functionAddress = OpenVR.VRChaperoneSetup.SetWorkingCollisionBoundsInfo;
if (CHECKS) {
check(__functionAddress);
}
callPV(pQuadsBuffer, unQuadsCount, __functionAddress);
}
/**
* Sets the Collision Bounds in the working copy.
*
* Note: ceiling height is ignored.
*/
public static void VRChaperoneSetup_SetWorkingCollisionBoundsInfo(@NativeType("HmdQuad_t *") HmdQuad.Buffer pQuadsBuffer) {
nVRChaperoneSetup_SetWorkingCollisionBoundsInfo(pQuadsBuffer.address(), pQuadsBuffer.remaining());
}
// --- [ VRChaperoneSetup_SetWorkingPerimeter ] ---
/** Unsafe version of: {@link #VRChaperoneSetup_SetWorkingPerimeter SetWorkingPerimeter} */
public static void nVRChaperoneSetup_SetWorkingPerimeter(long pPointBuffer, int unPointCount) {
long __functionAddress = OpenVR.VRChaperoneSetup.SetWorkingPerimeter;
if (CHECKS) {
check(__functionAddress);
}
callPV(pPointBuffer, unPointCount, __functionAddress);
}
/** Sets the Collision Bounds in the working copy */
public static void VRChaperoneSetup_SetWorkingPerimeter(@NativeType("HmdVector2_t *") HmdVector2.Buffer pPointBuffer) {
nVRChaperoneSetup_SetWorkingPerimeter(pPointBuffer.address(), pPointBuffer.remaining());
}
// --- [ VRChaperoneSetup_SetWorkingSeatedZeroPoseToRawTrackingPose ] ---
/** Unsafe version of: {@link #VRChaperoneSetup_SetWorkingSeatedZeroPoseToRawTrackingPose SetWorkingSeatedZeroPoseToRawTrackingPose} */
public static void nVRChaperoneSetup_SetWorkingSeatedZeroPoseToRawTrackingPose(long pMatSeatedZeroPoseToRawTrackingPose) {
long __functionAddress = OpenVR.VRChaperoneSetup.SetWorkingSeatedZeroPoseToRawTrackingPose;
if (CHECKS) {
check(__functionAddress);
}
callPV(pMatSeatedZeroPoseToRawTrackingPose, __functionAddress);
}
/** Sets the preferred seated position in the working copy. */
public static void VRChaperoneSetup_SetWorkingSeatedZeroPoseToRawTrackingPose(@NativeType("HmdMatrix34_t const *") HmdMatrix34 pMatSeatedZeroPoseToRawTrackingPose) {
nVRChaperoneSetup_SetWorkingSeatedZeroPoseToRawTrackingPose(pMatSeatedZeroPoseToRawTrackingPose.address());
}
// --- [ VRChaperoneSetup_SetWorkingStandingZeroPoseToRawTrackingPose ] ---
/** Unsafe version of: {@link #VRChaperoneSetup_SetWorkingStandingZeroPoseToRawTrackingPose SetWorkingStandingZeroPoseToRawTrackingPose} */
public static void nVRChaperoneSetup_SetWorkingStandingZeroPoseToRawTrackingPose(long pMatStandingZeroPoseToRawTrackingPose) {
long __functionAddress = OpenVR.VRChaperoneSetup.SetWorkingStandingZeroPoseToRawTrackingPose;
if (CHECKS) {
check(__functionAddress);
}
callPV(pMatStandingZeroPoseToRawTrackingPose, __functionAddress);
}
/** Sets the preferred standing position in the working copy. */
public static void VRChaperoneSetup_SetWorkingStandingZeroPoseToRawTrackingPose(@NativeType("HmdMatrix34_t const *") HmdMatrix34 pMatStandingZeroPoseToRawTrackingPose) {
nVRChaperoneSetup_SetWorkingStandingZeroPoseToRawTrackingPose(pMatStandingZeroPoseToRawTrackingPose.address());
}
// --- [ VRChaperoneSetup_ReloadFromDisk ] ---
/**
* Tear everything down and reload it from the file on disk.
*
* @param configFile one of:
{@link VR#EChaperoneConfigFile_Live} {@link VR#EChaperoneConfigFile_Temp}
*/
public static void VRChaperoneSetup_ReloadFromDisk(@NativeType("EChaperoneConfigFile") int configFile) {
long __functionAddress = OpenVR.VRChaperoneSetup.ReloadFromDisk;
if (CHECKS) {
check(__functionAddress);
}
callV(configFile, __functionAddress);
}
// --- [ VRChaperoneSetup_GetLiveSeatedZeroPoseToRawTrackingPose ] ---
/** Unsafe version of: {@link #VRChaperoneSetup_GetLiveSeatedZeroPoseToRawTrackingPose GetLiveSeatedZeroPoseToRawTrackingPose} */
public static boolean nVRChaperoneSetup_GetLiveSeatedZeroPoseToRawTrackingPose(long pmatSeatedZeroPoseToRawTrackingPose) {
long __functionAddress = OpenVR.VRChaperoneSetup.GetLiveSeatedZeroPoseToRawTrackingPose;
if (CHECKS) {
check(__functionAddress);
}
return callPZ(pmatSeatedZeroPoseToRawTrackingPose, __functionAddress);
}
/** Returns the preferred seated position. */
@NativeType("bool")
public static boolean VRChaperoneSetup_GetLiveSeatedZeroPoseToRawTrackingPose(@NativeType("HmdMatrix34_t *") HmdMatrix34 pmatSeatedZeroPoseToRawTrackingPose) {
return nVRChaperoneSetup_GetLiveSeatedZeroPoseToRawTrackingPose(pmatSeatedZeroPoseToRawTrackingPose.address());
}
// --- [ VRChaperoneSetup_ExportLiveToBuffer ] ---
public static boolean nVRChaperoneSetup_ExportLiveToBuffer(long pBuffer, long pnBufferLength) {
long __functionAddress = OpenVR.VRChaperoneSetup.ExportLiveToBuffer;
if (CHECKS) {
check(__functionAddress);
}
return callPPZ(pBuffer, pnBufferLength, __functionAddress);
}
@NativeType("bool")
public static boolean VRChaperoneSetup_ExportLiveToBuffer(@NativeType("char *") @Nullable ByteBuffer pBuffer, @NativeType("uint32_t *") IntBuffer pnBufferLength) {
if (CHECKS) {
check(pnBufferLength, 1);
checkSafe(pBuffer, pnBufferLength.get(pnBufferLength.position()));
}
return nVRChaperoneSetup_ExportLiveToBuffer(memAddressSafe(pBuffer), memAddress(pnBufferLength));
}
// --- [ VRChaperoneSetup_ImportFromBufferToWorking ] ---
public static boolean nVRChaperoneSetup_ImportFromBufferToWorking(long pBuffer, int nImportFlags) {
long __functionAddress = OpenVR.VRChaperoneSetup.ImportFromBufferToWorking;
if (CHECKS) {
check(__functionAddress);
}
return callPZ(pBuffer, nImportFlags, __functionAddress);
}
@NativeType("bool")
public static boolean VRChaperoneSetup_ImportFromBufferToWorking(@NativeType("char const *") ByteBuffer pBuffer, @NativeType("uint32_t") int nImportFlags) {
return nVRChaperoneSetup_ImportFromBufferToWorking(memAddress(pBuffer), nImportFlags);
}
// --- [ VRChaperoneSetup_ShowWorkingSetPreview ] ---
/** Shows the chaperone data in the working set to preview in the compositor. */
public static void VRChaperoneSetup_ShowWorkingSetPreview() {
long __functionAddress = OpenVR.VRChaperoneSetup.ShowWorkingSetPreview;
if (CHECKS) {
check(__functionAddress);
}
callV(__functionAddress);
}
// --- [ VRChaperoneSetup_HideWorkingSetPreview ] ---
/** Hides the chaperone data in the working set to preview in the compositor (if it was visible). */
public static void VRChaperoneSetup_HideWorkingSetPreview() {
long __functionAddress = OpenVR.VRChaperoneSetup.HideWorkingSetPreview;
if (CHECKS) {
check(__functionAddress);
}
callV(__functionAddress);
}
// --- [ VRChaperoneSetup_RoomSetupStarting ] ---
/**
* Fires an event that the tracking system can use to know room setup is about to begin.
*
* This lets the tracking system make any last minute adjustments that should be incorporated into the new setup. If the user is adjusting live in HMD
* using a tweak tool, keep in mind that calling this might cause the user to see the room jump.
*/
public static void VRChaperoneSetup_RoomSetupStarting() {
long __functionAddress = OpenVR.VRChaperoneSetup.RoomSetupStarting;
if (CHECKS) {
check(__functionAddress);
}
callV(__functionAddress);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy