diff --git a/jme3-vr/src/main/java/com/jme3/app/VRApplication.java b/jme3-vr/src/main/java/com/jme3/app/VRApplication.java index 1b5f9f74b..0113dac92 100644 --- a/jme3-vr/src/main/java/com/jme3/app/VRApplication.java +++ b/jme3-vr/src/main/java/com/jme3/app/VRApplication.java @@ -48,6 +48,7 @@ import com.jme3.system.lwjgl.LwjglOffscreenBufferVR; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; +import java.awt.HeadlessException; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; @@ -274,11 +275,11 @@ public abstract class VRApplication implements Application, SystemListener { logger.warning("VR disabled via code."); } else if( VRSupportedOS && DISABLE_VR == false ) { if( CONSTRUCT_WITH_OSVR ) { - logger.config("Initializing OSVR..."); VRhardware = new OSVR(this); + logger.config("Creating OSVR wrapper [SUCCESS]"); } else { - logger.config("Initializing OpenVR..."); VRhardware = new OpenVR(this); + logger.config("Creating OpenVR wrapper [SUCCESS]"); } if( VRhardware.initialize() ) { setPauseOnLostFocus(false); @@ -395,7 +396,7 @@ public abstract class VRApplication implements Application, SystemListener { */ @Override public Camera getCamera() { - if( isInVR() && viewmanager != null && viewmanager.getCamLeft() != null ) { + if( isInVR() && viewmanager != null && viewmanager.getLeftCamera() != null ) { return dummyCam; } return cam; @@ -619,6 +620,9 @@ public abstract class VRApplication implements Application, SystemListener { @Override public void start() { + + logger.config("Starting application..."); + // set some default settings in-case // settings dialog is not shown boolean loadSettings = false; @@ -627,9 +631,16 @@ public abstract class VRApplication implements Application, SystemListener { loadSettings = true; } - GraphicsDevice defDev = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice(); - + GraphicsDevice defDev = null; + try { + GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); + defDev = ge.getDefaultScreenDevice(); + } catch (Throwable e1) { + logger.log(Level.SEVERE, "Cannot access default screen device: "+e1.getMessage(), e1); + } + if( isInVR() && !compositorAllowed() ) { + logger.warning("VR Composition is not allowed."); // "easy extended" mode // TO-DO: JFrame was removed in LWJGL 3, need to use new GLFW library to pick "monitor" display of VR device // first, find the VR device @@ -676,17 +687,22 @@ public abstract class VRApplication implements Application, SystemListener { //VRwindow.pack(); //VRwindow.setVisible(true); //startCanvas(); + logger.config("Starting application [SUCCESS]"); return; } catch(Exception e) { - + logger.log(Level.SEVERE, "Error during application start: "+e.getMessage(), e); } } } if( !isInVR() ) { + + logger.config("VR mode disabled."); + // not in VR, show settings dialog if( Platform.get() != Platform.MACOSX ) { if (!JmeSystem.showSettingsDialog(settings, loadSettings)) { + logger.config("Starting application [SUCCESS]"); return; } } else { @@ -720,6 +736,9 @@ public abstract class VRApplication implements Application, SystemListener { } settings.setSwapBuffers(true); } else { + + logger.config("VR mode enabled."); + // use basic mirroring window, skip settings window settings.setWidth(xWin); settings.setHeight(yWin); @@ -734,16 +753,20 @@ public abstract class VRApplication implements Application, SystemListener { } if( forceDisableMSAA ) { + logger.config("Disabling multisampling."); // disable multisampling, which is more likely to break things than be useful settings.setSamples(1); } // set opengl mode if( tryOpenGL3 ) { + logger.config("Using LWJGL OpenGL 3 renderer."); settings.setRenderer(AppSettings.LWJGL_OPENGL3); } else { + logger.config("Using LWJGL OpenGL 2 renderer."); settings.setRenderer(AppSettings.LWJGL_OPENGL2); } + setSettings(settings); start(JmeContext.Type.Display, false); @@ -914,11 +937,41 @@ public abstract class VRApplication implements Application, SystemListener { /** * Get the GUI node from the application. * @return the GUI node from the application. + * @see #setGuiNode(Node) */ public Node getGuiNode(){ return guiNode; } + /** + * Set the GUI node that is displayed within the GUI viewport. + * Calling this method involve clearing all the scenes previously attached to the gui viewport. + * @param node the GUI node to attach. + * @see #getGuiNode() + */ + public void setGuiNode(Node node){ + if (node != null){ + if (guiViewPort != null){ + + enqueue(new Callable(){ + + @Override + public Object call() throws Exception { + guiViewPort.clearScenes(); + guiViewPort.attachScene(node); + guiNode = node; + return null; + } + + }); + + } else { + throw new IllegalArgumentException("GUI view port is not initialized."); + } + } + + } + /** * Get the root node of the application. * @return the root node of the application. @@ -1028,7 +1081,7 @@ public abstract class VRApplication implements Application, SystemListener { */ public ViewPort getLeftViewPort() { if( viewmanager == null ) return getViewPort(); - return viewmanager.getViewPortLeft(); + return viewmanager.getLeftViewport(); } /** @@ -1038,7 +1091,7 @@ public abstract class VRApplication implements Application, SystemListener { */ public ViewPort getRightViewPort() { if( viewmanager == null ) return getViewPort(); - return viewmanager.getViewPortRight(); + return viewmanager.getRightViewport(); } @@ -1049,9 +1102,9 @@ public abstract class VRApplication implements Application, SystemListener { public void setBackgroundColors(ColorRGBA clr) { if( viewmanager == null ) { getViewPort().setBackgroundColor(clr); - } else if( viewmanager.getViewPortLeft() != null ) { - viewmanager.getViewPortLeft().setBackgroundColor(clr); - if( viewmanager.getViewPortRight() != null ) viewmanager.getViewPortRight().setBackgroundColor(clr); + } else if( viewmanager.getLeftViewport() != null ) { + viewmanager.getLeftViewport().setBackgroundColor(clr); + if( viewmanager.getRightViewport() != null ) viewmanager.getRightViewport().setBackgroundColor(clr); } } @@ -1116,6 +1169,7 @@ public abstract class VRApplication implements Application, SystemListener { getCamera().setFrame(observer.getWorldTranslation(), observer.getWorldRotation()); } + //FIXME: check if this code is necessary. // Updates scene and gui states. rootNode.updateLogicalState(tpf); guiNode.updateLogicalState(tpf); @@ -1284,21 +1338,28 @@ public abstract class VRApplication implements Application, SystemListener { @Override public void initialize() { - logger.config("Initialize VR application."); + logger.config("Initialize VR application..."); initialize_internal(); cam.setFrustumFar(fFar); cam.setFrustumNear(fNear); dummyCam = cam.clone(); if( isInVR() ) { + + logger.config("VR mode enabled."); + if( VRhardware != null ) { VRhardware.initVRCompositor(compositorAllowed()); + } else { + logger.warning("No VR system found."); } + viewmanager = new VRViewManager(this); viewmanager.setResolutionMultiplier(resMult); inputManager.addMapping(RESET_HMD, new KeyTrigger(KeyInput.KEY_F9)); setLostFocusBehavior(LostFocusBehavior.Disabled); } else { + logger.config("VR mode disabled."); viewPort.attachScene(rootNode); guiViewPort.attachScene(guiNode); } @@ -1316,12 +1377,12 @@ public abstract class VRApplication implements Application, SystemListener { // print out camera information if( isInVR() ) { logger.info("VR Initialization Information"); - if( viewmanager.getCamLeft() != null ){ - logger.info("camLeft: " + viewmanager.getCamLeft().toString()); + if( viewmanager.getLeftCamera() != null ){ + logger.info("camLeft: " + viewmanager.getLeftCamera().toString()); } - if( viewmanager.getCamRight() != null ){ - logger.info("camRight: " + viewmanager.getCamRight().toString()); + if( viewmanager.getRightCamera() != null ){ + logger.info("camRight: " + viewmanager.getRightCamera().toString()); } } } diff --git a/jme3-vr/src/main/java/com/jme3/input/vr/OpenVR.java b/jme3-vr/src/main/java/com/jme3/input/vr/OpenVR.java index dcde76467..984a34c5d 100644 --- a/jme3-vr/src/main/java/com/jme3/input/vr/OpenVR.java +++ b/jme3-vr/src/main/java/com/jme3/input/vr/OpenVR.java @@ -19,11 +19,16 @@ import com.jme3.system.jopenvr.VR_IVRCompositor_FnTable; import com.jme3.system.jopenvr.VR_IVRSystem_FnTable; import com.sun.jna.Memory; import com.sun.jna.Pointer; +import com.sun.jna.ptr.FloatByReference; +import com.sun.jna.ptr.IntByReference; +import com.sun.jna.ptr.LongByReference; + import java.nio.FloatBuffer; import java.nio.IntBuffer; import java.nio.LongBuffer; import java.util.Locale; import java.util.concurrent.TimeUnit; +import java.util.logging.Level; import java.util.logging.Logger; import jmevr.util.VRUtil; @@ -47,17 +52,17 @@ public class OpenVR implements VRAPI { private static TrackedDevicePose_t.ByReference hmdTrackedDevicePoseReference; protected static TrackedDevicePose_t[] hmdTrackedDevicePoses; - protected static IntBuffer hmdErrorStore; + protected static IntByReference hmdErrorStore; private static final Quaternion rotStore = new Quaternion(); private static final Vector3f posStore = new Vector3f(); - private static FloatBuffer tlastVsync; + private static FloatByReference tlastVsync; /** * The actual frame count. */ - public static LongBuffer _tframeCount; + public static LongByReference _tframeCount; // for debugging latency private int frames = 0; @@ -130,26 +135,27 @@ public class OpenVR implements VRAPI { @Override public boolean initialize() { - logger.config("Initializing OpenVR system."); + logger.config("Initializing OpenVR system..."); - hmdErrorStore = IntBuffer.allocate(1); + hmdErrorStore = new IntByReference(); vrsystemFunctions = null; JOpenVRLibrary.VR_InitInternal(hmdErrorStore, JOpenVRLibrary.EVRApplicationType.EVRApplicationType_VRApplication_Scene); - if( hmdErrorStore.get(0) == 0 ) { - // ok, try and get the vrsystem pointer.. - vrsystemFunctions = new VR_IVRSystem_FnTable(JOpenVRLibrary.VR_GetGenericInterface(JOpenVRLibrary.IVRSystem_Version, hmdErrorStore)); + if( hmdErrorStore.getValue() == 0 ) { + vrsystemFunctions = new VR_IVRSystem_FnTable(JOpenVRLibrary.VR_GetGenericInterface(JOpenVRLibrary.IVRSystem_Version, hmdErrorStore).getPointer()); } - if( vrsystemFunctions == null || hmdErrorStore.get(0) != 0 ) { - System.out.println("OpenVR Initialize Result: " + JOpenVRLibrary.VR_GetVRInitErrorAsEnglishDescription(hmdErrorStore.get(0)).getString(0)); + + if( vrsystemFunctions == null || hmdErrorStore.getValue() != 0 ) { + logger.severe("OpenVR Initialize Result: " + JOpenVRLibrary.VR_GetVRInitErrorAsEnglishDescription(hmdErrorStore.getValue()).getString(0)); + logger.severe("Initializing OpenVR system [FAILED]"); return false; } else { - System.out.println("OpenVR initialized & VR connected."); + logger.config("OpenVR initialized & VR connected."); vrsystemFunctions.setAutoSynch(false); vrsystemFunctions.read(); - tlastVsync = FloatBuffer.allocate(1); - _tframeCount = LongBuffer.allocate(1); + tlastVsync = new FloatByReference(); + _tframeCount = new LongByReference(); hmdDisplayFrequency = IntBuffer.allocate(1); hmdDisplayFrequency.put( (int) JOpenVRLibrary.ETrackedDeviceProperty.ETrackedDeviceProperty_Prop_DisplayFrequency_Float); @@ -178,6 +184,7 @@ public class OpenVR implements VRAPI { // init bounds & chaperone info VRBounds.init(); + logger.config("Initializing OpenVR system [SUCCESS]"); initSuccess = true; return true; } @@ -185,25 +192,41 @@ public class OpenVR implements VRAPI { @Override public boolean initVRCompositor(boolean allowed) { - hmdErrorStore.put(0, 0); // clear the error store + hmdErrorStore.setValue(0); // clear the error store if( allowed && vrsystemFunctions != null ) { - compositorFunctions = new VR_IVRCompositor_FnTable(JOpenVRLibrary.VR_GetGenericInterface(JOpenVRLibrary.IVRCompositor_Version, hmdErrorStore)); - if(compositorFunctions != null && hmdErrorStore.get(0) == 0 ){ - System.out.println("OpenVR Compositor initialized OK!"); - compositorFunctions.setAutoSynch(false); - compositorFunctions.read(); - if( application.isSeatedExperience() ) { - compositorFunctions.SetTrackingSpace.apply(JOpenVRLibrary.ETrackingUniverseOrigin.ETrackingUniverseOrigin_TrackingUniverseSeated); - } else { - compositorFunctions.SetTrackingSpace.apply(JOpenVRLibrary.ETrackingUniverseOrigin.ETrackingUniverseOrigin_TrackingUniverseStanding); - } - } else { - System.out.println("OpenVR Compositor error: " + hmdErrorStore.get(0)); - compositorFunctions = null; - } + + IntByReference intptr = JOpenVRLibrary.VR_GetGenericInterface(JOpenVRLibrary.IVRCompositor_Version, hmdErrorStore); + if (intptr != null){ + + if (intptr.getPointer() != null){ + compositorFunctions = new VR_IVRCompositor_FnTable(intptr.getPointer()); + if(compositorFunctions != null && hmdErrorStore.getValue() == 0 ){ + compositorFunctions.setAutoSynch(false); + compositorFunctions.read(); + if( application.isSeatedExperience() ) { + compositorFunctions.SetTrackingSpace.apply(JOpenVRLibrary.ETrackingUniverseOrigin.ETrackingUniverseOrigin_TrackingUniverseSeated); + } else { + compositorFunctions.SetTrackingSpace.apply(JOpenVRLibrary.ETrackingUniverseOrigin.ETrackingUniverseOrigin_TrackingUniverseStanding); + } + logger.config("OpenVR Compositor initialized"); + } else { + logger.severe("OpenVR Compositor error: " + hmdErrorStore.getValue()); + compositorFunctions = null; + } + } else { + logger.log(Level.SEVERE, "Cannot get valid pointer for generic interface \""+JOpenVRLibrary.IVRCompositor_Version+"\", "+JOpenVRLibrary.getEVRInitErrorString(hmdErrorStore.getValue())+" ("+hmdErrorStore.getValue()+")"); + compositorFunctions = null; + } + + } else { + logger.log(Level.SEVERE, "Cannot get generic interface for \""+JOpenVRLibrary.IVRCompositor_Version+"\", "+JOpenVRLibrary.getEVRInitErrorString(hmdErrorStore.getValue())+" ("+hmdErrorStore.getValue()+")"); + compositorFunctions = null; + } + + } if( compositorFunctions == null ) { - System.out.println("Skipping VR Compositor..."); + logger.severe("Skipping VR Compositor..."); if( vrsystemFunctions != null ) { vsyncToPhotons = vrsystemFunctions.GetFloatTrackedDeviceProperty.apply(JOpenVRLibrary.k_unTrackedDeviceIndex_Hmd, JOpenVRLibrary.ETrackedDeviceProperty.ETrackedDeviceProperty_Prop_SecondsFromVsyncToPhotons_Float, hmdErrorStore); } else { @@ -237,11 +260,11 @@ public class OpenVR implements VRAPI { store.x = 1344f; store.y = 1512f; } else { - IntBuffer x = IntBuffer.allocate(1); - IntBuffer y = IntBuffer.allocate(1); + IntByReference x = new IntByReference(); + IntByReference y = new IntByReference(); vrsystemFunctions.GetRecommendedRenderTargetSize.apply(x, y); - store.x = x.get(0); - store.y = y.get(0); + store.x = x.getValue(); + store.y = y.getValue(); } } /* @@ -301,7 +324,7 @@ public class OpenVR implements VRAPI { if( latencyWaitTime > 0 ) VRUtil.sleepNanos(latencyWaitTime); vrsystemFunctions.GetTimeSinceLastVsync.apply(tlastVsync, _tframeCount); - float fSecondsUntilPhotons = (float)timePerFrame - tlastVsync.get(0) + vsyncToPhotons; + float fSecondsUntilPhotons = (float)timePerFrame - tlastVsync.getValue() + vsyncToPhotons; if( enableDebugLatency ) { if( frames == 10 ) { @@ -312,7 +335,7 @@ public class OpenVR implements VRAPI { } // handle skipping frame stuff - long nowCount = _tframeCount.get(0); + long nowCount = _tframeCount.getValue(); if( nowCount - frameCount > 1 ) { // skipped a frame! if( enableDebugLatency ) System.out.println("Frame skipped!"); @@ -372,7 +395,7 @@ public class OpenVR implements VRAPI { } else if(vrsystemFunctions == null){ return cam.getProjectionMatrix(); } else { - HmdMatrix44_t mat = vrsystemFunctions.GetProjectionMatrix.apply(JOpenVRLibrary.EVREye.EVREye_Eye_Left, cam.getFrustumNear(), cam.getFrustumFar(), JOpenVRLibrary.EGraphicsAPIConvention.EGraphicsAPIConvention_API_OpenGL); + HmdMatrix44_t mat = vrsystemFunctions.GetProjectionMatrix.apply(JOpenVRLibrary.EVREye.EVREye_Eye_Left, cam.getFrustumNear(), cam.getFrustumFar()); hmdProjectionLeftEye = new Matrix4f(); VRUtil.convertSteamVRMatrix4ToMatrix4f(mat, hmdProjectionLeftEye); return hmdProjectionLeftEye; @@ -386,7 +409,7 @@ public class OpenVR implements VRAPI { } else if(vrsystemFunctions == null){ return cam.getProjectionMatrix(); } else { - HmdMatrix44_t mat = vrsystemFunctions.GetProjectionMatrix.apply(JOpenVRLibrary.EVREye.EVREye_Eye_Right, cam.getFrustumNear(), cam.getFrustumFar(), JOpenVRLibrary.EGraphicsAPIConvention.EGraphicsAPIConvention_API_OpenGL); + HmdMatrix44_t mat = vrsystemFunctions.GetProjectionMatrix.apply(JOpenVRLibrary.EVREye.EVREye_Eye_Right, cam.getFrustumNear(), cam.getFrustumFar()); hmdProjectionRightEye = new Matrix4f(); VRUtil.convertSteamVRMatrix4ToMatrix4f(mat, hmdProjectionRightEye); return hmdProjectionRightEye; @@ -454,11 +477,11 @@ public class OpenVR implements VRAPI { vrsystemFunctions.GetStringTrackedDeviceProperty.apply(JOpenVRLibrary.k_unTrackedDeviceIndex_Hmd, JOpenVRLibrary.ETrackedDeviceProperty.ETrackedDeviceProperty_Prop_ManufacturerName_String, str1, 128, hmdErrorStore); - if( hmdErrorStore.get(0) == 0 ) completeName += str1.getString(0); + if( hmdErrorStore.getValue() == 0 ) completeName += str1.getString(0); vrsystemFunctions.GetStringTrackedDeviceProperty.apply(JOpenVRLibrary.k_unTrackedDeviceIndex_Hmd, JOpenVRLibrary.ETrackedDeviceProperty.ETrackedDeviceProperty_Prop_ModelNumber_String, str2, 128, hmdErrorStore); - if( hmdErrorStore.get(0) == 0 ) completeName += " " + str2.getString(0); + if( hmdErrorStore.getValue() == 0 ) completeName += " " + str2.getString(0); if( completeName.length() > 0 ) { completeName = completeName.toLowerCase(Locale.ENGLISH).trim(); if( completeName.contains("htc") || completeName.contains("vive") ) { diff --git a/jme3-vr/src/main/java/com/jme3/input/vr/OpenVRInput.java b/jme3-vr/src/main/java/com/jme3/input/vr/OpenVRInput.java index ab5c4e471..361f78f01 100644 --- a/jme3-vr/src/main/java/com/jme3/input/vr/OpenVRInput.java +++ b/jme3-vr/src/main/java/com/jme3/input/vr/OpenVRInput.java @@ -256,6 +256,7 @@ public class OpenVRInput implements VRInputAPI { lastCallAxis[i] = new Vector2f(); needsNewVelocity[i] = true; needsNewAngVelocity[i] = true; + logger.config(" Input "+(i+1)+"/"+JOpenVRLibrary.k_unMaxTrackedDeviceCount+" initialized."); } return true; @@ -345,11 +346,15 @@ public class OpenVRInput implements VRInputAPI { @Override public void updateConnectedControllers() { + logger.config("Updating connected controllers."); controllerCount = 0; for(int i=0;itrue if the initialization is a success and false otherwise. */ public static boolean init() { + + logger.config("Initialize VR bounds..."); + if( vrChaperone == null ) { - vrChaperone = new VR_IVRChaperone_FnTable(JOpenVRLibrary.VR_GetGenericInterface(JOpenVRLibrary.IVRChaperone_Version, OpenVR.hmdErrorStore)); + vrChaperone = new VR_IVRChaperone_FnTable(JOpenVRLibrary.VR_GetGenericInterface(JOpenVRLibrary.IVRChaperone_Version, OpenVR.hmdErrorStore).getPointer()); if( vrChaperone != null ) { vrChaperone.setAutoSynch(false); vrChaperone.read(); - FloatBuffer fbX = FloatBuffer.allocate(1); - FloatBuffer fbZ = FloatBuffer.allocate(1); + FloatByReference fbX = new FloatByReference(); + FloatByReference fbZ = new FloatByReference(); vrChaperone.GetPlayAreaSize.apply(fbX, fbZ); - playSize = new Vector2f(fbX.get(0), fbZ.get(0)); + playSize = new Vector2f(fbX.getValue(), fbZ.getValue()); + + logger.config("Initialize VR bounds [SUCCESS]"); return true; // init success } + + logger.warning("Initialize VR bounds [FAILED]."); return false; // failed to init } + + logger.config("Initialize VR bounds already done."); return true; // already initialized } diff --git a/jme3-vr/src/main/java/com/jme3/post/OpenVRFilter.java b/jme3-vr/src/main/java/com/jme3/post/OpenVRFilter.java index 347b64f0e..61cf840ed 100644 --- a/jme3-vr/src/main/java/com/jme3/post/OpenVRFilter.java +++ b/jme3-vr/src/main/java/com/jme3/post/OpenVRFilter.java @@ -106,7 +106,8 @@ public class OpenVRFilter extends Filter { verts[vertPos+2] = 0f; // z vertPos += 3; - DistortionCoordinates_t dc0 = ((VR_IVRSystem_FnTable)application.getVRHardware().getVRSystem()).ComputeDistortion.apply(JOpenVRLibrary.EVREye.EVREye_Eye_Left, u, v); + DistortionCoordinates_t dc0 = new DistortionCoordinates_t(); + ((VR_IVRSystem_FnTable)application.getVRHardware().getVRSystem()).ComputeDistortion.apply(JOpenVRLibrary.EVREye.EVREye_Eye_Left, u, v, dc0); texcoordR[coordPos] = dc0.rfRed[0]; texcoordR[coordPos+1] = 1 - dc0.rfRed[1]; @@ -130,7 +131,8 @@ public class OpenVRFilter extends Filter { verts[vertPos+2] = 0f; // z vertPos += 3; - DistortionCoordinates_t dc0 = ((VR_IVRSystem_FnTable)application.getVRHardware().getVRSystem()).ComputeDistortion.apply(JOpenVRLibrary.EVREye.EVREye_Eye_Right, u, v); + DistortionCoordinates_t dc0 = new DistortionCoordinates_t(); + ((VR_IVRSystem_FnTable)application.getVRHardware().getVRSystem()).ComputeDistortion.apply(JOpenVRLibrary.EVREye.EVREye_Eye_Right, u, v, dc0); texcoordR[coordPos] = dc0.rfRed[0]; texcoordR[coordPos+1] = 1 - dc0.rfRed[1]; diff --git a/jme3-vr/src/main/java/com/jme3/shadow/InstancedDirectionalShadowFilter.java b/jme3-vr/src/main/java/com/jme3/shadow/InstancedDirectionalShadowFilter.java index fb688b401..410137305 100644 --- a/jme3-vr/src/main/java/com/jme3/shadow/InstancedDirectionalShadowFilter.java +++ b/jme3-vr/src/main/java/com/jme3/shadow/InstancedDirectionalShadowFilter.java @@ -37,8 +37,8 @@ public class InstancedDirectionalShadowFilter extends DirectionalLightShadowFilt protected void preFrame(float tpf) { shadowRenderer.preFrame(tpf); if( application.isInstanceVRRendering() ) { - material.setMatrix4("ViewProjectionMatrixInverseRight", application.getVRViewManager().getCamRight().getViewProjectionMatrix().invert()); - Matrix4f m = application.getVRViewManager().getCamRight().getViewProjectionMatrix(); + material.setMatrix4("ViewProjectionMatrixInverseRight", application.getVRViewManager().getRightCamera().getViewProjectionMatrix().invert()); + Matrix4f m = application.getVRViewManager().getRightCamera().getViewProjectionMatrix(); material.setVector4("ViewProjectionMatrixRow2Right", temp4f2.set(m.m20, m.m21, m.m22, m.m23)); } material.setMatrix4("ViewProjectionMatrixInverse", viewPort.getCamera().getViewProjectionMatrix().invert()); diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/AppOverrideKeys_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/AppOverrideKeys_t.java index 2cf67aee0..0c085466d 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/AppOverrideKeys_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/AppOverrideKeys_t.java @@ -1,20 +1,21 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1133
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class AppOverrideKeys_t extends Structure { - /** + /** * const char *
* C type : char* */ public Pointer pchKey; - /** + /** * const char *
* C type : char* */ @@ -25,7 +26,7 @@ public class AppOverrideKeys_t extends Structure { protected List getFieldOrder() { return Arrays.asList("pchKey", "pchValue"); } - /** + /** * @param pchKey const char *
* C type : char*
* @param pchValue const char *
@@ -45,4 +46,4 @@ public class AppOverrideKeys_t extends Structure { public static class ByValue extends AppOverrideKeys_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/COpenVRContext.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/COpenVRContext.java index 1b8910732..0fd88b1ab 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/COpenVRContext.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/COpenVRContext.java @@ -1,71 +1,72 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import com.sun.jna.ptr.IntByReference; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import com.sun.jna.ptr.IntByReference; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1262
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class COpenVRContext extends Structure { - /** + /** * class vr::IVRSystem *
* C type : intptr_t */ public IntByReference m_pVRSystem; - /** + /** * class vr::IVRChaperone *
* C type : intptr_t */ public IntByReference m_pVRChaperone; - /** + /** * class vr::IVRChaperoneSetup *
* C type : intptr_t */ public IntByReference m_pVRChaperoneSetup; - /** + /** * class vr::IVRCompositor *
* C type : intptr_t */ public IntByReference m_pVRCompositor; - /** + /** * class vr::IVROverlay *
* C type : intptr_t */ public IntByReference m_pVROverlay; - /** + /** * class vr::IVRResources *
* C type : intptr_t */ public IntByReference m_pVRResources; - /** + /** * class vr::IVRRenderModels *
* C type : intptr_t */ public IntByReference m_pVRRenderModels; - /** + /** * class vr::IVRExtendedDisplay *
* C type : intptr_t */ public IntByReference m_pVRExtendedDisplay; - /** + /** * class vr::IVRSettings *
* C type : intptr_t */ public IntByReference m_pVRSettings; - /** + /** * class vr::IVRApplications *
* C type : intptr_t */ public IntByReference m_pVRApplications; - /** + /** * class vr::IVRTrackedCamera *
* C type : intptr_t */ public IntByReference m_pVRTrackedCamera; - /** + /** * class vr::IVRScreenshots *
* C type : intptr_t */ @@ -85,4 +86,4 @@ public class COpenVRContext extends Structure { public static class ByValue extends COpenVRContext implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/CameraVideoStreamFrameHeader_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/CameraVideoStreamFrameHeader_t.java index 250d01ba7..d519ad028 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/CameraVideoStreamFrameHeader_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/CameraVideoStreamFrameHeader_t.java @@ -1,15 +1,16 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1127
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class CameraVideoStreamFrameHeader_t extends Structure { - /** + /** * @see EVRTrackedCameraFrameType
* C type : EVRTrackedCameraFrameType */ @@ -26,7 +27,7 @@ public class CameraVideoStreamFrameHeader_t extends Structure { protected List getFieldOrder() { return Arrays.asList("eFrameType", "nWidth", "nHeight", "nBytesPerPixel", "nFrameSequence", "standingTrackedDevicePose"); } - /** + /** * @param eFrameType @see EVRTrackedCameraFrameType
* C type : EVRTrackedCameraFrameType
* @param standingTrackedDevicePose C type : TrackedDevicePose_t @@ -49,4 +50,4 @@ public class CameraVideoStreamFrameHeader_t extends Structure { public static class ByValue extends CameraVideoStreamFrameHeader_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/Compositor_CumulativeStats.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/Compositor_CumulativeStats.java index fea616a58..285ac08e7 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/Compositor_CumulativeStats.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/Compositor_CumulativeStats.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1176
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -39,4 +40,4 @@ public class Compositor_CumulativeStats extends Structure { public static class ByValue extends Compositor_CumulativeStats implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/Compositor_FrameTiming.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/Compositor_FrameTiming.java index 484c9440c..3e4598d21 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/Compositor_FrameTiming.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/Compositor_FrameTiming.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1159
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -12,6 +13,7 @@ public class Compositor_FrameTiming extends Structure { public int m_nSize; public int m_nFrameIndex; public int m_nNumFramePresents; + public int m_nNumMisPresented; public int m_nNumDroppedFrames; public int m_nReprojectionFlags; public double m_flSystemTimeInSeconds; @@ -37,7 +39,7 @@ public class Compositor_FrameTiming extends Structure { super(); } protected List getFieldOrder() { - return Arrays.asList("m_nSize", "m_nFrameIndex", "m_nNumFramePresents", "m_nNumDroppedFrames", "m_nReprojectionFlags", "m_flSystemTimeInSeconds", "m_flPreSubmitGpuMs", "m_flPostSubmitGpuMs", "m_flTotalRenderGpuMs", "m_flCompositorRenderGpuMs", "m_flCompositorRenderCpuMs", "m_flCompositorIdleCpuMs", "m_flClientFrameIntervalMs", "m_flPresentCallCpuMs", "m_flWaitForPresentCpuMs", "m_flSubmitFrameMs", "m_flWaitGetPosesCalledMs", "m_flNewPosesReadyMs", "m_flNewFrameReadyMs", "m_flCompositorUpdateStartMs", "m_flCompositorUpdateEndMs", "m_flCompositorRenderStartMs", "m_HmdPose"); + return Arrays.asList("m_nSize", "m_nFrameIndex", "m_nNumFramePresents", "m_nNumMisPresented", "m_nNumDroppedFrames", "m_nReprojectionFlags", "m_flSystemTimeInSeconds", "m_flPreSubmitGpuMs", "m_flPostSubmitGpuMs", "m_flTotalRenderGpuMs", "m_flCompositorRenderGpuMs", "m_flCompositorRenderCpuMs", "m_flCompositorIdleCpuMs", "m_flClientFrameIntervalMs", "m_flPresentCallCpuMs", "m_flWaitForPresentCpuMs", "m_flSubmitFrameMs", "m_flWaitGetPosesCalledMs", "m_flNewPosesReadyMs", "m_flNewFrameReadyMs", "m_flCompositorUpdateStartMs", "m_flCompositorUpdateEndMs", "m_flCompositorRenderStartMs", "m_HmdPose"); } public Compositor_FrameTiming(Pointer peer) { super(peer); @@ -48,4 +50,4 @@ public class Compositor_FrameTiming extends Structure { public static class ByValue extends Compositor_FrameTiming implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/Compositor_OverlaySettings.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/Compositor_OverlaySettings.java index 9571de383..d9f72ea4b 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/Compositor_OverlaySettings.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/Compositor_OverlaySettings.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1117
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -39,4 +40,4 @@ public class Compositor_OverlaySettings extends Structure { public static class ByValue extends Compositor_OverlaySettings implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/D3D12TextureData_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/D3D12TextureData_t.java new file mode 100644 index 000000000..60d2437e5 --- /dev/null +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/D3D12TextureData_t.java @@ -0,0 +1,53 @@ +package com.jme3.system.jopenvr; +import com.jme3.system.jopenvr.JOpenVRLibrary.ID3D12CommandQueue; +import com.jme3.system.jopenvr.JOpenVRLibrary.ID3D12Resource; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1003
+ * This file was autogenerated by JNAerator,
+ * a tool written by Olivier Chafik that uses a few opensource projects..
+ * For help, please visit NativeLibs4Java , Rococoa, or JNA. + */ +public class D3D12TextureData_t extends Structure { + /** + * struct ID3D12Resource *
+ * C type : ID3D12Resource* + */ + public ID3D12Resource m_pResource; + /** + * struct ID3D12CommandQueue *
+ * C type : ID3D12CommandQueue* + */ + public ID3D12CommandQueue m_pCommandQueue; + public int m_nNodeMask; + public D3D12TextureData_t() { + super(); + } + protected List getFieldOrder() { + return Arrays.asList("m_pResource", "m_pCommandQueue", "m_nNodeMask"); + } + /** + * @param m_pResource struct ID3D12Resource *
+ * C type : ID3D12Resource*
+ * @param m_pCommandQueue struct ID3D12CommandQueue *
+ * C type : ID3D12CommandQueue* + */ + public D3D12TextureData_t(ID3D12Resource m_pResource, ID3D12CommandQueue m_pCommandQueue, int m_nNodeMask) { + super(); + this.m_pResource = m_pResource; + this.m_pCommandQueue = m_pCommandQueue; + this.m_nNodeMask = m_nNodeMask; + } + public D3D12TextureData_t(Pointer peer) { + super(peer); + } + public static class ByReference extends D3D12TextureData_t implements Structure.ByReference { + + }; + public static class ByValue extends D3D12TextureData_t implements Structure.ByValue { + + }; +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/DistortionCoordinates_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/DistortionCoordinates_t.java index c7e49baaf..d57170895 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/DistortionCoordinates_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/DistortionCoordinates_t.java @@ -1,25 +1,26 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:954
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class DistortionCoordinates_t extends Structure { - /** + /** * float[2]
* C type : float[2] */ public float[] rfRed = new float[2]; - /** + /** * float[2]
* C type : float[2] */ public float[] rfGreen = new float[2]; - /** + /** * float[2]
* C type : float[2] */ @@ -30,7 +31,7 @@ public class DistortionCoordinates_t extends Structure { protected List getFieldOrder() { return Arrays.asList("rfRed", "rfGreen", "rfBlue"); } - /** + /** * @param rfRed float[2]
* C type : float[2]
* @param rfGreen float[2]
@@ -59,4 +60,4 @@ public class DistortionCoordinates_t extends Structure { public static class ByValue extends DistortionCoordinates_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HiddenAreaMesh_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HiddenAreaMesh_t.java index 8e9cd4e53..d8beaeb74 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HiddenAreaMesh_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HiddenAreaMesh_t.java @@ -1,15 +1,16 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1090
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class HiddenAreaMesh_t extends Structure { - /** + /** * const struct vr::HmdVector2_t *
* C type : HmdVector2_t* */ @@ -21,7 +22,7 @@ public class HiddenAreaMesh_t extends Structure { protected List getFieldOrder() { return Arrays.asList("pVertexData", "unTriangleCount"); } - /** + /** * @param pVertexData const struct vr::HmdVector2_t *
* C type : HmdVector2_t* */ @@ -39,4 +40,4 @@ public class HiddenAreaMesh_t extends Structure { public static class ByValue extends HiddenAreaMesh_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdColor_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdColor_t.java index 5a0a219af..c0771cfce 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdColor_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdColor_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:938
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -35,4 +36,4 @@ public class HmdColor_t extends Structure { public static class ByValue extends HmdColor_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdMatrix34_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdMatrix34_t.java index 11dc9e468..f649a5f13 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdMatrix34_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdMatrix34_t.java @@ -1,15 +1,16 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:906
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class HmdMatrix34_t extends Structure { - /** + /** * float[3][4]
* C type : float[3][4] */ @@ -20,7 +21,7 @@ public class HmdMatrix34_t extends Structure { protected List getFieldOrder() { return Arrays.asList("m"); } - /** + /** * @param m float[3][4]
* C type : float[3][4] */ @@ -39,4 +40,4 @@ public class HmdMatrix34_t extends Structure { public static class ByValue extends HmdMatrix34_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdMatrix44_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdMatrix44_t.java index 494c4835d..3422b1bf7 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdMatrix44_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdMatrix44_t.java @@ -1,15 +1,16 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:910
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class HmdMatrix44_t extends Structure { - /** + /** * float[4][4]
* C type : float[4][4] */ @@ -20,7 +21,7 @@ public class HmdMatrix44_t extends Structure { protected List getFieldOrder() { return Arrays.asList("m"); } - /** + /** * @param m float[4][4]
* C type : float[4][4] */ @@ -39,4 +40,4 @@ public class HmdMatrix44_t extends Structure { public static class ByValue extends HmdMatrix44_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdQuad_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdQuad_t.java index f7c131ed2..51565b92c 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdQuad_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdQuad_t.java @@ -1,15 +1,16 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:942
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class HmdQuad_t extends Structure { - /** + /** * struct vr::HmdVector3_t[4]
* C type : HmdVector3_t[4] */ @@ -20,7 +21,7 @@ public class HmdQuad_t extends Structure { protected List getFieldOrder() { return Arrays.asList("vCorners"); } - /** + /** * @param vCorners struct vr::HmdVector3_t[4]
* C type : HmdVector3_t[4] */ @@ -39,4 +40,4 @@ public class HmdQuad_t extends Structure { public static class ByValue extends HmdQuad_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdQuaternion_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdQuaternion_t.java index 1f2ae2f5e..f96ea2d8a 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdQuaternion_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdQuaternion_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:932
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -35,4 +36,4 @@ public class HmdQuaternion_t extends Structure { public static class ByValue extends HmdQuaternion_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdRect2_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdRect2_t.java index 26719b12a..24d144c10 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdRect2_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdRect2_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:946
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -19,7 +20,7 @@ public class HmdRect2_t extends Structure { protected List getFieldOrder() { return Arrays.asList("vTopLeft", "vBottomRight"); } - /** + /** * @param vTopLeft C type : HmdVector2_t
* @param vBottomRight C type : HmdVector2_t */ @@ -37,4 +38,4 @@ public class HmdRect2_t extends Structure { public static class ByValue extends HmdRect2_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdVector2_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdVector2_t.java index c14407bf1..07980d03e 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdVector2_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdVector2_t.java @@ -1,15 +1,16 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:926
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class HmdVector2_t extends Structure { - /** + /** * float[2]
* C type : float[2] */ @@ -20,7 +21,7 @@ public class HmdVector2_t extends Structure { protected List getFieldOrder() { return Arrays.asList("v"); } - /** + /** * @param v float[2]
* C type : float[2] */ @@ -39,4 +40,4 @@ public class HmdVector2_t extends Structure { public static class ByValue extends HmdVector2_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdVector3_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdVector3_t.java index 33cbbedff..79b1aa023 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdVector3_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdVector3_t.java @@ -1,15 +1,16 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:914
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class HmdVector3_t extends Structure { - /** + /** * float[3]
* C type : float[3] */ @@ -20,7 +21,7 @@ public class HmdVector3_t extends Structure { protected List getFieldOrder() { return Arrays.asList("v"); } - /** + /** * @param v float[3]
* C type : float[3] */ @@ -39,4 +40,4 @@ public class HmdVector3_t extends Structure { public static class ByValue extends HmdVector3_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdVector3d_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdVector3d_t.java index bb0518ed1..83f7cca24 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdVector3d_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdVector3d_t.java @@ -1,15 +1,16 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:922
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class HmdVector3d_t extends Structure { - /** + /** * double[3]
* C type : double[3] */ @@ -20,7 +21,7 @@ public class HmdVector3d_t extends Structure { protected List getFieldOrder() { return Arrays.asList("v"); } - /** + /** * @param v double[3]
* C type : double[3] */ @@ -39,4 +40,4 @@ public class HmdVector3d_t extends Structure { public static class ByValue extends HmdVector3d_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdVector4_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdVector4_t.java index 09e84e2d2..7c13cb220 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdVector4_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/HmdVector4_t.java @@ -1,15 +1,16 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:918
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class HmdVector4_t extends Structure { - /** + /** * float[4]
* C type : float[4] */ @@ -20,7 +21,7 @@ public class HmdVector4_t extends Structure { protected List getFieldOrder() { return Arrays.asList("v"); } - /** + /** * @param v float[4]
* C type : float[4] */ @@ -39,4 +40,4 @@ public class HmdVector4_t extends Structure { public static class ByValue extends HmdVector4_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/IntersectionMaskCircle_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/IntersectionMaskCircle_t.java new file mode 100644 index 000000000..ae463d988 --- /dev/null +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/IntersectionMaskCircle_t.java @@ -0,0 +1,37 @@ +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1200
+ * This file was autogenerated by JNAerator,
+ * a tool written by Olivier Chafik that uses a few opensource projects..
+ * For help, please visit NativeLibs4Java , Rococoa, or JNA. + */ +public class IntersectionMaskCircle_t extends Structure { + public float m_flCenterX; + public float m_flCenterY; + public float m_flRadius; + public IntersectionMaskCircle_t() { + super(); + } + protected List getFieldOrder() { + return Arrays.asList("m_flCenterX", "m_flCenterY", "m_flRadius"); + } + public IntersectionMaskCircle_t(float m_flCenterX, float m_flCenterY, float m_flRadius) { + super(); + this.m_flCenterX = m_flCenterX; + this.m_flCenterY = m_flCenterY; + this.m_flRadius = m_flRadius; + } + public IntersectionMaskCircle_t(Pointer peer) { + super(peer); + } + public static class ByReference extends IntersectionMaskCircle_t implements Structure.ByReference { + + }; + public static class ByValue extends IntersectionMaskCircle_t implements Structure.ByValue { + + }; +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/IntersectionMaskRectangle_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/IntersectionMaskRectangle_t.java new file mode 100644 index 000000000..bbbd2f5a1 --- /dev/null +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/IntersectionMaskRectangle_t.java @@ -0,0 +1,39 @@ +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1195
+ * This file was autogenerated by JNAerator,
+ * a tool written by Olivier Chafik that uses a few opensource projects..
+ * For help, please visit NativeLibs4Java , Rococoa, or JNA. + */ +public class IntersectionMaskRectangle_t extends Structure { + public float m_flTopLeftX; + public float m_flTopLeftY; + public float m_flWidth; + public float m_flHeight; + public IntersectionMaskRectangle_t() { + super(); + } + protected List getFieldOrder() { + return Arrays.asList("m_flTopLeftX", "m_flTopLeftY", "m_flWidth", "m_flHeight"); + } + public IntersectionMaskRectangle_t(float m_flTopLeftX, float m_flTopLeftY, float m_flWidth, float m_flHeight) { + super(); + this.m_flTopLeftX = m_flTopLeftX; + this.m_flTopLeftY = m_flTopLeftY; + this.m_flWidth = m_flWidth; + this.m_flHeight = m_flHeight; + } + public IntersectionMaskRectangle_t(Pointer peer) { + super(peer); + } + public static class ByReference extends IntersectionMaskRectangle_t implements Structure.ByReference { + + }; + public static class ByValue extends IntersectionMaskRectangle_t implements Structure.ByValue { + + }; +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/JOpenVRLibrary.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/JOpenVRLibrary.java index 0d580c2ce..7debbaa1e 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/JOpenVRLibrary.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/JOpenVRLibrary.java @@ -1,756 +1,2082 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Library; -import com.sun.jna.Native; -import com.sun.jna.NativeLibrary; -import com.sun.jna.Pointer; -import com.sun.jna.ptr.IntByReference; -import java.nio.IntBuffer; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Library; +import com.sun.jna.Native; +import com.sun.jna.NativeLibrary; +import com.sun.jna.Pointer; +import com.sun.jna.PointerType; +import com.sun.jna.ptr.IntByReference; +import java.nio.IntBuffer; +/** * JNA Wrapper for library JOpenVR
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ -public class JOpenVRLibrary implements Library { +public class JOpenVRLibrary implements Library { + + /** + * Get the version of the underlying OpenVR API.
+ * see https://github.com/ValveSoftware/openvr/tree/v1.0.6. + */ + public static final String OPENVR_VERSION = "1.0.6"; + + /** + * Get the commit number of the underlying OpenVR API. + * see https://github.com/ValveSoftware/openvr/commit/7fa6470f2972970859f2395f1390f6d87d4b0fc3 + */ + public static final String OPENVR_COMMIT = "7fa6470"; + public static final String JNA_LIBRARY_NAME = "openvr_api"; public static final NativeLibrary JNA_NATIVE_LIB = NativeLibrary.getInstance(JOpenVRLibrary.JNA_LIBRARY_NAME); static { Native.register(JOpenVRLibrary.class, JOpenVRLibrary.JNA_NATIVE_LIB); - } - /** enum values */ + } + + // OpenVR Constants + public static final int k_unMaxDriverDebugResponseSize = 32768; + public static final int k_unTrackedDeviceIndex_Hmd = 0; + public static final int k_unMaxTrackedDeviceCount = 16; + public static final long k_unTrackedDeviceIndexOther = 4294967294L; + public static final long k_unTrackedDeviceIndexInvalid = 4294967295L; + public static final long k_ulInvalidPropertyContainer = 0; + public static final int k_unInvalidPropertyTag = 0; + public static final int k_unFloatPropertyTag = 1; + public static final int k_unInt32PropertyTag = 2; + public static final int k_unUint64PropertyTag = 3; + public static final int k_unBoolPropertyTag = 4; + public static final int k_unStringPropertyTag = 5; + public static final int k_unHmdMatrix34PropertyTag = 20; + public static final int k_unHmdMatrix44PropertyTag = 21; + public static final int k_unHmdVector3PropertyTag = 22; + public static final int k_unHmdVector4PropertyTag = 23; + public static final int k_unHiddenAreaPropertyTag = 30; + public static final int k_unOpenVRInternalReserved_Start = 1000; + public static final int k_unOpenVRInternalReserved_End = 10000; + public static final int k_unMaxPropertyStringSize = 32768; + public static final int k_unControllerStateAxisCount = 5; + public static final long k_ulOverlayHandleInvalid = 0; + public static final int k_unScreenshotHandleInvalid = 0; + public static final int k_unMaxApplicationKeyLength = 128; + public static final String k_pch_MimeType_HomeApp = "vr/home"; + public static final String k_pch_MimeType_GameTheater = "vr/game_theater"; + public static final String IVRApplications_Version = "FnTable:IVRApplications_006"; + public static final int k_unVROverlayMaxKeyLength = 128; + public static final int k_unVROverlayMaxNameLength = 128; + public static final int k_unMaxOverlayCount = 64; + public static final int k_unMaxOverlayIntersectionMaskPrimitivesCount = 32; + public static final String IVROverlay_Version = "FnTable:IVROverlay_014"; + public static final String k_pch_Controller_Component_GDC2015 = "gdc2015"; + public static final String k_pch_Controller_Component_Base = "base"; + public static final String k_pch_Controller_Component_Tip = "tip"; + public static final String k_pch_Controller_Component_HandGrip = "handgrip"; + public static final String k_pch_Controller_Component_Status = "status"; + public static final String IVRRenderModels_Version = "FnTable:IVRRenderModels_005"; + public static final int k_unNotificationTextMaxSize = 256; + public static final String IVRNotifications_Version = "FnTable:IVRNotifications_002"; + public static final int k_unMaxSettingsKeyLength = 128; + public static final String IVRSettings_Version = "FnTable:IVRSettings_002"; + public static final String k_pch_SteamVR_Section = "steamvr"; + public static final String k_pch_SteamVR_RequireHmd_String = "requireHmd"; + public static final String k_pch_SteamVR_ForcedDriverKey_String = "forcedDriver"; + public static final String k_pch_SteamVR_ForcedHmdKey_String = "forcedHmd"; + public static final String k_pch_SteamVR_DisplayDebug_Bool = "displayDebug"; + public static final String k_pch_SteamVR_DebugProcessPipe_String = "debugProcessPipe"; + public static final String k_pch_SteamVR_EnableDistortion_Bool = "enableDistortion"; + public static final String k_pch_SteamVR_DisplayDebugX_Int32 = "displayDebugX"; + public static final String k_pch_SteamVR_DisplayDebugY_Int32 = "displayDebugY"; + public static final String k_pch_SteamVR_SendSystemButtonToAllApps_Bool = "sendSystemButtonToAllApps"; + public static final String k_pch_SteamVR_LogLevel_Int32 = "loglevel"; + public static final String k_pch_SteamVR_IPD_Float = "ipd"; + public static final String k_pch_SteamVR_Background_String = "background"; + public static final String k_pch_SteamVR_BackgroundUseDomeProjection_Bool = "backgroundUseDomeProjection"; + public static final String k_pch_SteamVR_BackgroundCameraHeight_Float = "backgroundCameraHeight"; + public static final String k_pch_SteamVR_BackgroundDomeRadius_Float = "backgroundDomeRadius"; + public static final String k_pch_SteamVR_GridColor_String = "gridColor"; + public static final String k_pch_SteamVR_PlayAreaColor_String = "playAreaColor"; + public static final String k_pch_SteamVR_ShowStage_Bool = "showStage"; + public static final String k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers"; + public static final String k_pch_SteamVR_DirectMode_Bool = "directMode"; + public static final String k_pch_SteamVR_DirectModeEdidVid_Int32 = "directModeEdidVid"; + public static final String k_pch_SteamVR_DirectModeEdidPid_Int32 = "directModeEdidPid"; + public static final String k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; + public static final String k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; + public static final String k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement"; + public static final String k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses"; + public static final String k_pch_SteamVR_RenderTargetMultiplier_Float = "renderTargetMultiplier"; + public static final String k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection"; + public static final String k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection"; + public static final String k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection"; + public static final String k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking"; + public static final String k_pch_SteamVR_DefaultMirrorView_Int32 = "defaultMirrorView"; + public static final String k_pch_SteamVR_ShowMirrorView_Bool = "showMirrorView"; + public static final String k_pch_SteamVR_MirrorViewGeometry_String = "mirrorViewGeometry"; + public static final String k_pch_SteamVR_StartMonitorFromAppLaunch = "startMonitorFromAppLaunch"; + public static final String k_pch_SteamVR_StartCompositorFromAppLaunch_Bool = "startCompositorFromAppLaunch"; + public static final String k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch"; + public static final String k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard"; + public static final String k_pch_SteamVR_EnableHomeApp = "enableHomeApp"; + public static final String k_pch_SteamVR_SetInitialDefaultHomeApp = "setInitialDefaultHomeApp"; + public static final String k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec"; + public static final String k_pch_SteamVR_RetailDemo_Bool = "retailDemo"; + public static final String k_pch_SteamVR_IpdOffset_Float = "ipdOffset"; + public static final String k_pch_Lighthouse_Section = "driver_lighthouse"; + public static final String k_pch_Lighthouse_DisableIMU_Bool = "disableimu"; + public static final String k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation"; + public static final String k_pch_Lighthouse_DisambiguationDebug_Int32 = "disambiguationdebug"; + public static final String k_pch_Lighthouse_PrimaryBasestation_Int32 = "primarybasestation"; + public static final String k_pch_Lighthouse_DBHistory_Bool = "dbhistory"; + public static final String k_pch_Null_Section = "driver_null"; + public static final String k_pch_Null_SerialNumber_String = "serialNumber"; + public static final String k_pch_Null_ModelNumber_String = "modelNumber"; + public static final String k_pch_Null_WindowX_Int32 = "windowX"; + public static final String k_pch_Null_WindowY_Int32 = "windowY"; + public static final String k_pch_Null_WindowWidth_Int32 = "windowWidth"; + public static final String k_pch_Null_WindowHeight_Int32 = "windowHeight"; + public static final String k_pch_Null_RenderWidth_Int32 = "renderWidth"; + public static final String k_pch_Null_RenderHeight_Int32 = "renderHeight"; + public static final String k_pch_Null_SecondsFromVsyncToPhotons_Float = "secondsFromVsyncToPhotons"; + public static final String k_pch_Null_DisplayFrequency_Float = "displayFrequency"; + public static final String k_pch_UserInterface_Section = "userinterface"; + public static final String k_pch_UserInterface_StatusAlwaysOnTop_Bool = "StatusAlwaysOnTop"; + public static final String k_pch_UserInterface_MinimizeToTray_Bool = "MinimizeToTray"; + public static final String k_pch_UserInterface_Screenshots_Bool = "screenshots"; + public static final String k_pch_UserInterface_ScreenshotType_Int = "screenshotType"; + public static final String k_pch_Notifications_Section = "notifications"; + public static final String k_pch_Notifications_DoNotDisturb_Bool = "DoNotDisturb"; + public static final String k_pch_Keyboard_Section = "keyboard"; + public static final String k_pch_Keyboard_TutorialCompletions = "TutorialCompletions"; + public static final String k_pch_Keyboard_ScaleX = "ScaleX"; + public static final String k_pch_Keyboard_ScaleY = "ScaleY"; + public static final String k_pch_Keyboard_OffsetLeftX = "OffsetLeftX"; + public static final String k_pch_Keyboard_OffsetRightX = "OffsetRightX"; + public static final String k_pch_Keyboard_OffsetY = "OffsetY"; + public static final String k_pch_Keyboard_Smoothing = "Smoothing"; + public static final String k_pch_Perf_Section = "perfcheck"; + public static final String k_pch_Perf_HeuristicActive_Bool = "heuristicActive"; + public static final String k_pch_Perf_NotifyInHMD_Bool = "warnInHMD"; + public static final String k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce"; + public static final String k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore"; + public static final String k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; + public static final String k_pch_Perf_TestData_Float = "perfTestData"; + public static final String k_pch_CollisionBounds_Section = "collisionBounds"; + public static final String k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle"; + public static final String k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn"; + public static final String k_pch_CollisionBounds_CenterMarkerOn_Bool = "CollisionBoundsCenterMarkerOn"; + public static final String k_pch_CollisionBounds_PlaySpaceOn_Bool = "CollisionBoundsPlaySpaceOn"; + public static final String k_pch_CollisionBounds_FadeDistance_Float = "CollisionBoundsFadeDistance"; + public static final String k_pch_CollisionBounds_ColorGammaR_Int32 = "CollisionBoundsColorGammaR"; + public static final String k_pch_CollisionBounds_ColorGammaG_Int32 = "CollisionBoundsColorGammaG"; + public static final String k_pch_CollisionBounds_ColorGammaB_Int32 = "CollisionBoundsColorGammaB"; + public static final String k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsColorGammaA"; + public static final String k_pch_Camera_Section = "camera"; + public static final String k_pch_Camera_EnableCamera_Bool = "enableCamera"; + public static final String k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard"; + public static final String k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds"; + public static final String k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView"; + public static final String k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR"; + public static final String k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG"; + public static final String k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB"; + public static final String k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA"; + public static final String k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength"; + public static final String k_pch_audio_Section = "audio"; + public static final String k_pch_audio_OnPlaybackDevice_String = "onPlaybackDevice"; + public static final String k_pch_audio_OnRecordDevice_String = "onRecordDevice"; + public static final String k_pch_audio_OnPlaybackMirrorDevice_String = "onPlaybackMirrorDevice"; + public static final String k_pch_audio_OffPlaybackDevice_String = "offPlaybackDevice"; + public static final String k_pch_audio_OffRecordDevice_String = "offRecordDevice"; + public static final String k_pch_audio_VIVEHDMIGain = "viveHDMIGain"; + public static final String k_pch_Power_Section = "power"; + public static final String k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit"; + public static final String k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout"; + public static final String k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout"; + public static final String k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout"; + public static final String k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress"; + public static final String k_pch_Dashboard_Section = "dashboard"; + public static final String k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard"; + public static final String k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode"; + public static final String k_pch_modelskin_Section = "modelskins"; + public static final String k_pch_Driver_Enable_Bool = "enable"; + + public static final String IVRSystem_Version = "FnTable:IVRSystem_015"; + public static final String IVRExtendedDisplay_Version = "FnTable:IVRExtendedDisplay_001"; + public static final String IVRTrackedCamera_Version = "FnTable:IVRTrackedCamera_003"; + public static final String IVRChaperone_Version = "FnTable:IVRChaperone_003"; + public static final String IVRChaperoneSetup_Version = "FnTable:IVRChaperoneSetup_005"; + //public static final String IVRCompositor_Version = "FnTable:IVRCompositor_020"; + public static final String IVRCompositor_Version = "FnTable:IVRCompositor_019"; + public static final String IVRScreenshots_Version = "FnTable:IVRScreenshots_001"; + public static final String IVRResources_Version = "FnTable:IVRResources_001"; + + + + /** + * native declaration : headers\openvr_capi.h:178
+ * enum values + */ public static interface EVREye { + /** native declaration : headers\openvr_capi.h:176 */ public static final int EVREye_Eye_Left = 0; + /** native declaration : headers\openvr_capi.h:177 */ public static final int EVREye_Eye_Right = 1; }; - /** enum values */ - public static interface EGraphicsAPIConvention { - public static final int EGraphicsAPIConvention_API_DirectX = 0; - public static final int EGraphicsAPIConvention_API_OpenGL = 1; - }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:185
+ * enum values + */ + public static interface ETextureType { + /** native declaration : headers\openvr_capi.h:180 */ + public static final int ETextureType_TextureType_DirectX = 0; + /** native declaration : headers\openvr_capi.h:181 */ + public static final int ETextureType_TextureType_OpenGL = 1; + /** native declaration : headers\openvr_capi.h:182 */ + public static final int ETextureType_TextureType_Vulkan = 2; + /** native declaration : headers\openvr_capi.h:183 */ + public static final int ETextureType_TextureType_IOSurface = 3; + /** native declaration : headers\openvr_capi.h:184 */ + public static final int ETextureType_TextureType_DirectX12 = 4; + }; + + + public static String getETextureTypeString(int type){ + + String str = ""; + + switch(type){ + case ETextureType.ETextureType_TextureType_DirectX: + str = "DirectX"; + break; + case ETextureType.ETextureType_TextureType_OpenGL: + str = "OpenGL"; + break; + case ETextureType.ETextureType_TextureType_Vulkan: + str = "Vulkan"; + break; + case ETextureType.ETextureType_TextureType_IOSurface: + str = "IOSurface"; + break; + case ETextureType.ETextureType_TextureType_DirectX12: + str = "DirectX12"; + break; + default: + str = "Unknown ("+type+")"; + } + + return str; + } + + /** + * native declaration : headers\openvr_capi.h:190
+ * enum values + */ public static interface EColorSpace { + /** native declaration : headers\openvr_capi.h:187 */ public static final int EColorSpace_ColorSpace_Auto = 0; + /** native declaration : headers\openvr_capi.h:188 */ public static final int EColorSpace_ColorSpace_Gamma = 1; + /** native declaration : headers\openvr_capi.h:189 */ public static final int EColorSpace_ColorSpace_Linear = 2; - }; - /** enum values */ + }; + + public static String getEColorSpaceString(int eColorSpace){ + String str = ""; + + switch(eColorSpace){ + case EColorSpace.EColorSpace_ColorSpace_Auto: + str = "Auto"; + break; + case EColorSpace.EColorSpace_ColorSpace_Gamma: + str = "Gamma"; + break; + case EColorSpace.EColorSpace_ColorSpace_Linear: + str = "Linear"; + break; + default: + str = "Unknown ("+eColorSpace+")"; + } + + return str; + } + + /** + * native declaration : headers\openvr_capi.h:197
+ * enum values + */ public static interface ETrackingResult { + /** native declaration : headers\openvr_capi.h:192 */ public static final int ETrackingResult_TrackingResult_Uninitialized = 1; + /** native declaration : headers\openvr_capi.h:193 */ public static final int ETrackingResult_TrackingResult_Calibrating_InProgress = 100; + /** native declaration : headers\openvr_capi.h:194 */ public static final int ETrackingResult_TrackingResult_Calibrating_OutOfRange = 101; + /** native declaration : headers\openvr_capi.h:195 */ public static final int ETrackingResult_TrackingResult_Running_OK = 200; + /** native declaration : headers\openvr_capi.h:196 */ public static final int ETrackingResult_TrackingResult_Running_OutOfRange = 201; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:204
+ * enum values + */ public static interface ETrackedDeviceClass { + /** native declaration : headers\openvr_capi.h:199 */ public static final int ETrackedDeviceClass_TrackedDeviceClass_Invalid = 0; + /** native declaration : headers\openvr_capi.h:200 */ public static final int ETrackedDeviceClass_TrackedDeviceClass_HMD = 1; + /** native declaration : headers\openvr_capi.h:201 */ public static final int ETrackedDeviceClass_TrackedDeviceClass_Controller = 2; + /** native declaration : headers\openvr_capi.h:202 */ + public static final int ETrackedDeviceClass_TrackedDeviceClass_GenericTracker = 3; + /** native declaration : headers\openvr_capi.h:203 */ public static final int ETrackedDeviceClass_TrackedDeviceClass_TrackingReference = 4; - public static final int ETrackedDeviceClass_TrackedDeviceClass_Other = 1000; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:209
+ * enum values + */ public static interface ETrackedControllerRole { + /** native declaration : headers\openvr_capi.h:206 */ public static final int ETrackedControllerRole_TrackedControllerRole_Invalid = 0; + /** native declaration : headers\openvr_capi.h:207 */ public static final int ETrackedControllerRole_TrackedControllerRole_LeftHand = 1; + /** native declaration : headers\openvr_capi.h:208 */ public static final int ETrackedControllerRole_TrackedControllerRole_RightHand = 2; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:214
+ * enum values + */ public static interface ETrackingUniverseOrigin { + /** native declaration : headers\openvr_capi.h:211 */ public static final int ETrackingUniverseOrigin_TrackingUniverseSeated = 0; + /** native declaration : headers\openvr_capi.h:212 */ public static final int ETrackingUniverseOrigin_TrackingUniverseStanding = 1; + /** native declaration : headers\openvr_capi.h:213 */ public static final int ETrackingUniverseOrigin_TrackingUniverseRawAndUncalibrated = 2; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:325
+ * enum values + */ public static interface ETrackedDeviceProperty { + /** native declaration : headers\openvr_capi.h:216 */ + public static final int ETrackedDeviceProperty_Prop_Invalid = 0; + /** native declaration : headers\openvr_capi.h:217 */ public static final int ETrackedDeviceProperty_Prop_TrackingSystemName_String = 1000; + /** native declaration : headers\openvr_capi.h:218 */ public static final int ETrackedDeviceProperty_Prop_ModelNumber_String = 1001; + /** native declaration : headers\openvr_capi.h:219 */ public static final int ETrackedDeviceProperty_Prop_SerialNumber_String = 1002; + /** native declaration : headers\openvr_capi.h:220 */ public static final int ETrackedDeviceProperty_Prop_RenderModelName_String = 1003; + /** native declaration : headers\openvr_capi.h:221 */ public static final int ETrackedDeviceProperty_Prop_WillDriftInYaw_Bool = 1004; + /** native declaration : headers\openvr_capi.h:222 */ public static final int ETrackedDeviceProperty_Prop_ManufacturerName_String = 1005; + /** native declaration : headers\openvr_capi.h:223 */ public static final int ETrackedDeviceProperty_Prop_TrackingFirmwareVersion_String = 1006; + /** native declaration : headers\openvr_capi.h:224 */ public static final int ETrackedDeviceProperty_Prop_HardwareRevision_String = 1007; + /** native declaration : headers\openvr_capi.h:225 */ public static final int ETrackedDeviceProperty_Prop_AllWirelessDongleDescriptions_String = 1008; + /** native declaration : headers\openvr_capi.h:226 */ public static final int ETrackedDeviceProperty_Prop_ConnectedWirelessDongle_String = 1009; + /** native declaration : headers\openvr_capi.h:227 */ public static final int ETrackedDeviceProperty_Prop_DeviceIsWireless_Bool = 1010; + /** native declaration : headers\openvr_capi.h:228 */ public static final int ETrackedDeviceProperty_Prop_DeviceIsCharging_Bool = 1011; + /** native declaration : headers\openvr_capi.h:229 */ public static final int ETrackedDeviceProperty_Prop_DeviceBatteryPercentage_Float = 1012; + /** native declaration : headers\openvr_capi.h:230 */ public static final int ETrackedDeviceProperty_Prop_StatusDisplayTransform_Matrix34 = 1013; + /** native declaration : headers\openvr_capi.h:231 */ public static final int ETrackedDeviceProperty_Prop_Firmware_UpdateAvailable_Bool = 1014; + /** native declaration : headers\openvr_capi.h:232 */ public static final int ETrackedDeviceProperty_Prop_Firmware_ManualUpdate_Bool = 1015; + /** native declaration : headers\openvr_capi.h:233 */ public static final int ETrackedDeviceProperty_Prop_Firmware_ManualUpdateURL_String = 1016; + /** native declaration : headers\openvr_capi.h:234 */ public static final int ETrackedDeviceProperty_Prop_HardwareRevision_Uint64 = 1017; + /** native declaration : headers\openvr_capi.h:235 */ public static final int ETrackedDeviceProperty_Prop_FirmwareVersion_Uint64 = 1018; + /** native declaration : headers\openvr_capi.h:236 */ public static final int ETrackedDeviceProperty_Prop_FPGAVersion_Uint64 = 1019; + /** native declaration : headers\openvr_capi.h:237 */ public static final int ETrackedDeviceProperty_Prop_VRCVersion_Uint64 = 1020; + /** native declaration : headers\openvr_capi.h:238 */ public static final int ETrackedDeviceProperty_Prop_RadioVersion_Uint64 = 1021; + /** native declaration : headers\openvr_capi.h:239 */ public static final int ETrackedDeviceProperty_Prop_DongleVersion_Uint64 = 1022; + /** native declaration : headers\openvr_capi.h:240 */ public static final int ETrackedDeviceProperty_Prop_BlockServerShutdown_Bool = 1023; + /** native declaration : headers\openvr_capi.h:241 */ public static final int ETrackedDeviceProperty_Prop_CanUnifyCoordinateSystemWithHmd_Bool = 1024; + /** native declaration : headers\openvr_capi.h:242 */ public static final int ETrackedDeviceProperty_Prop_ContainsProximitySensor_Bool = 1025; + /** native declaration : headers\openvr_capi.h:243 */ public static final int ETrackedDeviceProperty_Prop_DeviceProvidesBatteryStatus_Bool = 1026; + /** native declaration : headers\openvr_capi.h:244 */ public static final int ETrackedDeviceProperty_Prop_DeviceCanPowerOff_Bool = 1027; + /** native declaration : headers\openvr_capi.h:245 */ public static final int ETrackedDeviceProperty_Prop_Firmware_ProgrammingTarget_String = 1028; + /** native declaration : headers\openvr_capi.h:246 */ public static final int ETrackedDeviceProperty_Prop_DeviceClass_Int32 = 1029; + /** native declaration : headers\openvr_capi.h:247 */ public static final int ETrackedDeviceProperty_Prop_HasCamera_Bool = 1030; + /** native declaration : headers\openvr_capi.h:248 */ public static final int ETrackedDeviceProperty_Prop_DriverVersion_String = 1031; + /** native declaration : headers\openvr_capi.h:249 */ public static final int ETrackedDeviceProperty_Prop_Firmware_ForceUpdateRequired_Bool = 1032; + /** native declaration : headers\openvr_capi.h:250 */ + public static final int ETrackedDeviceProperty_Prop_ViveSystemButtonFixRequired_Bool = 1033; + /** native declaration : headers\openvr_capi.h:251 */ + public static final int ETrackedDeviceProperty_Prop_ParentDriver_Uint64 = 1034; + /** native declaration : headers\openvr_capi.h:252 */ public static final int ETrackedDeviceProperty_Prop_ReportsTimeSinceVSync_Bool = 2000; + /** native declaration : headers\openvr_capi.h:253 */ public static final int ETrackedDeviceProperty_Prop_SecondsFromVsyncToPhotons_Float = 2001; + /** native declaration : headers\openvr_capi.h:254 */ public static final int ETrackedDeviceProperty_Prop_DisplayFrequency_Float = 2002; + /** native declaration : headers\openvr_capi.h:255 */ public static final int ETrackedDeviceProperty_Prop_UserIpdMeters_Float = 2003; + /** native declaration : headers\openvr_capi.h:256 */ public static final int ETrackedDeviceProperty_Prop_CurrentUniverseId_Uint64 = 2004; + /** native declaration : headers\openvr_capi.h:257 */ public static final int ETrackedDeviceProperty_Prop_PreviousUniverseId_Uint64 = 2005; + /** native declaration : headers\openvr_capi.h:258 */ public static final int ETrackedDeviceProperty_Prop_DisplayFirmwareVersion_Uint64 = 2006; + /** native declaration : headers\openvr_capi.h:259 */ public static final int ETrackedDeviceProperty_Prop_IsOnDesktop_Bool = 2007; + /** native declaration : headers\openvr_capi.h:260 */ public static final int ETrackedDeviceProperty_Prop_DisplayMCType_Int32 = 2008; + /** native declaration : headers\openvr_capi.h:261 */ public static final int ETrackedDeviceProperty_Prop_DisplayMCOffset_Float = 2009; + /** native declaration : headers\openvr_capi.h:262 */ public static final int ETrackedDeviceProperty_Prop_DisplayMCScale_Float = 2010; + /** native declaration : headers\openvr_capi.h:263 */ public static final int ETrackedDeviceProperty_Prop_EdidVendorID_Int32 = 2011; + /** native declaration : headers\openvr_capi.h:264 */ public static final int ETrackedDeviceProperty_Prop_DisplayMCImageLeft_String = 2012; + /** native declaration : headers\openvr_capi.h:265 */ public static final int ETrackedDeviceProperty_Prop_DisplayMCImageRight_String = 2013; + /** native declaration : headers\openvr_capi.h:266 */ public static final int ETrackedDeviceProperty_Prop_DisplayGCBlackClamp_Float = 2014; + /** native declaration : headers\openvr_capi.h:267 */ public static final int ETrackedDeviceProperty_Prop_EdidProductID_Int32 = 2015; + /** native declaration : headers\openvr_capi.h:268 */ public static final int ETrackedDeviceProperty_Prop_CameraToHeadTransform_Matrix34 = 2016; + /** native declaration : headers\openvr_capi.h:269 */ public static final int ETrackedDeviceProperty_Prop_DisplayGCType_Int32 = 2017; + /** native declaration : headers\openvr_capi.h:270 */ public static final int ETrackedDeviceProperty_Prop_DisplayGCOffset_Float = 2018; + /** native declaration : headers\openvr_capi.h:271 */ public static final int ETrackedDeviceProperty_Prop_DisplayGCScale_Float = 2019; + /** native declaration : headers\openvr_capi.h:272 */ public static final int ETrackedDeviceProperty_Prop_DisplayGCPrescale_Float = 2020; + /** native declaration : headers\openvr_capi.h:273 */ public static final int ETrackedDeviceProperty_Prop_DisplayGCImage_String = 2021; + /** native declaration : headers\openvr_capi.h:274 */ public static final int ETrackedDeviceProperty_Prop_LensCenterLeftU_Float = 2022; + /** native declaration : headers\openvr_capi.h:275 */ public static final int ETrackedDeviceProperty_Prop_LensCenterLeftV_Float = 2023; + /** native declaration : headers\openvr_capi.h:276 */ public static final int ETrackedDeviceProperty_Prop_LensCenterRightU_Float = 2024; + /** native declaration : headers\openvr_capi.h:277 */ public static final int ETrackedDeviceProperty_Prop_LensCenterRightV_Float = 2025; + /** native declaration : headers\openvr_capi.h:278 */ public static final int ETrackedDeviceProperty_Prop_UserHeadToEyeDepthMeters_Float = 2026; + /** native declaration : headers\openvr_capi.h:279 */ public static final int ETrackedDeviceProperty_Prop_CameraFirmwareVersion_Uint64 = 2027; + /** native declaration : headers\openvr_capi.h:280 */ public static final int ETrackedDeviceProperty_Prop_CameraFirmwareDescription_String = 2028; + /** native declaration : headers\openvr_capi.h:281 */ public static final int ETrackedDeviceProperty_Prop_DisplayFPGAVersion_Uint64 = 2029; + /** native declaration : headers\openvr_capi.h:282 */ public static final int ETrackedDeviceProperty_Prop_DisplayBootloaderVersion_Uint64 = 2030; + /** native declaration : headers\openvr_capi.h:283 */ public static final int ETrackedDeviceProperty_Prop_DisplayHardwareVersion_Uint64 = 2031; + /** native declaration : headers\openvr_capi.h:284 */ public static final int ETrackedDeviceProperty_Prop_AudioFirmwareVersion_Uint64 = 2032; + /** native declaration : headers\openvr_capi.h:285 */ public static final int ETrackedDeviceProperty_Prop_CameraCompatibilityMode_Int32 = 2033; + /** native declaration : headers\openvr_capi.h:286 */ public static final int ETrackedDeviceProperty_Prop_ScreenshotHorizontalFieldOfViewDegrees_Float = 2034; + /** native declaration : headers\openvr_capi.h:287 */ public static final int ETrackedDeviceProperty_Prop_ScreenshotVerticalFieldOfViewDegrees_Float = 2035; + /** native declaration : headers\openvr_capi.h:288 */ public static final int ETrackedDeviceProperty_Prop_DisplaySuppressed_Bool = 2036; + /** native declaration : headers\openvr_capi.h:289 */ + public static final int ETrackedDeviceProperty_Prop_DisplayAllowNightMode_Bool = 2037; + /** native declaration : headers\openvr_capi.h:290 */ + public static final int ETrackedDeviceProperty_Prop_DisplayMCImageWidth_Int32 = 2038; + /** native declaration : headers\openvr_capi.h:291 */ + public static final int ETrackedDeviceProperty_Prop_DisplayMCImageHeight_Int32 = 2039; + /** native declaration : headers\openvr_capi.h:292 */ + public static final int ETrackedDeviceProperty_Prop_DisplayMCImageNumChannels_Int32 = 2040; + /** native declaration : headers\openvr_capi.h:293 */ + public static final int ETrackedDeviceProperty_Prop_DisplayMCImageData_Binary = 2041; + /** native declaration : headers\openvr_capi.h:294 */ + public static final int ETrackedDeviceProperty_Prop_UsesDriverDirectMode_Bool = 2042; + /** native declaration : headers\openvr_capi.h:295 */ public static final int ETrackedDeviceProperty_Prop_AttachedDeviceId_String = 3000; + /** native declaration : headers\openvr_capi.h:296 */ public static final int ETrackedDeviceProperty_Prop_SupportedButtons_Uint64 = 3001; + /** native declaration : headers\openvr_capi.h:297 */ public static final int ETrackedDeviceProperty_Prop_Axis0Type_Int32 = 3002; + /** native declaration : headers\openvr_capi.h:298 */ public static final int ETrackedDeviceProperty_Prop_Axis1Type_Int32 = 3003; + /** native declaration : headers\openvr_capi.h:299 */ public static final int ETrackedDeviceProperty_Prop_Axis2Type_Int32 = 3004; + /** native declaration : headers\openvr_capi.h:300 */ public static final int ETrackedDeviceProperty_Prop_Axis3Type_Int32 = 3005; + /** native declaration : headers\openvr_capi.h:301 */ public static final int ETrackedDeviceProperty_Prop_Axis4Type_Int32 = 3006; + /** native declaration : headers\openvr_capi.h:302 */ public static final int ETrackedDeviceProperty_Prop_ControllerRoleHint_Int32 = 3007; + /** native declaration : headers\openvr_capi.h:303 */ public static final int ETrackedDeviceProperty_Prop_FieldOfViewLeftDegrees_Float = 4000; + /** native declaration : headers\openvr_capi.h:304 */ public static final int ETrackedDeviceProperty_Prop_FieldOfViewRightDegrees_Float = 4001; + /** native declaration : headers\openvr_capi.h:305 */ public static final int ETrackedDeviceProperty_Prop_FieldOfViewTopDegrees_Float = 4002; + /** native declaration : headers\openvr_capi.h:306 */ public static final int ETrackedDeviceProperty_Prop_FieldOfViewBottomDegrees_Float = 4003; + /** native declaration : headers\openvr_capi.h:307 */ public static final int ETrackedDeviceProperty_Prop_TrackingRangeMinimumMeters_Float = 4004; + /** native declaration : headers\openvr_capi.h:308 */ public static final int ETrackedDeviceProperty_Prop_TrackingRangeMaximumMeters_Float = 4005; + /** native declaration : headers\openvr_capi.h:309 */ public static final int ETrackedDeviceProperty_Prop_ModeLabel_String = 4006; + /** native declaration : headers\openvr_capi.h:310 */ + public static final int ETrackedDeviceProperty_Prop_IconPathName_String = 5000; + /** native declaration : headers\openvr_capi.h:311 */ + public static final int ETrackedDeviceProperty_Prop_NamedIconPathDeviceOff_String = 5001; + /** native declaration : headers\openvr_capi.h:312 */ + public static final int ETrackedDeviceProperty_Prop_NamedIconPathDeviceSearching_String = 5002; + /** native declaration : headers\openvr_capi.h:313 */ + public static final int ETrackedDeviceProperty_Prop_NamedIconPathDeviceSearchingAlert_String = 5003; + /** native declaration : headers\openvr_capi.h:314 */ + public static final int ETrackedDeviceProperty_Prop_NamedIconPathDeviceReady_String = 5004; + /** native declaration : headers\openvr_capi.h:315 */ + public static final int ETrackedDeviceProperty_Prop_NamedIconPathDeviceReadyAlert_String = 5005; + /** native declaration : headers\openvr_capi.h:316 */ + public static final int ETrackedDeviceProperty_Prop_NamedIconPathDeviceNotReady_String = 5006; + /** native declaration : headers\openvr_capi.h:317 */ + public static final int ETrackedDeviceProperty_Prop_NamedIconPathDeviceStandby_String = 5007; + /** native declaration : headers\openvr_capi.h:318 */ + public static final int ETrackedDeviceProperty_Prop_NamedIconPathDeviceAlertLow_String = 5008; + /** native declaration : headers\openvr_capi.h:319 */ + public static final int ETrackedDeviceProperty_Prop_DisplayHiddenArea_Binary_Start = 5100; + /** native declaration : headers\openvr_capi.h:320 */ + public static final int ETrackedDeviceProperty_Prop_DisplayHiddenArea_Binary_End = 5150; + /** native declaration : headers\openvr_capi.h:321 */ + public static final int ETrackedDeviceProperty_Prop_UserConfigPath_String = 6000; + /** native declaration : headers\openvr_capi.h:322 */ + public static final int ETrackedDeviceProperty_Prop_InstallPath_String = 6001; + /** native declaration : headers\openvr_capi.h:323 */ public static final int ETrackedDeviceProperty_Prop_VendorSpecific_Reserved_Start = 10000; + /** native declaration : headers\openvr_capi.h:324 */ public static final int ETrackedDeviceProperty_Prop_VendorSpecific_Reserved_End = 10999; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:339
+ * enum values + */ public static interface ETrackedPropertyError { + /** native declaration : headers\openvr_capi.h:327 */ public static final int ETrackedPropertyError_TrackedProp_Success = 0; + /** native declaration : headers\openvr_capi.h:328 */ public static final int ETrackedPropertyError_TrackedProp_WrongDataType = 1; + /** native declaration : headers\openvr_capi.h:329 */ public static final int ETrackedPropertyError_TrackedProp_WrongDeviceClass = 2; + /** native declaration : headers\openvr_capi.h:330 */ public static final int ETrackedPropertyError_TrackedProp_BufferTooSmall = 3; + /** native declaration : headers\openvr_capi.h:331 */ public static final int ETrackedPropertyError_TrackedProp_UnknownProperty = 4; + /** native declaration : headers\openvr_capi.h:332 */ public static final int ETrackedPropertyError_TrackedProp_InvalidDevice = 5; + /** native declaration : headers\openvr_capi.h:333 */ public static final int ETrackedPropertyError_TrackedProp_CouldNotContactServer = 6; + /** native declaration : headers\openvr_capi.h:334 */ public static final int ETrackedPropertyError_TrackedProp_ValueNotProvidedByDevice = 7; + /** native declaration : headers\openvr_capi.h:335 */ public static final int ETrackedPropertyError_TrackedProp_StringExceedsMaximumLength = 8; + /** native declaration : headers\openvr_capi.h:336 */ public static final int ETrackedPropertyError_TrackedProp_NotYetAvailable = 9; + /** native declaration : headers\openvr_capi.h:337 */ + public static final int ETrackedPropertyError_TrackedProp_PermissionDenied = 10; + /** native declaration : headers\openvr_capi.h:338 */ + public static final int ETrackedPropertyError_TrackedProp_InvalidOperation = 11; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:345
+ * enum values + */ public static interface EVRSubmitFlags { + /** native declaration : headers\openvr_capi.h:341 */ public static final int EVRSubmitFlags_Submit_Default = 0; + /** native declaration : headers\openvr_capi.h:342 */ public static final int EVRSubmitFlags_Submit_LensDistortionAlreadyApplied = 1; + /** native declaration : headers\openvr_capi.h:343 */ public static final int EVRSubmitFlags_Submit_GlRenderBuffer = 2; + /** native declaration : headers\openvr_capi.h:344 */ + public static final int EVRSubmitFlags_Submit_Reserved = 4; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:356
+ * enum values + */ public static interface EVRState { + /** native declaration : headers\openvr_capi.h:347 */ public static final int EVRState_VRState_Undefined = -1; + /** native declaration : headers\openvr_capi.h:348 */ public static final int EVRState_VRState_Off = 0; + /** native declaration : headers\openvr_capi.h:349 */ public static final int EVRState_VRState_Searching = 1; + /** native declaration : headers\openvr_capi.h:350 */ public static final int EVRState_VRState_Searching_Alert = 2; + /** native declaration : headers\openvr_capi.h:351 */ public static final int EVRState_VRState_Ready = 3; + /** native declaration : headers\openvr_capi.h:352 */ public static final int EVRState_VRState_Ready_Alert = 4; + /** native declaration : headers\openvr_capi.h:353 */ public static final int EVRState_VRState_NotReady = 5; + /** native declaration : headers\openvr_capi.h:354 */ public static final int EVRState_VRState_Standby = 6; + /** native declaration : headers\openvr_capi.h:355 */ public static final int EVRState_VRState_Ready_Alert_Low = 7; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:467
+ * enum values + */ public static interface EVREventType { + /** native declaration : headers\openvr_capi.h:358 */ public static final int EVREventType_VREvent_None = 0; + /** native declaration : headers\openvr_capi.h:359 */ public static final int EVREventType_VREvent_TrackedDeviceActivated = 100; + /** native declaration : headers\openvr_capi.h:360 */ public static final int EVREventType_VREvent_TrackedDeviceDeactivated = 101; + /** native declaration : headers\openvr_capi.h:361 */ public static final int EVREventType_VREvent_TrackedDeviceUpdated = 102; + /** native declaration : headers\openvr_capi.h:362 */ public static final int EVREventType_VREvent_TrackedDeviceUserInteractionStarted = 103; + /** native declaration : headers\openvr_capi.h:363 */ public static final int EVREventType_VREvent_TrackedDeviceUserInteractionEnded = 104; + /** native declaration : headers\openvr_capi.h:364 */ public static final int EVREventType_VREvent_IpdChanged = 105; + /** native declaration : headers\openvr_capi.h:365 */ public static final int EVREventType_VREvent_EnterStandbyMode = 106; + /** native declaration : headers\openvr_capi.h:366 */ public static final int EVREventType_VREvent_LeaveStandbyMode = 107; + /** native declaration : headers\openvr_capi.h:367 */ public static final int EVREventType_VREvent_TrackedDeviceRoleChanged = 108; + /** native declaration : headers\openvr_capi.h:368 */ public static final int EVREventType_VREvent_WatchdogWakeUpRequested = 109; + /** native declaration : headers\openvr_capi.h:369 */ + public static final int EVREventType_VREvent_LensDistortionChanged = 110; + /** native declaration : headers\openvr_capi.h:370 */ + public static final int EVREventType_VREvent_PropertyChanged = 111; + /** native declaration : headers\openvr_capi.h:371 */ public static final int EVREventType_VREvent_ButtonPress = 200; + /** native declaration : headers\openvr_capi.h:372 */ public static final int EVREventType_VREvent_ButtonUnpress = 201; + /** native declaration : headers\openvr_capi.h:373 */ public static final int EVREventType_VREvent_ButtonTouch = 202; + /** native declaration : headers\openvr_capi.h:374 */ public static final int EVREventType_VREvent_ButtonUntouch = 203; + /** native declaration : headers\openvr_capi.h:375 */ public static final int EVREventType_VREvent_MouseMove = 300; + /** native declaration : headers\openvr_capi.h:376 */ public static final int EVREventType_VREvent_MouseButtonDown = 301; + /** native declaration : headers\openvr_capi.h:377 */ public static final int EVREventType_VREvent_MouseButtonUp = 302; + /** native declaration : headers\openvr_capi.h:378 */ public static final int EVREventType_VREvent_FocusEnter = 303; + /** native declaration : headers\openvr_capi.h:379 */ public static final int EVREventType_VREvent_FocusLeave = 304; + /** native declaration : headers\openvr_capi.h:380 */ public static final int EVREventType_VREvent_Scroll = 305; + /** native declaration : headers\openvr_capi.h:381 */ public static final int EVREventType_VREvent_TouchPadMove = 306; + /** native declaration : headers\openvr_capi.h:382 */ public static final int EVREventType_VREvent_OverlayFocusChanged = 307; + /** native declaration : headers\openvr_capi.h:383 */ public static final int EVREventType_VREvent_InputFocusCaptured = 400; + /** native declaration : headers\openvr_capi.h:384 */ public static final int EVREventType_VREvent_InputFocusReleased = 401; + /** native declaration : headers\openvr_capi.h:385 */ public static final int EVREventType_VREvent_SceneFocusLost = 402; + /** native declaration : headers\openvr_capi.h:386 */ public static final int EVREventType_VREvent_SceneFocusGained = 403; + /** native declaration : headers\openvr_capi.h:387 */ public static final int EVREventType_VREvent_SceneApplicationChanged = 404; + /** native declaration : headers\openvr_capi.h:388 */ public static final int EVREventType_VREvent_SceneFocusChanged = 405; + /** native declaration : headers\openvr_capi.h:389 */ public static final int EVREventType_VREvent_InputFocusChanged = 406; + /** native declaration : headers\openvr_capi.h:390 */ public static final int EVREventType_VREvent_SceneApplicationSecondaryRenderingStarted = 407; + /** native declaration : headers\openvr_capi.h:391 */ public static final int EVREventType_VREvent_HideRenderModels = 410; + /** native declaration : headers\openvr_capi.h:392 */ public static final int EVREventType_VREvent_ShowRenderModels = 411; + /** native declaration : headers\openvr_capi.h:393 */ public static final int EVREventType_VREvent_OverlayShown = 500; + /** native declaration : headers\openvr_capi.h:394 */ public static final int EVREventType_VREvent_OverlayHidden = 501; + /** native declaration : headers\openvr_capi.h:395 */ public static final int EVREventType_VREvent_DashboardActivated = 502; + /** native declaration : headers\openvr_capi.h:396 */ public static final int EVREventType_VREvent_DashboardDeactivated = 503; + /** native declaration : headers\openvr_capi.h:397 */ public static final int EVREventType_VREvent_DashboardThumbSelected = 504; + /** native declaration : headers\openvr_capi.h:398 */ public static final int EVREventType_VREvent_DashboardRequested = 505; + /** native declaration : headers\openvr_capi.h:399 */ public static final int EVREventType_VREvent_ResetDashboard = 506; + /** native declaration : headers\openvr_capi.h:400 */ public static final int EVREventType_VREvent_RenderToast = 507; + /** native declaration : headers\openvr_capi.h:401 */ public static final int EVREventType_VREvent_ImageLoaded = 508; + /** native declaration : headers\openvr_capi.h:402 */ public static final int EVREventType_VREvent_ShowKeyboard = 509; + /** native declaration : headers\openvr_capi.h:403 */ public static final int EVREventType_VREvent_HideKeyboard = 510; + /** native declaration : headers\openvr_capi.h:404 */ public static final int EVREventType_VREvent_OverlayGamepadFocusGained = 511; + /** native declaration : headers\openvr_capi.h:405 */ public static final int EVREventType_VREvent_OverlayGamepadFocusLost = 512; + /** native declaration : headers\openvr_capi.h:406 */ public static final int EVREventType_VREvent_OverlaySharedTextureChanged = 513; + /** native declaration : headers\openvr_capi.h:407 */ public static final int EVREventType_VREvent_DashboardGuideButtonDown = 514; + /** native declaration : headers\openvr_capi.h:408 */ public static final int EVREventType_VREvent_DashboardGuideButtonUp = 515; + /** native declaration : headers\openvr_capi.h:409 */ public static final int EVREventType_VREvent_ScreenshotTriggered = 516; + /** native declaration : headers\openvr_capi.h:410 */ public static final int EVREventType_VREvent_ImageFailed = 517; + /** native declaration : headers\openvr_capi.h:411 */ + public static final int EVREventType_VREvent_DashboardOverlayCreated = 518; + /** native declaration : headers\openvr_capi.h:412 */ public static final int EVREventType_VREvent_RequestScreenshot = 520; + /** native declaration : headers\openvr_capi.h:413 */ public static final int EVREventType_VREvent_ScreenshotTaken = 521; + /** native declaration : headers\openvr_capi.h:414 */ public static final int EVREventType_VREvent_ScreenshotFailed = 522; + /** native declaration : headers\openvr_capi.h:415 */ public static final int EVREventType_VREvent_SubmitScreenshotToDashboard = 523; + /** native declaration : headers\openvr_capi.h:416 */ public static final int EVREventType_VREvent_ScreenshotProgressToDashboard = 524; + /** native declaration : headers\openvr_capi.h:417 */ + public static final int EVREventType_VREvent_PrimaryDashboardDeviceChanged = 525; + /** native declaration : headers\openvr_capi.h:418 */ public static final int EVREventType_VREvent_Notification_Shown = 600; + /** native declaration : headers\openvr_capi.h:419 */ public static final int EVREventType_VREvent_Notification_Hidden = 601; + /** native declaration : headers\openvr_capi.h:420 */ public static final int EVREventType_VREvent_Notification_BeginInteraction = 602; + /** native declaration : headers\openvr_capi.h:421 */ public static final int EVREventType_VREvent_Notification_Destroyed = 603; + /** native declaration : headers\openvr_capi.h:422 */ public static final int EVREventType_VREvent_Quit = 700; + /** native declaration : headers\openvr_capi.h:423 */ public static final int EVREventType_VREvent_ProcessQuit = 701; + /** native declaration : headers\openvr_capi.h:424 */ public static final int EVREventType_VREvent_QuitAborted_UserPrompt = 702; + /** native declaration : headers\openvr_capi.h:425 */ public static final int EVREventType_VREvent_QuitAcknowledged = 703; + /** native declaration : headers\openvr_capi.h:426 */ public static final int EVREventType_VREvent_DriverRequestedQuit = 704; + /** native declaration : headers\openvr_capi.h:427 */ public static final int EVREventType_VREvent_ChaperoneDataHasChanged = 800; + /** native declaration : headers\openvr_capi.h:428 */ public static final int EVREventType_VREvent_ChaperoneUniverseHasChanged = 801; + /** native declaration : headers\openvr_capi.h:429 */ public static final int EVREventType_VREvent_ChaperoneTempDataHasChanged = 802; + /** native declaration : headers\openvr_capi.h:430 */ public static final int EVREventType_VREvent_ChaperoneSettingsHaveChanged = 803; + /** native declaration : headers\openvr_capi.h:431 */ public static final int EVREventType_VREvent_SeatedZeroPoseReset = 804; + /** native declaration : headers\openvr_capi.h:432 */ public static final int EVREventType_VREvent_AudioSettingsHaveChanged = 820; + /** native declaration : headers\openvr_capi.h:433 */ public static final int EVREventType_VREvent_BackgroundSettingHasChanged = 850; + /** native declaration : headers\openvr_capi.h:434 */ public static final int EVREventType_VREvent_CameraSettingsHaveChanged = 851; + /** native declaration : headers\openvr_capi.h:435 */ public static final int EVREventType_VREvent_ReprojectionSettingHasChanged = 852; + /** native declaration : headers\openvr_capi.h:436 */ public static final int EVREventType_VREvent_ModelSkinSettingsHaveChanged = 853; + /** native declaration : headers\openvr_capi.h:437 */ public static final int EVREventType_VREvent_EnvironmentSettingsHaveChanged = 854; + /** native declaration : headers\openvr_capi.h:438 */ + public static final int EVREventType_VREvent_PowerSettingsHaveChanged = 855; + /** native declaration : headers\openvr_capi.h:439 */ public static final int EVREventType_VREvent_StatusUpdate = 900; + /** native declaration : headers\openvr_capi.h:440 */ public static final int EVREventType_VREvent_MCImageUpdated = 1000; + /** native declaration : headers\openvr_capi.h:441 */ public static final int EVREventType_VREvent_FirmwareUpdateStarted = 1100; + /** native declaration : headers\openvr_capi.h:442 */ public static final int EVREventType_VREvent_FirmwareUpdateFinished = 1101; + /** native declaration : headers\openvr_capi.h:443 */ public static final int EVREventType_VREvent_KeyboardClosed = 1200; + /** native declaration : headers\openvr_capi.h:444 */ public static final int EVREventType_VREvent_KeyboardCharInput = 1201; + /** native declaration : headers\openvr_capi.h:445 */ public static final int EVREventType_VREvent_KeyboardDone = 1202; + /** native declaration : headers\openvr_capi.h:446 */ public static final int EVREventType_VREvent_ApplicationTransitionStarted = 1300; + /** native declaration : headers\openvr_capi.h:447 */ public static final int EVREventType_VREvent_ApplicationTransitionAborted = 1301; + /** native declaration : headers\openvr_capi.h:448 */ public static final int EVREventType_VREvent_ApplicationTransitionNewAppStarted = 1302; + /** native declaration : headers\openvr_capi.h:449 */ public static final int EVREventType_VREvent_ApplicationListUpdated = 1303; + /** native declaration : headers\openvr_capi.h:450 */ public static final int EVREventType_VREvent_ApplicationMimeTypeLoad = 1304; + /** native declaration : headers\openvr_capi.h:451 */ + public static final int EVREventType_VREvent_ApplicationTransitionNewAppLaunchComplete = 1305; + /** native declaration : headers\openvr_capi.h:452 */ public static final int EVREventType_VREvent_Compositor_MirrorWindowShown = 1400; + /** native declaration : headers\openvr_capi.h:453 */ public static final int EVREventType_VREvent_Compositor_MirrorWindowHidden = 1401; + /** native declaration : headers\openvr_capi.h:454 */ public static final int EVREventType_VREvent_Compositor_ChaperoneBoundsShown = 1410; + /** native declaration : headers\openvr_capi.h:455 */ public static final int EVREventType_VREvent_Compositor_ChaperoneBoundsHidden = 1411; + /** native declaration : headers\openvr_capi.h:456 */ public static final int EVREventType_VREvent_TrackedCamera_StartVideoStream = 1500; + /** native declaration : headers\openvr_capi.h:457 */ public static final int EVREventType_VREvent_TrackedCamera_StopVideoStream = 1501; + /** native declaration : headers\openvr_capi.h:458 */ public static final int EVREventType_VREvent_TrackedCamera_PauseVideoStream = 1502; + /** native declaration : headers\openvr_capi.h:459 */ public static final int EVREventType_VREvent_TrackedCamera_ResumeVideoStream = 1503; + /** native declaration : headers\openvr_capi.h:460 */ + public static final int EVREventType_VREvent_TrackedCamera_EditingSurface = 1550; + /** native declaration : headers\openvr_capi.h:461 */ public static final int EVREventType_VREvent_PerformanceTest_EnableCapture = 1600; + /** native declaration : headers\openvr_capi.h:462 */ public static final int EVREventType_VREvent_PerformanceTest_DisableCapture = 1601; + /** native declaration : headers\openvr_capi.h:463 */ public static final int EVREventType_VREvent_PerformanceTest_FidelityLevel = 1602; + /** native declaration : headers\openvr_capi.h:464 */ + public static final int EVREventType_VREvent_MessageOverlay_Closed = 1650; + /** native declaration : headers\openvr_capi.h:465 */ public static final int EVREventType_VREvent_VendorSpecific_Reserved_Start = 10000; + /** native declaration : headers\openvr_capi.h:466 */ public static final int EVREventType_VREvent_VendorSpecific_Reserved_End = 19999; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:474
+ * enum values + */ public static interface EDeviceActivityLevel { + /** native declaration : headers\openvr_capi.h:469 */ public static final int EDeviceActivityLevel_k_EDeviceActivityLevel_Unknown = -1; + /** native declaration : headers\openvr_capi.h:470 */ public static final int EDeviceActivityLevel_k_EDeviceActivityLevel_Idle = 0; + /** native declaration : headers\openvr_capi.h:471 */ public static final int EDeviceActivityLevel_k_EDeviceActivityLevel_UserInteraction = 1; + /** native declaration : headers\openvr_capi.h:472 */ public static final int EDeviceActivityLevel_k_EDeviceActivityLevel_UserInteraction_Timeout = 2; + /** native declaration : headers\openvr_capi.h:473 */ public static final int EDeviceActivityLevel_k_EDeviceActivityLevel_Standby = 3; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:494
+ * enum values + */ public static interface EVRButtonId { + /** native declaration : headers\openvr_capi.h:476 */ public static final int EVRButtonId_k_EButton_System = 0; + /** native declaration : headers\openvr_capi.h:477 */ public static final int EVRButtonId_k_EButton_ApplicationMenu = 1; + /** native declaration : headers\openvr_capi.h:478 */ public static final int EVRButtonId_k_EButton_Grip = 2; + /** native declaration : headers\openvr_capi.h:479 */ public static final int EVRButtonId_k_EButton_DPad_Left = 3; + /** native declaration : headers\openvr_capi.h:480 */ public static final int EVRButtonId_k_EButton_DPad_Up = 4; + /** native declaration : headers\openvr_capi.h:481 */ public static final int EVRButtonId_k_EButton_DPad_Right = 5; + /** native declaration : headers\openvr_capi.h:482 */ public static final int EVRButtonId_k_EButton_DPad_Down = 6; + /** native declaration : headers\openvr_capi.h:483 */ public static final int EVRButtonId_k_EButton_A = 7; + /** native declaration : headers\openvr_capi.h:484 */ + public static final int EVRButtonId_k_EButton_ProximitySensor = 31; + /** native declaration : headers\openvr_capi.h:485 */ public static final int EVRButtonId_k_EButton_Axis0 = 32; + /** native declaration : headers\openvr_capi.h:486 */ public static final int EVRButtonId_k_EButton_Axis1 = 33; + /** native declaration : headers\openvr_capi.h:487 */ public static final int EVRButtonId_k_EButton_Axis2 = 34; + /** native declaration : headers\openvr_capi.h:488 */ public static final int EVRButtonId_k_EButton_Axis3 = 35; + /** native declaration : headers\openvr_capi.h:489 */ public static final int EVRButtonId_k_EButton_Axis4 = 36; + /** native declaration : headers\openvr_capi.h:490 */ public static final int EVRButtonId_k_EButton_SteamVR_Touchpad = 32; + /** native declaration : headers\openvr_capi.h:491 */ public static final int EVRButtonId_k_EButton_SteamVR_Trigger = 33; + /** native declaration : headers\openvr_capi.h:492 */ public static final int EVRButtonId_k_EButton_Dashboard_Back = 2; + /** native declaration : headers\openvr_capi.h:493 */ public static final int EVRButtonId_k_EButton_Max = 64; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:499
+ * enum values + */ public static interface EVRMouseButton { + /** native declaration : headers\openvr_capi.h:496 */ public static final int EVRMouseButton_VRMouseButton_Left = 1; + /** native declaration : headers\openvr_capi.h:497 */ public static final int EVRMouseButton_VRMouseButton_Right = 2; + /** native declaration : headers\openvr_capi.h:498 */ public static final int EVRMouseButton_VRMouseButton_Middle = 4; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:505
+ * enum values + */ + public static interface EHiddenAreaMeshType { + /** native declaration : headers\openvr_capi.h:501 */ + public static final int EHiddenAreaMeshType_k_eHiddenAreaMesh_Standard = 0; + /** native declaration : headers\openvr_capi.h:502 */ + public static final int EHiddenAreaMeshType_k_eHiddenAreaMesh_Inverse = 1; + /** native declaration : headers\openvr_capi.h:503 */ + public static final int EHiddenAreaMeshType_k_eHiddenAreaMesh_LineLoop = 2; + /** native declaration : headers\openvr_capi.h:504 */ + public static final int EHiddenAreaMeshType_k_eHiddenAreaMesh_Max = 3; + }; + /** + * native declaration : headers\openvr_capi.h:511
+ * enum values + */ public static interface EVRControllerAxisType { + /** native declaration : headers\openvr_capi.h:507 */ public static final int EVRControllerAxisType_k_eControllerAxis_None = 0; + /** native declaration : headers\openvr_capi.h:508 */ public static final int EVRControllerAxisType_k_eControllerAxis_TrackPad = 1; + /** native declaration : headers\openvr_capi.h:509 */ public static final int EVRControllerAxisType_k_eControllerAxis_Joystick = 2; + /** native declaration : headers\openvr_capi.h:510 */ public static final int EVRControllerAxisType_k_eControllerAxis_Trigger = 3; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:515
+ * enum values + */ public static interface EVRControllerEventOutputType { + /** native declaration : headers\openvr_capi.h:513 */ public static final int EVRControllerEventOutputType_ControllerEventOutput_OSEvents = 0; + /** native declaration : headers\openvr_capi.h:514 */ public static final int EVRControllerEventOutputType_ControllerEventOutput_VREvents = 1; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:523
+ * enum values + */ public static interface ECollisionBoundsStyle { + /** native declaration : headers\openvr_capi.h:517 */ public static final int ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_BEGINNER = 0; + /** native declaration : headers\openvr_capi.h:518 */ public static final int ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_INTERMEDIATE = 1; + /** native declaration : headers\openvr_capi.h:519 */ public static final int ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_SQUARES = 2; + /** native declaration : headers\openvr_capi.h:520 */ public static final int ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_ADVANCED = 3; + /** native declaration : headers\openvr_capi.h:521 */ public static final int ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_NONE = 4; + /** native declaration : headers\openvr_capi.h:522 */ public static final int ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_COUNT = 5; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:546
+ * enum values + */ public static interface EVROverlayError { + /** native declaration : headers\openvr_capi.h:525 */ public static final int EVROverlayError_VROverlayError_None = 0; + /** native declaration : headers\openvr_capi.h:526 */ public static final int EVROverlayError_VROverlayError_UnknownOverlay = 10; + /** native declaration : headers\openvr_capi.h:527 */ public static final int EVROverlayError_VROverlayError_InvalidHandle = 11; + /** native declaration : headers\openvr_capi.h:528 */ public static final int EVROverlayError_VROverlayError_PermissionDenied = 12; + /** native declaration : headers\openvr_capi.h:529 */ public static final int EVROverlayError_VROverlayError_OverlayLimitExceeded = 13; + /** native declaration : headers\openvr_capi.h:530 */ public static final int EVROverlayError_VROverlayError_WrongVisibilityType = 14; + /** native declaration : headers\openvr_capi.h:531 */ public static final int EVROverlayError_VROverlayError_KeyTooLong = 15; + /** native declaration : headers\openvr_capi.h:532 */ public static final int EVROverlayError_VROverlayError_NameTooLong = 16; + /** native declaration : headers\openvr_capi.h:533 */ public static final int EVROverlayError_VROverlayError_KeyInUse = 17; + /** native declaration : headers\openvr_capi.h:534 */ public static final int EVROverlayError_VROverlayError_WrongTransformType = 18; + /** native declaration : headers\openvr_capi.h:535 */ public static final int EVROverlayError_VROverlayError_InvalidTrackedDevice = 19; + /** native declaration : headers\openvr_capi.h:536 */ public static final int EVROverlayError_VROverlayError_InvalidParameter = 20; + /** native declaration : headers\openvr_capi.h:537 */ public static final int EVROverlayError_VROverlayError_ThumbnailCantBeDestroyed = 21; + /** native declaration : headers\openvr_capi.h:538 */ public static final int EVROverlayError_VROverlayError_ArrayTooSmall = 22; + /** native declaration : headers\openvr_capi.h:539 */ public static final int EVROverlayError_VROverlayError_RequestFailed = 23; + /** native declaration : headers\openvr_capi.h:540 */ public static final int EVROverlayError_VROverlayError_InvalidTexture = 24; + /** native declaration : headers\openvr_capi.h:541 */ public static final int EVROverlayError_VROverlayError_UnableToLoadFile = 25; - public static final int EVROverlayError_VROVerlayError_KeyboardAlreadyInUse = 26; + /** native declaration : headers\openvr_capi.h:542 */ + public static final int EVROverlayError_VROverlayError_KeyboardAlreadyInUse = 26; + /** native declaration : headers\openvr_capi.h:543 */ public static final int EVROverlayError_VROverlayError_NoNeighbor = 27; + /** native declaration : headers\openvr_capi.h:544 */ + public static final int EVROverlayError_VROverlayError_TooManyMaskPrimitives = 29; + /** native declaration : headers\openvr_capi.h:545 */ + public static final int EVROverlayError_VROverlayError_BadMaskPrimitive = 30; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:556
+ * enum values + */ public static interface EVRApplicationType { + /** native declaration : headers\openvr_capi.h:548 */ public static final int EVRApplicationType_VRApplication_Other = 0; + /** native declaration : headers\openvr_capi.h:549 */ public static final int EVRApplicationType_VRApplication_Scene = 1; + /** native declaration : headers\openvr_capi.h:550 */ public static final int EVRApplicationType_VRApplication_Overlay = 2; + /** native declaration : headers\openvr_capi.h:551 */ public static final int EVRApplicationType_VRApplication_Background = 3; + /** native declaration : headers\openvr_capi.h:552 */ public static final int EVRApplicationType_VRApplication_Utility = 4; + /** native declaration : headers\openvr_capi.h:553 */ public static final int EVRApplicationType_VRApplication_VRMonitor = 5; + /** native declaration : headers\openvr_capi.h:554 */ public static final int EVRApplicationType_VRApplication_SteamWatchdog = 6; + /** native declaration : headers\openvr_capi.h:555 */ public static final int EVRApplicationType_VRApplication_Max = 7; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:561
+ * enum values + */ public static interface EVRFirmwareError { + /** native declaration : headers\openvr_capi.h:558 */ public static final int EVRFirmwareError_VRFirmwareError_None = 0; + /** native declaration : headers\openvr_capi.h:559 */ public static final int EVRFirmwareError_VRFirmwareError_Success = 1; + /** native declaration : headers\openvr_capi.h:560 */ public static final int EVRFirmwareError_VRFirmwareError_Fail = 2; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:568
+ * enum values + */ public static interface EVRNotificationError { + /** native declaration : headers\openvr_capi.h:563 */ public static final int EVRNotificationError_VRNotificationError_OK = 0; + /** native declaration : headers\openvr_capi.h:564 */ public static final int EVRNotificationError_VRNotificationError_InvalidNotificationId = 100; + /** native declaration : headers\openvr_capi.h:565 */ public static final int EVRNotificationError_VRNotificationError_NotificationQueueFull = 101; + /** native declaration : headers\openvr_capi.h:566 */ public static final int EVRNotificationError_VRNotificationError_InvalidOverlayHandle = 102; + /** native declaration : headers\openvr_capi.h:567 */ public static final int EVRNotificationError_VRNotificationError_SystemWithUserValueAlreadyExists = 103; - }; - /** enum values */ + }; + + /** + * native declaration : headers\openvr_capi.h:648
+ * enum values + */ public static interface EVRInitError { + /** native declaration : headers\openvr_capi.h:570 */ public static final int EVRInitError_VRInitError_None = 0; + /** native declaration : headers\openvr_capi.h:571 */ public static final int EVRInitError_VRInitError_Unknown = 1; + /** native declaration : headers\openvr_capi.h:572 */ public static final int EVRInitError_VRInitError_Init_InstallationNotFound = 100; + /** native declaration : headers\openvr_capi.h:573 */ public static final int EVRInitError_VRInitError_Init_InstallationCorrupt = 101; + /** native declaration : headers\openvr_capi.h:574 */ public static final int EVRInitError_VRInitError_Init_VRClientDLLNotFound = 102; + /** native declaration : headers\openvr_capi.h:575 */ public static final int EVRInitError_VRInitError_Init_FileNotFound = 103; + /** native declaration : headers\openvr_capi.h:576 */ public static final int EVRInitError_VRInitError_Init_FactoryNotFound = 104; + /** native declaration : headers\openvr_capi.h:577 */ public static final int EVRInitError_VRInitError_Init_InterfaceNotFound = 105; + /** native declaration : headers\openvr_capi.h:578 */ public static final int EVRInitError_VRInitError_Init_InvalidInterface = 106; + /** native declaration : headers\openvr_capi.h:579 */ public static final int EVRInitError_VRInitError_Init_UserConfigDirectoryInvalid = 107; + /** native declaration : headers\openvr_capi.h:580 */ public static final int EVRInitError_VRInitError_Init_HmdNotFound = 108; + /** native declaration : headers\openvr_capi.h:581 */ public static final int EVRInitError_VRInitError_Init_NotInitialized = 109; + /** native declaration : headers\openvr_capi.h:582 */ public static final int EVRInitError_VRInitError_Init_PathRegistryNotFound = 110; + /** native declaration : headers\openvr_capi.h:583 */ public static final int EVRInitError_VRInitError_Init_NoConfigPath = 111; + /** native declaration : headers\openvr_capi.h:584 */ public static final int EVRInitError_VRInitError_Init_NoLogPath = 112; + /** native declaration : headers\openvr_capi.h:585 */ public static final int EVRInitError_VRInitError_Init_PathRegistryNotWritable = 113; + /** native declaration : headers\openvr_capi.h:586 */ public static final int EVRInitError_VRInitError_Init_AppInfoInitFailed = 114; + /** native declaration : headers\openvr_capi.h:587 */ public static final int EVRInitError_VRInitError_Init_Retry = 115; + /** native declaration : headers\openvr_capi.h:588 */ public static final int EVRInitError_VRInitError_Init_InitCanceledByUser = 116; + /** native declaration : headers\openvr_capi.h:589 */ public static final int EVRInitError_VRInitError_Init_AnotherAppLaunching = 117; + /** native declaration : headers\openvr_capi.h:590 */ public static final int EVRInitError_VRInitError_Init_SettingsInitFailed = 118; + /** native declaration : headers\openvr_capi.h:591 */ public static final int EVRInitError_VRInitError_Init_ShuttingDown = 119; + /** native declaration : headers\openvr_capi.h:592 */ public static final int EVRInitError_VRInitError_Init_TooManyObjects = 120; + /** native declaration : headers\openvr_capi.h:593 */ public static final int EVRInitError_VRInitError_Init_NoServerForBackgroundApp = 121; + /** native declaration : headers\openvr_capi.h:594 */ public static final int EVRInitError_VRInitError_Init_NotSupportedWithCompositor = 122; + /** native declaration : headers\openvr_capi.h:595 */ public static final int EVRInitError_VRInitError_Init_NotAvailableToUtilityApps = 123; + /** native declaration : headers\openvr_capi.h:596 */ public static final int EVRInitError_VRInitError_Init_Internal = 124; + /** native declaration : headers\openvr_capi.h:597 */ public static final int EVRInitError_VRInitError_Init_HmdDriverIdIsNone = 125; + /** native declaration : headers\openvr_capi.h:598 */ public static final int EVRInitError_VRInitError_Init_HmdNotFoundPresenceFailed = 126; + /** native declaration : headers\openvr_capi.h:599 */ public static final int EVRInitError_VRInitError_Init_VRMonitorNotFound = 127; + /** native declaration : headers\openvr_capi.h:600 */ public static final int EVRInitError_VRInitError_Init_VRMonitorStartupFailed = 128; + /** native declaration : headers\openvr_capi.h:601 */ public static final int EVRInitError_VRInitError_Init_LowPowerWatchdogNotSupported = 129; + /** native declaration : headers\openvr_capi.h:602 */ public static final int EVRInitError_VRInitError_Init_InvalidApplicationType = 130; + /** native declaration : headers\openvr_capi.h:603 */ public static final int EVRInitError_VRInitError_Init_NotAvailableToWatchdogApps = 131; + /** native declaration : headers\openvr_capi.h:604 */ public static final int EVRInitError_VRInitError_Init_WatchdogDisabledInSettings = 132; + /** native declaration : headers\openvr_capi.h:605 */ + public static final int EVRInitError_VRInitError_Init_VRDashboardNotFound = 133; + /** native declaration : headers\openvr_capi.h:606 */ + public static final int EVRInitError_VRInitError_Init_VRDashboardStartupFailed = 134; + /** native declaration : headers\openvr_capi.h:607 */ public static final int EVRInitError_VRInitError_Driver_Failed = 200; + /** native declaration : headers\openvr_capi.h:608 */ public static final int EVRInitError_VRInitError_Driver_Unknown = 201; + /** native declaration : headers\openvr_capi.h:609 */ public static final int EVRInitError_VRInitError_Driver_HmdUnknown = 202; + /** native declaration : headers\openvr_capi.h:610 */ public static final int EVRInitError_VRInitError_Driver_NotLoaded = 203; + /** native declaration : headers\openvr_capi.h:611 */ public static final int EVRInitError_VRInitError_Driver_RuntimeOutOfDate = 204; + /** native declaration : headers\openvr_capi.h:612 */ public static final int EVRInitError_VRInitError_Driver_HmdInUse = 205; + /** native declaration : headers\openvr_capi.h:613 */ public static final int EVRInitError_VRInitError_Driver_NotCalibrated = 206; + /** native declaration : headers\openvr_capi.h:614 */ public static final int EVRInitError_VRInitError_Driver_CalibrationInvalid = 207; + /** native declaration : headers\openvr_capi.h:615 */ public static final int EVRInitError_VRInitError_Driver_HmdDisplayNotFound = 208; + /** native declaration : headers\openvr_capi.h:616 */ public static final int EVRInitError_VRInitError_Driver_TrackedDeviceInterfaceUnknown = 209; + /** native declaration : headers\openvr_capi.h:617 */ public static final int EVRInitError_VRInitError_Driver_HmdDriverIdOutOfBounds = 211; + /** native declaration : headers\openvr_capi.h:618 */ public static final int EVRInitError_VRInitError_Driver_HmdDisplayMirrored = 212; + /** native declaration : headers\openvr_capi.h:619 */ public static final int EVRInitError_VRInitError_IPC_ServerInitFailed = 300; + /** native declaration : headers\openvr_capi.h:620 */ public static final int EVRInitError_VRInitError_IPC_ConnectFailed = 301; + /** native declaration : headers\openvr_capi.h:621 */ public static final int EVRInitError_VRInitError_IPC_SharedStateInitFailed = 302; + /** native declaration : headers\openvr_capi.h:622 */ public static final int EVRInitError_VRInitError_IPC_CompositorInitFailed = 303; + /** native declaration : headers\openvr_capi.h:623 */ public static final int EVRInitError_VRInitError_IPC_MutexInitFailed = 304; + /** native declaration : headers\openvr_capi.h:624 */ public static final int EVRInitError_VRInitError_IPC_Failed = 305; + /** native declaration : headers\openvr_capi.h:625 */ public static final int EVRInitError_VRInitError_IPC_CompositorConnectFailed = 306; + /** native declaration : headers\openvr_capi.h:626 */ public static final int EVRInitError_VRInitError_IPC_CompositorInvalidConnectResponse = 307; + /** native declaration : headers\openvr_capi.h:627 */ public static final int EVRInitError_VRInitError_IPC_ConnectFailedAfterMultipleAttempts = 308; + /** native declaration : headers\openvr_capi.h:628 */ public static final int EVRInitError_VRInitError_Compositor_Failed = 400; + /** native declaration : headers\openvr_capi.h:629 */ public static final int EVRInitError_VRInitError_Compositor_D3D11HardwareRequired = 401; + /** native declaration : headers\openvr_capi.h:630 */ public static final int EVRInitError_VRInitError_Compositor_FirmwareRequiresUpdate = 402; + /** native declaration : headers\openvr_capi.h:631 */ public static final int EVRInitError_VRInitError_Compositor_OverlayInitFailed = 403; + /** native declaration : headers\openvr_capi.h:632 */ public static final int EVRInitError_VRInitError_Compositor_ScreenshotsInitFailed = 404; + /** native declaration : headers\openvr_capi.h:633 */ public static final int EVRInitError_VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000; + /** native declaration : headers\openvr_capi.h:634 */ public static final int EVRInitError_VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101; + /** native declaration : headers\openvr_capi.h:635 */ public static final int EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102; + /** native declaration : headers\openvr_capi.h:636 */ public static final int EVRInitError_VRInitError_VendorSpecific_HmdFound_NoStoredConfig = 1103; + /** native declaration : headers\openvr_capi.h:637 */ public static final int EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigTooBig = 1104; + /** native declaration : headers\openvr_capi.h:638 */ public static final int EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigTooSmall = 1105; + /** native declaration : headers\openvr_capi.h:639 */ public static final int EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToInitZLib = 1106; + /** native declaration : headers\openvr_capi.h:640 */ public static final int EVRInitError_VRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion = 1107; + /** native declaration : headers\openvr_capi.h:641 */ public static final int EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart = 1108; + /** native declaration : headers\openvr_capi.h:642 */ public static final int EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart = 1109; + /** native declaration : headers\openvr_capi.h:643 */ public static final int EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext = 1110; + /** native declaration : headers\openvr_capi.h:644 */ public static final int EVRInitError_VRInitError_VendorSpecific_HmdFound_UserDataAddressRange = 1111; + /** native declaration : headers\openvr_capi.h:645 */ public static final int EVRInitError_VRInitError_VendorSpecific_HmdFound_UserDataError = 1112; + /** native declaration : headers\openvr_capi.h:646 */ public static final int EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113; + /** native declaration : headers\openvr_capi.h:647 */ public static final int EVRInitError_VRInitError_Steam_SteamInstallationNotFound = 2000; - }; - /** enum values */ + }; + + public static String getEVRInitErrorString(int error){ + String str = ""; + + switch(error){ + + + case EVRInitError.EVRInitError_VRInitError_None: + str="None"; + break; + case EVRInitError.EVRInitError_VRInitError_Unknown: + str="Unknown"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_InstallationNotFound: + str="Installation not found"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_InstallationCorrupt: + str="Installation corrupt"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_VRClientDLLNotFound: + str="VR Client DLL not found"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_FileNotFound: + str="File not found"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_FactoryNotFound: + str="Factory not found"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_InterfaceNotFound: + str="Interface not found"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_InvalidInterface: + str="Invalid interface"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_UserConfigDirectoryInvalid: + str="User config directory invalid"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_HmdNotFound: + str="HMD not found"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_NotInitialized: + str="Not initialized"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_PathRegistryNotFound: + str="Path registry not found"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_NoConfigPath: + str="No config path"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_NoLogPath: + str="No log path"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_PathRegistryNotWritable: + str="Path registry not writable"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_AppInfoInitFailed: + str="AppInfo init failed"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_Retry: + str="Init retry"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_InitCanceledByUser: + str="Init canceled by user"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_AnotherAppLaunching: + str="Another app launching"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_SettingsInitFailed: + str="Setting init failed"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_ShuttingDown: + str="Shutting down"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_TooManyObjects: + str="Too many objects"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_NoServerForBackgroundApp: + str="No server background app"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_NotSupportedWithCompositor: + str="Not supported with compositor"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_NotAvailableToUtilityApps: + str="Not available to utility apps"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_Internal: + str="Internal"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_HmdDriverIdIsNone: + str="Driver Id is None"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_HmdNotFoundPresenceFailed: + str="HMD not found presence failed"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_VRMonitorNotFound: + str="VR monitor not found"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_VRMonitorStartupFailed: + str="VR monitor startup failed"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_LowPowerWatchdogNotSupported: + str="Low power watchdog not supported"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_InvalidApplicationType: + str="Invalid application type"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_NotAvailableToWatchdogApps: + str="Not available to watchdog apps"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_WatchdogDisabledInSettings: + str="Watchdog disabled in settings"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_VRDashboardNotFound: + str="VR dashboard not found"; + break; + case EVRInitError.EVRInitError_VRInitError_Init_VRDashboardStartupFailed: + str="VR dashboard setup failed"; + break; + case EVRInitError.EVRInitError_VRInitError_Driver_Failed: + str="Driver failed"; + break; + case EVRInitError.EVRInitError_VRInitError_Driver_Unknown: + str="Driver unknown"; + break; + case EVRInitError.EVRInitError_VRInitError_Driver_HmdUnknown: + str="HMD unknown"; + break; + case EVRInitError.EVRInitError_VRInitError_Driver_NotLoaded: + str="Driver not loaded"; + break; + case EVRInitError.EVRInitError_VRInitError_Driver_RuntimeOutOfDate: + str="Driver runtime out of date"; + break; + case EVRInitError.EVRInitError_VRInitError_Driver_HmdInUse: + str="HMD in use"; + break; + case EVRInitError.EVRInitError_VRInitError_Driver_NotCalibrated: + str="Not calibrated"; + break; + case EVRInitError.EVRInitError_VRInitError_Driver_CalibrationInvalid: + str="Calibration invalid"; + break; + case EVRInitError.EVRInitError_VRInitError_Driver_HmdDisplayNotFound: + str="HMD display not found"; + break; + case EVRInitError.EVRInitError_VRInitError_Driver_TrackedDeviceInterfaceUnknown: + str="Tracked device interface unknown"; + break; + case EVRInitError.EVRInitError_VRInitError_Driver_HmdDriverIdOutOfBounds: + str="HMD driver Id out of bounds"; + break; + case EVRInitError.EVRInitError_VRInitError_Driver_HmdDisplayMirrored: + str="HMD display mirrored"; + break; + case EVRInitError.EVRInitError_VRInitError_IPC_ServerInitFailed: + str=""; + break; + case EVRInitError.EVRInitError_VRInitError_IPC_ConnectFailed: str=""; break; + case EVRInitError.EVRInitError_VRInitError_IPC_SharedStateInitFailed: str=""; break; + case EVRInitError.EVRInitError_VRInitError_IPC_CompositorInitFailed: str=""; break; + case EVRInitError.EVRInitError_VRInitError_IPC_MutexInitFailed: str=""; break; + case EVRInitError.EVRInitError_VRInitError_IPC_Failed: str=""; break; + case EVRInitError.EVRInitError_VRInitError_IPC_CompositorConnectFailed: str=""; break; + case EVRInitError.EVRInitError_VRInitError_IPC_CompositorInvalidConnectResponse: str=""; break; + case EVRInitError.EVRInitError_VRInitError_IPC_ConnectFailedAfterMultipleAttempts: str=""; break; + case EVRInitError.EVRInitError_VRInitError_Compositor_Failed: str=""; break; + case EVRInitError.EVRInitError_VRInitError_Compositor_D3D11HardwareRequired: str=""; break; + case EVRInitError.EVRInitError_VRInitError_Compositor_FirmwareRequiresUpdate: str=""; break; + case EVRInitError.EVRInitError_VRInitError_Compositor_OverlayInitFailed: str=""; break; + case EVRInitError.EVRInitError_VRInitError_Compositor_ScreenshotsInitFailed: str=""; break; + case EVRInitError.EVRInitError_VRInitError_VendorSpecific_UnableToConnectToOculusRuntime: str=""; break; + case EVRInitError.EVRInitError_VRInitError_VendorSpecific_HmdFound_CantOpenDevice: str=""; break; + case EVRInitError.EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart: str=""; break; + case EVRInitError.EVRInitError_VRInitError_VendorSpecific_HmdFound_NoStoredConfig: str=""; break; + case EVRInitError.EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigTooBig: str=""; break; + case EVRInitError.EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigTooSmall: str=""; break; + case EVRInitError.EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToInitZLib: str=""; break; + case EVRInitError.EVRInitError_VRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion: str=""; break; + case EVRInitError.EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart: str=""; break; + case EVRInitError.EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart: str=""; break; + case EVRInitError.EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext: str=""; break; + case EVRInitError.EVRInitError_VRInitError_VendorSpecific_HmdFound_UserDataAddressRange: str=""; break; + case EVRInitError.EVRInitError_VRInitError_VendorSpecific_HmdFound_UserDataError: str=""; break; + case EVRInitError.EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck: str=""; break; + case EVRInitError.EVRInitError_VRInitError_Steam_SteamInstallationNotFound: str=""; break; + default: + } + + return str; + } + + /** + * native declaration : headers\openvr_capi.h:656
+ * enum values + */ public static interface EVRScreenshotType { + /** native declaration : headers\openvr_capi.h:650 */ public static final int EVRScreenshotType_VRScreenshotType_None = 0; + /** native declaration : headers\openvr_capi.h:651 */ public static final int EVRScreenshotType_VRScreenshotType_Mono = 1; + /** native declaration : headers\openvr_capi.h:652 */ public static final int EVRScreenshotType_VRScreenshotType_Stereo = 2; + /** native declaration : headers\openvr_capi.h:653 */ public static final int EVRScreenshotType_VRScreenshotType_Cubemap = 3; + /** native declaration : headers\openvr_capi.h:654 */ public static final int EVRScreenshotType_VRScreenshotType_MonoPanorama = 4; + /** native declaration : headers\openvr_capi.h:655 */ public static final int EVRScreenshotType_VRScreenshotType_StereoPanorama = 5; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:660
+ * enum values + */ public static interface EVRScreenshotPropertyFilenames { + /** native declaration : headers\openvr_capi.h:658 */ public static final int EVRScreenshotPropertyFilenames_VRScreenshotPropertyFilenames_Preview = 0; + /** native declaration : headers\openvr_capi.h:659 */ public static final int EVRScreenshotPropertyFilenames_VRScreenshotPropertyFilenames_VR = 1; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:679
+ * enum values + */ public static interface EVRTrackedCameraError { + /** native declaration : headers\openvr_capi.h:662 */ public static final int EVRTrackedCameraError_VRTrackedCameraError_None = 0; + /** native declaration : headers\openvr_capi.h:663 */ public static final int EVRTrackedCameraError_VRTrackedCameraError_OperationFailed = 100; + /** native declaration : headers\openvr_capi.h:664 */ public static final int EVRTrackedCameraError_VRTrackedCameraError_InvalidHandle = 101; + /** native declaration : headers\openvr_capi.h:665 */ public static final int EVRTrackedCameraError_VRTrackedCameraError_InvalidFrameHeaderVersion = 102; + /** native declaration : headers\openvr_capi.h:666 */ public static final int EVRTrackedCameraError_VRTrackedCameraError_OutOfHandles = 103; + /** native declaration : headers\openvr_capi.h:667 */ public static final int EVRTrackedCameraError_VRTrackedCameraError_IPCFailure = 104; + /** native declaration : headers\openvr_capi.h:668 */ public static final int EVRTrackedCameraError_VRTrackedCameraError_NotSupportedForThisDevice = 105; + /** native declaration : headers\openvr_capi.h:669 */ public static final int EVRTrackedCameraError_VRTrackedCameraError_SharedMemoryFailure = 106; + /** native declaration : headers\openvr_capi.h:670 */ public static final int EVRTrackedCameraError_VRTrackedCameraError_FrameBufferingFailure = 107; + /** native declaration : headers\openvr_capi.h:671 */ public static final int EVRTrackedCameraError_VRTrackedCameraError_StreamSetupFailure = 108; + /** native declaration : headers\openvr_capi.h:672 */ public static final int EVRTrackedCameraError_VRTrackedCameraError_InvalidGLTextureId = 109; + /** native declaration : headers\openvr_capi.h:673 */ public static final int EVRTrackedCameraError_VRTrackedCameraError_InvalidSharedTextureHandle = 110; + /** native declaration : headers\openvr_capi.h:674 */ public static final int EVRTrackedCameraError_VRTrackedCameraError_FailedToGetGLTextureId = 111; + /** native declaration : headers\openvr_capi.h:675 */ public static final int EVRTrackedCameraError_VRTrackedCameraError_SharedTextureFailure = 112; + /** native declaration : headers\openvr_capi.h:676 */ public static final int EVRTrackedCameraError_VRTrackedCameraError_NoFrameAvailable = 113; + /** native declaration : headers\openvr_capi.h:677 */ public static final int EVRTrackedCameraError_VRTrackedCameraError_InvalidArgument = 114; + /** native declaration : headers\openvr_capi.h:678 */ public static final int EVRTrackedCameraError_VRTrackedCameraError_InvalidFrameBufferSize = 115; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:685
+ * enum values + */ public static interface EVRTrackedCameraFrameType { + /** native declaration : headers\openvr_capi.h:681 */ public static final int EVRTrackedCameraFrameType_VRTrackedCameraFrameType_Distorted = 0; + /** native declaration : headers\openvr_capi.h:682 */ public static final int EVRTrackedCameraFrameType_VRTrackedCameraFrameType_Undistorted = 1; + /** native declaration : headers\openvr_capi.h:683 */ public static final int EVRTrackedCameraFrameType_VRTrackedCameraFrameType_MaximumUndistorted = 2; + /** native declaration : headers\openvr_capi.h:684 */ public static final int EVRTrackedCameraFrameType_MAX_CAMERA_FRAME_TYPES = 3; }; + /** + * native declaration : headers\openvr_capi.h:707
+ * enum values + */ public static interface EVRApplicationError { + /** native declaration : headers\openvr_capi.h:687 */ public static final int EVRApplicationError_VRApplicationError_None = 0; + /** native declaration : headers\openvr_capi.h:688 */ public static final int EVRApplicationError_VRApplicationError_AppKeyAlreadyExists = 100; + /** native declaration : headers\openvr_capi.h:689 */ public static final int EVRApplicationError_VRApplicationError_NoManifest = 101; + /** native declaration : headers\openvr_capi.h:690 */ public static final int EVRApplicationError_VRApplicationError_NoApplication = 102; + /** native declaration : headers\openvr_capi.h:691 */ public static final int EVRApplicationError_VRApplicationError_InvalidIndex = 103; + /** native declaration : headers\openvr_capi.h:692 */ public static final int EVRApplicationError_VRApplicationError_UnknownApplication = 104; + /** native declaration : headers\openvr_capi.h:693 */ public static final int EVRApplicationError_VRApplicationError_IPCFailed = 105; + /** native declaration : headers\openvr_capi.h:694 */ public static final int EVRApplicationError_VRApplicationError_ApplicationAlreadyRunning = 106; + /** native declaration : headers\openvr_capi.h:695 */ public static final int EVRApplicationError_VRApplicationError_InvalidManifest = 107; + /** native declaration : headers\openvr_capi.h:696 */ public static final int EVRApplicationError_VRApplicationError_InvalidApplication = 108; + /** native declaration : headers\openvr_capi.h:697 */ public static final int EVRApplicationError_VRApplicationError_LaunchFailed = 109; + /** native declaration : headers\openvr_capi.h:698 */ public static final int EVRApplicationError_VRApplicationError_ApplicationAlreadyStarting = 110; + /** native declaration : headers\openvr_capi.h:699 */ public static final int EVRApplicationError_VRApplicationError_LaunchInProgress = 111; + /** native declaration : headers\openvr_capi.h:700 */ public static final int EVRApplicationError_VRApplicationError_OldApplicationQuitting = 112; + /** native declaration : headers\openvr_capi.h:701 */ public static final int EVRApplicationError_VRApplicationError_TransitionAborted = 113; + /** native declaration : headers\openvr_capi.h:702 */ public static final int EVRApplicationError_VRApplicationError_IsTemplate = 114; + /** native declaration : headers\openvr_capi.h:703 */ public static final int EVRApplicationError_VRApplicationError_BufferTooSmall = 200; + /** native declaration : headers\openvr_capi.h:704 */ public static final int EVRApplicationError_VRApplicationError_PropertyNotSet = 201; + /** native declaration : headers\openvr_capi.h:705 */ public static final int EVRApplicationError_VRApplicationError_UnknownProperty = 202; + /** native declaration : headers\openvr_capi.h:706 */ public static final int EVRApplicationError_VRApplicationError_InvalidParameter = 203; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:724
+ * enum values + */ public static interface EVRApplicationProperty { + /** native declaration : headers\openvr_capi.h:709 */ public static final int EVRApplicationProperty_VRApplicationProperty_Name_String = 0; + /** native declaration : headers\openvr_capi.h:710 */ public static final int EVRApplicationProperty_VRApplicationProperty_LaunchType_String = 11; + /** native declaration : headers\openvr_capi.h:711 */ public static final int EVRApplicationProperty_VRApplicationProperty_WorkingDirectory_String = 12; + /** native declaration : headers\openvr_capi.h:712 */ public static final int EVRApplicationProperty_VRApplicationProperty_BinaryPath_String = 13; + /** native declaration : headers\openvr_capi.h:713 */ public static final int EVRApplicationProperty_VRApplicationProperty_Arguments_String = 14; + /** native declaration : headers\openvr_capi.h:714 */ public static final int EVRApplicationProperty_VRApplicationProperty_URL_String = 15; + /** native declaration : headers\openvr_capi.h:715 */ public static final int EVRApplicationProperty_VRApplicationProperty_Description_String = 50; + /** native declaration : headers\openvr_capi.h:716 */ public static final int EVRApplicationProperty_VRApplicationProperty_NewsURL_String = 51; + /** native declaration : headers\openvr_capi.h:717 */ public static final int EVRApplicationProperty_VRApplicationProperty_ImagePath_String = 52; + /** native declaration : headers\openvr_capi.h:718 */ public static final int EVRApplicationProperty_VRApplicationProperty_Source_String = 53; + /** native declaration : headers\openvr_capi.h:719 */ public static final int EVRApplicationProperty_VRApplicationProperty_IsDashboardOverlay_Bool = 60; + /** native declaration : headers\openvr_capi.h:720 */ public static final int EVRApplicationProperty_VRApplicationProperty_IsTemplate_Bool = 61; + /** native declaration : headers\openvr_capi.h:721 */ public static final int EVRApplicationProperty_VRApplicationProperty_IsInstanced_Bool = 62; + /** native declaration : headers\openvr_capi.h:722 */ + public static final int EVRApplicationProperty_VRApplicationProperty_IsInternal_Bool = 63; + /** native declaration : headers\openvr_capi.h:723 */ public static final int EVRApplicationProperty_VRApplicationProperty_LastLaunchTime_Uint64 = 70; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:730
+ * enum values + */ public static interface EVRApplicationTransitionState { + /** native declaration : headers\openvr_capi.h:726 */ public static final int EVRApplicationTransitionState_VRApplicationTransition_None = 0; + /** native declaration : headers\openvr_capi.h:727 */ public static final int EVRApplicationTransitionState_VRApplicationTransition_OldAppQuitSent = 10; + /** native declaration : headers\openvr_capi.h:728 */ public static final int EVRApplicationTransitionState_VRApplicationTransition_WaitingForExternalLaunch = 11; + /** native declaration : headers\openvr_capi.h:729 */ public static final int EVRApplicationTransitionState_VRApplicationTransition_NewAppLaunched = 20; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:742
+ * enum values + */ public static interface ChaperoneCalibrationState { + /** native declaration : headers\openvr_capi.h:732 */ public static final int ChaperoneCalibrationState_OK = 1; + /** native declaration : headers\openvr_capi.h:733 */ public static final int ChaperoneCalibrationState_Warning = 100; + /** native declaration : headers\openvr_capi.h:734 */ public static final int ChaperoneCalibrationState_Warning_BaseStationMayHaveMoved = 101; + /** native declaration : headers\openvr_capi.h:735 */ public static final int ChaperoneCalibrationState_Warning_BaseStationRemoved = 102; + /** native declaration : headers\openvr_capi.h:736 */ public static final int ChaperoneCalibrationState_Warning_SeatedBoundsInvalid = 103; + /** native declaration : headers\openvr_capi.h:737 */ public static final int ChaperoneCalibrationState_Error = 200; - public static final int ChaperoneCalibrationState_Error_BaseStationUninitalized = 201; + /** native declaration : headers\openvr_capi.h:738 */ + public static final int ChaperoneCalibrationState_Error_BaseStationUninitialized = 201; + /** native declaration : headers\openvr_capi.h:739 */ public static final int ChaperoneCalibrationState_Error_BaseStationConflict = 202; + /** native declaration : headers\openvr_capi.h:740 */ public static final int ChaperoneCalibrationState_Error_PlayAreaInvalid = 203; + /** native declaration : headers\openvr_capi.h:741 */ public static final int ChaperoneCalibrationState_Error_CollisionBoundsInvalid = 204; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:746
+ * enum values + */ public static interface EChaperoneConfigFile { + /** native declaration : headers\openvr_capi.h:744 */ public static final int EChaperoneConfigFile_Live = 1; + /** native declaration : headers\openvr_capi.h:745 */ public static final int EChaperoneConfigFile_Temp = 2; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:749
+ * enum values + */ public static interface EChaperoneImportFlags { + /** native declaration : headers\openvr_capi.h:748 */ public static final int EChaperoneImportFlags_EChaperoneImport_BoundsOnly = 1; }; + /** + * native declaration : headers\openvr_capi.h:762
+ * enum values + */ public static interface EVRCompositorError { + /** native declaration : headers\openvr_capi.h:751 */ public static final int EVRCompositorError_VRCompositorError_None = 0; + /** native declaration : headers\openvr_capi.h:752 */ public static final int EVRCompositorError_VRCompositorError_RequestFailed = 1; + /** native declaration : headers\openvr_capi.h:753 */ public static final int EVRCompositorError_VRCompositorError_IncompatibleVersion = 100; + /** native declaration : headers\openvr_capi.h:754 */ public static final int EVRCompositorError_VRCompositorError_DoNotHaveFocus = 101; + /** native declaration : headers\openvr_capi.h:755 */ public static final int EVRCompositorError_VRCompositorError_InvalidTexture = 102; + /** native declaration : headers\openvr_capi.h:756 */ public static final int EVRCompositorError_VRCompositorError_IsNotSceneApplication = 103; + /** native declaration : headers\openvr_capi.h:757 */ public static final int EVRCompositorError_VRCompositorError_TextureIsOnWrongDevice = 104; + /** native declaration : headers\openvr_capi.h:758 */ public static final int EVRCompositorError_VRCompositorError_TextureUsesUnsupportedFormat = 105; + /** native declaration : headers\openvr_capi.h:759 */ public static final int EVRCompositorError_VRCompositorError_SharedTexturesNotSupported = 106; + /** native declaration : headers\openvr_capi.h:760 */ public static final int EVRCompositorError_VRCompositorError_IndexOutOfRange = 107; - }; - /** enum values */ + /** native declaration : headers\openvr_capi.h:761 */ + public static final int EVRCompositorError_VRCompositorError_AlreadySubmitted = 108; + }; + + public static String getEVRCompositorErrorString(int error){ + String str =""; + + switch(error){ + case EVRCompositorError.EVRCompositorError_VRCompositorError_None: + str = "None"; + break; + case EVRCompositorError.EVRCompositorError_VRCompositorError_RequestFailed: + str = "Request failed"; + break; + case EVRCompositorError.EVRCompositorError_VRCompositorError_IncompatibleVersion: + str = "Incompatible version"; + break; + case EVRCompositorError.EVRCompositorError_VRCompositorError_DoNotHaveFocus: + str = "Do not have focus"; + break; + case EVRCompositorError.EVRCompositorError_VRCompositorError_InvalidTexture: + str = "Invalid texture"; + break; + case EVRCompositorError.EVRCompositorError_VRCompositorError_IsNotSceneApplication: + str = "Is not scene application"; + break; + case EVRCompositorError.EVRCompositorError_VRCompositorError_TextureIsOnWrongDevice: + str = "Texture is on wrong device"; + break; + case EVRCompositorError.EVRCompositorError_VRCompositorError_TextureUsesUnsupportedFormat: + str = "Texture uses unsupported format"; + break; + case EVRCompositorError.EVRCompositorError_VRCompositorError_SharedTexturesNotSupported: + str = "Shared textures not supported"; + break; + case EVRCompositorError.EVRCompositorError_VRCompositorError_IndexOutOfRange: + str = "Index out of range"; + break; + case EVRCompositorError.EVRCompositorError_VRCompositorError_AlreadySubmitted: + str = "Already submitted"; + break; + } + return str; + } + + /** + * native declaration : headers\openvr_capi.h:766
+ * enum values + */ public static interface VROverlayInputMethod { + /** native declaration : headers\openvr_capi.h:764 */ public static final int VROverlayInputMethod_None = 0; + /** native declaration : headers\openvr_capi.h:765 */ public static final int VROverlayInputMethod_Mouse = 1; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:772
+ * enum values + */ public static interface VROverlayTransformType { + /** native declaration : headers\openvr_capi.h:768 */ public static final int VROverlayTransformType_VROverlayTransform_Absolute = 0; + /** native declaration : headers\openvr_capi.h:769 */ public static final int VROverlayTransformType_VROverlayTransform_TrackedDeviceRelative = 1; + /** native declaration : headers\openvr_capi.h:770 */ public static final int VROverlayTransformType_VROverlayTransform_SystemOverlay = 2; + /** native declaration : headers\openvr_capi.h:771 */ public static final int VROverlayTransformType_VROverlayTransform_TrackedComponent = 3; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:790
+ * enum values + */ public static interface VROverlayFlags { + /** native declaration : headers\openvr_capi.h:774 */ public static final int VROverlayFlags_None = 0; + /** native declaration : headers\openvr_capi.h:775 */ public static final int VROverlayFlags_Curved = 1; + /** native declaration : headers\openvr_capi.h:776 */ public static final int VROverlayFlags_RGSS4X = 2; + /** native declaration : headers\openvr_capi.h:777 */ public static final int VROverlayFlags_NoDashboardTab = 3; + /** native declaration : headers\openvr_capi.h:778 */ public static final int VROverlayFlags_AcceptsGamepadEvents = 4; + /** native declaration : headers\openvr_capi.h:779 */ public static final int VROverlayFlags_ShowGamepadFocus = 5; + /** native declaration : headers\openvr_capi.h:780 */ public static final int VROverlayFlags_SendVRScrollEvents = 6; + /** native declaration : headers\openvr_capi.h:781 */ public static final int VROverlayFlags_SendVRTouchpadEvents = 7; + /** native declaration : headers\openvr_capi.h:782 */ public static final int VROverlayFlags_ShowTouchPadScrollWheel = 8; + /** native declaration : headers\openvr_capi.h:783 */ public static final int VROverlayFlags_TransferOwnershipToInternalProcess = 9; + /** native declaration : headers\openvr_capi.h:784 */ public static final int VROverlayFlags_SideBySide_Parallel = 10; + /** native declaration : headers\openvr_capi.h:785 */ public static final int VROverlayFlags_SideBySide_Crossed = 11; + /** native declaration : headers\openvr_capi.h:786 */ public static final int VROverlayFlags_Panorama = 12; + /** native declaration : headers\openvr_capi.h:787 */ public static final int VROverlayFlags_StereoPanorama = 13; + /** native declaration : headers\openvr_capi.h:788 */ public static final int VROverlayFlags_SortWithNonSceneOverlays = 14; + /** native declaration : headers\openvr_capi.h:789 */ + public static final int VROverlayFlags_VisibleInDashboard = 15; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:799
+ * enum values + */ + public static interface VRMessageOverlayResponse { + /** native declaration : headers\openvr_capi.h:792 */ + public static final int VRMessageOverlayResponse_ButtonPress_0 = 0; + /** native declaration : headers\openvr_capi.h:793 */ + public static final int VRMessageOverlayResponse_ButtonPress_1 = 1; + /** native declaration : headers\openvr_capi.h:794 */ + public static final int VRMessageOverlayResponse_ButtonPress_2 = 2; + /** native declaration : headers\openvr_capi.h:795 */ + public static final int VRMessageOverlayResponse_ButtonPress_3 = 3; + /** native declaration : headers\openvr_capi.h:796 */ + public static final int VRMessageOverlayResponse_CouldntFindSystemOverlay = 4; + /** native declaration : headers\openvr_capi.h:797 */ + public static final int VRMessageOverlayResponse_CouldntFindOrCreateClientOverlay = 5; + /** native declaration : headers\openvr_capi.h:798 */ + public static final int VRMessageOverlayResponse_ApplicationQuit = 6; + }; + /** + * native declaration : headers\openvr_capi.h:804
+ * enum values + */ public static interface EGamepadTextInputMode { + /** native declaration : headers\openvr_capi.h:801 */ public static final int EGamepadTextInputMode_k_EGamepadTextInputModeNormal = 0; + /** native declaration : headers\openvr_capi.h:802 */ public static final int EGamepadTextInputMode_k_EGamepadTextInputModePassword = 1; + /** native declaration : headers\openvr_capi.h:803 */ public static final int EGamepadTextInputMode_k_EGamepadTextInputModeSubmit = 2; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:808
+ * enum values + */ public static interface EGamepadTextInputLineMode { + /** native declaration : headers\openvr_capi.h:806 */ public static final int EGamepadTextInputLineMode_k_EGamepadTextInputLineModeSingleLine = 0; + /** native declaration : headers\openvr_capi.h:807 */ public static final int EGamepadTextInputLineMode_k_EGamepadTextInputLineModeMultipleLines = 1; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:815
+ * enum values + */ public static interface EOverlayDirection { + /** native declaration : headers\openvr_capi.h:810 */ public static final int EOverlayDirection_OverlayDirection_Up = 0; + /** native declaration : headers\openvr_capi.h:811 */ public static final int EOverlayDirection_OverlayDirection_Down = 1; + /** native declaration : headers\openvr_capi.h:812 */ public static final int EOverlayDirection_OverlayDirection_Left = 2; + /** native declaration : headers\openvr_capi.h:813 */ public static final int EOverlayDirection_OverlayDirection_Right = 3; + /** native declaration : headers\openvr_capi.h:814 */ public static final int EOverlayDirection_OverlayDirection_Count = 4; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:819
+ * enum values + */ + public static interface EVROverlayIntersectionMaskPrimitiveType { + /** native declaration : headers\openvr_capi.h:817 */ + public static final int EVROverlayIntersectionMaskPrimitiveType_OverlayIntersectionPrimitiveType_Rectangle = 0; + /** native declaration : headers\openvr_capi.h:818 */ + public static final int EVROverlayIntersectionMaskPrimitiveType_OverlayIntersectionPrimitiveType_Circle = 1; + }; + /** + * native declaration : headers\openvr_capi.h:834
+ * enum values + */ public static interface EVRRenderModelError { + /** native declaration : headers\openvr_capi.h:821 */ public static final int EVRRenderModelError_VRRenderModelError_None = 0; + /** native declaration : headers\openvr_capi.h:822 */ public static final int EVRRenderModelError_VRRenderModelError_Loading = 100; + /** native declaration : headers\openvr_capi.h:823 */ public static final int EVRRenderModelError_VRRenderModelError_NotSupported = 200; + /** native declaration : headers\openvr_capi.h:824 */ public static final int EVRRenderModelError_VRRenderModelError_InvalidArg = 300; + /** native declaration : headers\openvr_capi.h:825 */ public static final int EVRRenderModelError_VRRenderModelError_InvalidModel = 301; + /** native declaration : headers\openvr_capi.h:826 */ public static final int EVRRenderModelError_VRRenderModelError_NoShapes = 302; + /** native declaration : headers\openvr_capi.h:827 */ public static final int EVRRenderModelError_VRRenderModelError_MultipleShapes = 303; + /** native declaration : headers\openvr_capi.h:828 */ public static final int EVRRenderModelError_VRRenderModelError_TooManyVertices = 304; + /** native declaration : headers\openvr_capi.h:829 */ public static final int EVRRenderModelError_VRRenderModelError_MultipleTextures = 305; + /** native declaration : headers\openvr_capi.h:830 */ public static final int EVRRenderModelError_VRRenderModelError_BufferTooSmall = 306; + /** native declaration : headers\openvr_capi.h:831 */ public static final int EVRRenderModelError_VRRenderModelError_NotEnoughNormals = 307; + /** native declaration : headers\openvr_capi.h:832 */ public static final int EVRRenderModelError_VRRenderModelError_NotEnoughTexCoords = 308; + /** native declaration : headers\openvr_capi.h:833 */ public static final int EVRRenderModelError_VRRenderModelError_InvalidTexture = 400; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:841
+ * enum values + */ public static interface EVRComponentProperty { + /** native declaration : headers\openvr_capi.h:836 */ public static final int EVRComponentProperty_VRComponentProperty_IsStatic = 1; + /** native declaration : headers\openvr_capi.h:837 */ public static final int EVRComponentProperty_VRComponentProperty_IsVisible = 2; + /** native declaration : headers\openvr_capi.h:838 */ public static final int EVRComponentProperty_VRComponentProperty_IsTouched = 4; + /** native declaration : headers\openvr_capi.h:839 */ public static final int EVRComponentProperty_VRComponentProperty_IsPressed = 8; + /** native declaration : headers\openvr_capi.h:840 */ public static final int EVRComponentProperty_VRComponentProperty_IsScrolled = 16; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:846
+ * enum values + */ public static interface EVRNotificationType { + /** native declaration : headers\openvr_capi.h:843 */ public static final int EVRNotificationType_Transient = 0; + /** native declaration : headers\openvr_capi.h:844 */ public static final int EVRNotificationType_Persistent = 1; + /** native declaration : headers\openvr_capi.h:845 */ public static final int EVRNotificationType_Transient_SystemWithUserValue = 2; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:853
+ * enum values + */ public static interface EVRNotificationStyle { + /** native declaration : headers\openvr_capi.h:848 */ public static final int EVRNotificationStyle_None = 0; + /** native declaration : headers\openvr_capi.h:849 */ public static final int EVRNotificationStyle_Application = 100; + /** native declaration : headers\openvr_capi.h:850 */ public static final int EVRNotificationStyle_Contact_Disabled = 200; + /** native declaration : headers\openvr_capi.h:851 */ public static final int EVRNotificationStyle_Contact_Enabled = 201; + /** native declaration : headers\openvr_capi.h:852 */ public static final int EVRNotificationStyle_Contact_Active = 202; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:861
+ * enum values + */ public static interface EVRSettingsError { + /** native declaration : headers\openvr_capi.h:855 */ public static final int EVRSettingsError_VRSettingsError_None = 0; + /** native declaration : headers\openvr_capi.h:856 */ public static final int EVRSettingsError_VRSettingsError_IPCFailed = 1; + /** native declaration : headers\openvr_capi.h:857 */ public static final int EVRSettingsError_VRSettingsError_WriteFailed = 2; + /** native declaration : headers\openvr_capi.h:858 */ public static final int EVRSettingsError_VRSettingsError_ReadFailed = 3; + /** native declaration : headers\openvr_capi.h:859 */ + public static final int EVRSettingsError_VRSettingsError_JsonParseFailed = 4; + /** native declaration : headers\openvr_capi.h:860 */ + public static final int EVRSettingsError_VRSettingsError_UnsetSettingHasNoDefault = 5; }; - /** enum values */ + /** + * native declaration : headers\openvr_capi.h:869
+ * enum values + */ public static interface EVRScreenshotError { + /** native declaration : headers\openvr_capi.h:863 */ public static final int EVRScreenshotError_VRScreenshotError_None = 0; + /** native declaration : headers\openvr_capi.h:864 */ public static final int EVRScreenshotError_VRScreenshotError_RequestFailed = 1; + /** native declaration : headers\openvr_capi.h:865 */ public static final int EVRScreenshotError_VRScreenshotError_IncompatibleVersion = 100; + /** native declaration : headers\openvr_capi.h:866 */ public static final int EVRScreenshotError_VRScreenshotError_NotFound = 101; + /** native declaration : headers\openvr_capi.h:867 */ public static final int EVRScreenshotError_VRScreenshotError_BufferTooSmall = 102; + /** native declaration : headers\openvr_capi.h:868 */ public static final int EVRScreenshotError_VRScreenshotError_ScreenshotAlreadyInProgress = 108; }; - /** OpenVR Constants */ - public static final int k_unTrackingStringSize = 32; - public static final int k_unMaxDriverDebugResponseSize = 32768; - public static final int k_unTrackedDeviceIndex_Hmd = 0; - public static final int k_unMaxTrackedDeviceCount = 16; - public static final int k_unTrackedDeviceIndexOther = 0xFFFFFFFF; - public static final int k_unTrackedDeviceIndexInvalid = 0xFFFFFFFF; - public static final int k_unMaxPropertyStringSize = 32768; - public static final int k_unControllerStateAxisCount = 5; - public static final long k_ulOverlayHandleInvalid = 0; - public static final int k_unScreenshotHandleInvalid = 0; - public static final int k_unMaxApplicationKeyLength = 128; - public static final int k_unVROverlayMaxKeyLength = 128; - public static final int k_unVROverlayMaxNameLength = 128; - public static final int k_unMaxOverlayCount = 32; - public static final int k_unNotificationTextMaxSize = 256; - public static final int k_unMaxSettingsKeyLength = 128; - /** + + /** * Global entry points
* Original signature : intptr_t VR_InitInternal(EVRInitError*, EVRApplicationType)
- * @deprecated use the safer methods {@link #VR_InitInternal(java.nio.IntBuffer, int)} and {@link #VR_InitInternal(com.sun.jna.ptr.IntByReference, int)} instead + * native declaration : headers\openvr_capi.h:1876
*/ - @Deprecated - public static native Pointer VR_InitInternal(IntByReference peError, int eType); - /** + public static native IntByReference VR_InitInternal(IntByReference peError, int eType); + /** * Global entry points
- * Original signature : intptr_t VR_InitInternal(EVRInitError*, EVRApplicationType) + * Original signature : intptr_t VR_InitInternal(EVRInitError*, EVRApplicationType)
+ * native declaration : headers\openvr_capi.h:1876 + */ + public static native IntByReference VR_InitInternal(IntBuffer peError, int eType); + /** + * Original signature : void VR_ShutdownInternal()
+ * native declaration : headers\openvr_capi.h:1878 */ - public static native Pointer VR_InitInternal(IntBuffer peError, int eType); - /** Original signature : void VR_ShutdownInternal() */ public static native void VR_ShutdownInternal(); - /** Original signature : bool VR_IsHmdPresent() */ + /** + * Original signature : bool VR_IsHmdPresent()
+ * native declaration : headers\openvr_capi.h:1880 + */ public static native byte VR_IsHmdPresent(); - /** + /** * Original signature : intptr_t VR_GetGenericInterface(const char*, EVRInitError*)
+ * native declaration : headers\openvr_capi.h:1882
* @deprecated use the safer methods {@link #VR_GetGenericInterface(java.lang.String, java.nio.IntBuffer)} and {@link #VR_GetGenericInterface(com.sun.jna.Pointer, com.sun.jna.ptr.IntByReference)} instead */ @Deprecated - public static native Pointer VR_GetGenericInterface(Pointer pchInterfaceVersion, IntByReference peError); - /** Original signature : intptr_t VR_GetGenericInterface(const char*, EVRInitError*) */ - public static native Pointer VR_GetGenericInterface(String pchInterfaceVersion, IntBuffer peError); - /** Original signature : bool VR_IsRuntimeInstalled() */ + public static native IntByReference VR_GetGenericInterface(Pointer pchInterfaceVersion, IntByReference peError); + /** + * Original signature : intptr_t VR_GetGenericInterface(const char*, EVRInitError*)
+ * native declaration : headers\openvr_capi.h:1882 + */ + public static native IntByReference VR_GetGenericInterface(String pchInterfaceVersion, IntByReference peError); + /** + * Original signature : bool VR_IsRuntimeInstalled()
+ * native declaration : headers\openvr_capi.h:1884 + */ public static native byte VR_IsRuntimeInstalled(); - /** Original signature : char* VR_GetVRInitErrorAsSymbol(EVRInitError) */ + /** + * Original signature : char* VR_GetVRInitErrorAsSymbol(EVRInitError)
+ * native declaration : headers\openvr_capi.h:1886 + */ public static native Pointer VR_GetVRInitErrorAsSymbol(int error); - /** Original signature : char* VR_GetVRInitErrorAsEnglishDescription(EVRInitError) */ + /** + * Original signature : char* VR_GetVRInitErrorAsEnglishDescription(EVRInitError)
+ * native declaration : headers\openvr_capi.h:1888 + */ public static native Pointer VR_GetVRInitErrorAsEnglishDescription(int error); - - public static String IVRSystem_Version = "FnTable:IVRSystem_012"; - public static String IVRApplications_Version = "FnTable:IVRApplications_006"; - public static String IVRSettings_Version = "FnTable:IVRSettings_001"; - public static String IVRExtendedDisplay_Version = "FnTable:IVRExtendedDisplay_001"; - public static String IVRChaperone_Version = "FnTable:IVRChaperone_003"; - public static String IVRChaperoneSetup_Version = "FnTable:IVRChaperoneSetup_005"; - public static String IVRCompositor_Version = "FnTable:IVRCompositor_016"; - public static String IVROverlay_Version = "FnTable:IVROverlay_013"; - public static String IVRRenderModels_Version = "FnTable:IVRRenderModels_005"; - public static String IVRControlPanel_Version = "FnTable:IVRControlPanel_001"; - public static String IVRNotifications_Version = "FnTable:IVRNotifications_002"; - public static String IVRTrackedCamera_Version = "FnTable:IVRTrackedCamera_003"; - public static String IVRScreenshots_Version = "FnTable:IVRScreenshots_001"; - public static String IVRResources_Version = "FnTable:IVRResources_001"; -} + public static class VkQueue_T extends PointerType { + public VkQueue_T(Pointer address) { + super(address); + } + public VkQueue_T() { + super(); + } + }; + public static class VkPhysicalDevice_T extends PointerType { + public VkPhysicalDevice_T(Pointer address) { + super(address); + } + public VkPhysicalDevice_T() { + super(); + } + }; + public static class VkInstance_T extends PointerType { + public VkInstance_T(Pointer address) { + super(address); + } + public VkInstance_T() { + super(); + } + }; + public static class ID3D12CommandQueue extends PointerType { + public ID3D12CommandQueue(Pointer address) { + super(address); + } + public ID3D12CommandQueue() { + super(); + } + }; + public static class ID3D12Resource extends PointerType { + public ID3D12Resource(Pointer address) { + super(address); + } + public ID3D12Resource() { + super(); + } + }; + public static class VkDevice_T extends PointerType { + public VkDevice_T(Pointer address) { + super(address); + } + public VkDevice_T() { + super(); + } + }; +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/NotificationBitmap_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/NotificationBitmap_t.java index 308ed88be..d8dcbf67d 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/NotificationBitmap_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/NotificationBitmap_t.java @@ -1,15 +1,16 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1236
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class NotificationBitmap_t extends Structure { - /** + /** * void *
* C type : void* */ @@ -23,7 +24,7 @@ public class NotificationBitmap_t extends Structure { protected List getFieldOrder() { return Arrays.asList("m_pImageData", "m_nWidth", "m_nHeight", "m_nBytesPerPixel"); } - /** + /** * @param m_pImageData void *
* C type : void* */ @@ -43,4 +44,4 @@ public class NotificationBitmap_t extends Structure { public static class ByValue extends NotificationBitmap_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_ComponentState_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_ComponentState_t.java index d2c90aa6e..ca123da43 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_ComponentState_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_ComponentState_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1205
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -21,7 +22,7 @@ public class RenderModel_ComponentState_t extends Structure { protected List getFieldOrder() { return Arrays.asList("mTrackingToComponentRenderModel", "mTrackingToComponentLocal", "uProperties"); } - /** + /** * @param mTrackingToComponentRenderModel C type : HmdMatrix34_t
* @param mTrackingToComponentLocal C type : HmdMatrix34_t
* @param uProperties C type : VRComponentProperties @@ -41,4 +42,4 @@ public class RenderModel_ComponentState_t extends Structure { public static class ByValue extends RenderModel_ComponentState_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_ControllerMode_State_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_ControllerMode_State_t.java index fdadcb5c3..768e3c17d 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_ControllerMode_State_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_ControllerMode_State_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1229
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -29,4 +30,4 @@ public class RenderModel_ControllerMode_State_t extends Structure { public static class ByValue extends RenderModel_ControllerMode_State_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_TextureMap_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_TextureMap_t.java index 7aa00dfd1..243b29983 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_TextureMap_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_TextureMap_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1217
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -11,7 +12,7 @@ import java.util.List; public class RenderModel_TextureMap_t extends Structure { public short unWidth; public short unHeight; - /** + /** * const uint8_t *
* C type : uint8_t* */ @@ -22,7 +23,7 @@ public class RenderModel_TextureMap_t extends Structure { protected List getFieldOrder() { return Arrays.asList("unWidth", "unHeight", "rubTextureMapData"); } - /** + /** * @param rubTextureMapData const uint8_t *
* C type : uint8_t* */ @@ -41,4 +42,4 @@ public class RenderModel_TextureMap_t extends Structure { public static class ByValue extends RenderModel_TextureMap_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_Vertex_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_Vertex_t.java index a00c33b3f..d4087fbed 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_Vertex_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_Vertex_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1211
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -13,7 +14,7 @@ public class RenderModel_Vertex_t extends Structure { public HmdVector3_t vPosition; /** C type : HmdVector3_t */ public HmdVector3_t vNormal; - /** + /** * float[2]
* C type : float[2] */ @@ -24,7 +25,7 @@ public class RenderModel_Vertex_t extends Structure { protected List getFieldOrder() { return Arrays.asList("vPosition", "vNormal", "rfTextureCoord"); } - /** + /** * @param vPosition C type : HmdVector3_t
* @param vNormal C type : HmdVector3_t
* @param rfTextureCoord float[2]
@@ -47,4 +48,4 @@ public class RenderModel_Vertex_t extends Structure { public static class ByValue extends RenderModel_Vertex_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_t.java index 343717344..4687a593a 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/RenderModel_t.java @@ -1,22 +1,23 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import com.sun.jna.ptr.ShortByReference; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import com.sun.jna.ptr.ShortByReference; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1226
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class RenderModel_t extends Structure { - /** + /** * const struct vr::RenderModel_Vertex_t *
* C type : RenderModel_Vertex_t* */ public com.jme3.system.jopenvr.RenderModel_Vertex_t.ByReference rVertexData; public int unVertexCount; - /** + /** * const uint16_t *
* C type : uint16_t* */ @@ -30,7 +31,7 @@ public class RenderModel_t extends Structure { protected List getFieldOrder() { return Arrays.asList("rVertexData", "unVertexCount", "rIndexData", "unTriangleCount", "diffuseTextureId"); } - /** + /** * @param rVertexData const struct vr::RenderModel_Vertex_t *
* C type : RenderModel_Vertex_t*
* @param rIndexData const uint16_t *
@@ -54,4 +55,4 @@ public class RenderModel_t extends Structure { public static class ByValue extends RenderModel_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/Texture_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/Texture_t.java index 75faa4c57..fc12dea2c 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/Texture_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/Texture_t.java @@ -1,25 +1,26 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:964
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class Texture_t extends Structure { - /** + /** * void *
* C type : void* */ public int handle; - /** - * @see EGraphicsAPIConvention
- * C type : EGraphicsAPIConvention + /** + * @see ETextureType
+ * C type : ETextureType */ public int eType; - /** + /** * @see EColorSpace
* C type : EColorSpace */ @@ -30,11 +31,11 @@ public class Texture_t extends Structure { protected List getFieldOrder() { return Arrays.asList("handle", "eType", "eColorSpace"); } - /** + /** * @param handle void *
* C type : void*
- * @param eType @see EGraphicsAPIConvention
- * C type : EGraphicsAPIConvention
+ * @param eType @see ETextureType
+ * C type : ETextureType
* @param eColorSpace @see EColorSpace
* C type : EColorSpace */ @@ -53,4 +54,4 @@ public class Texture_t extends Structure { public static class ByValue extends Texture_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/TrackedDevicePose_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/TrackedDevicePose_t.java index 5de7e3d8b..7d7823b95 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/TrackedDevicePose_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/TrackedDevicePose_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:974
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -15,7 +16,7 @@ public class TrackedDevicePose_t extends Structure { public HmdVector3_t vVelocity; /** C type : HmdVector3_t */ public HmdVector3_t vAngularVelocity; - /** + /** * @see ETrackingResult
* C type : ETrackingResult */ @@ -28,7 +29,7 @@ public class TrackedDevicePose_t extends Structure { protected List getFieldOrder() { return Arrays.asList("mDeviceToAbsoluteTracking", "vVelocity", "vAngularVelocity", "eTrackingResult", "bPoseIsValid", "bDeviceIsConnected"); } - /** + /** * @param mDeviceToAbsoluteTracking C type : HmdMatrix34_t
* @param vVelocity C type : HmdVector3_t
* @param vAngularVelocity C type : HmdVector3_t
@@ -53,4 +54,4 @@ public class TrackedDevicePose_t extends Structure { public static class ByValue extends TrackedDevicePose_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VRControllerAxis_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VRControllerAxis_t.java index 76db4693f..4a5d4d652 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VRControllerAxis_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VRControllerAxis_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1094
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -31,4 +32,4 @@ public class VRControllerAxis_t extends Structure { public static class ByValue extends VRControllerAxis_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VRControllerState_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VRControllerState_t.java index c6275d69f..04643f804 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VRControllerState_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VRControllerState_t.java @@ -1,57 +1,33 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** - * Holds all the state of a controller at one moment in time (see IVRSystem::GetControllerState). - * - *

+package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1101
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class VRControllerState_t extends Structure { - - /** - * If packet num matches that on your prior call, - * then the controller state hasn't been changed since your last call and there is no need to process it. - */ public int unPacketNum; - - /** - * Bit flags for each of the buttons. Use ButtonMaskFromId to turn an ID into a mask. - */ public long ulButtonPressed; - - /** - * Bit flags for each of the buttons. Use ButtonMaskFromId to turn an ID into a mask - */ public long ulButtonTouched; - - /** - * Axis data for the controller's analog inputs. - */ - public VRControllerAxis_t[] rAxis = new VRControllerAxis_t[5]; - - - /** - * Create a new VR controller state. + /** + * struct vr::VRControllerAxis_t[5]
+ * C type : VRControllerAxis_t[5] */ + public VRControllerAxis_t[] rAxis = new VRControllerAxis_t[5]; public VRControllerState_t() { super(); } protected List getFieldOrder() { return Arrays.asList("unPacketNum", "ulButtonPressed", "ulButtonTouched", "rAxis"); } - - /** - * Create a new VR controller state. - * @param unPacketNum if packet num matches that on your prior call, then the controller state hasn't been changed since your last call and there is no need to process it. - * @param ulButtonPressed bit flags for each of the buttons. Use ButtonMaskFromId to turn an ID into a mask - * @param ulButtonTouched bit flags for each of the buttons. Use ButtonMaskFromId to turn an ID into a mask - * @param rAxis axis data for the controller's analog inputs. - */ + /** + * @param rAxis struct vr::VRControllerAxis_t[5]
+ * C type : VRControllerAxis_t[5] + */ public VRControllerState_t(int unPacketNum, long ulButtonPressed, long ulButtonTouched, VRControllerAxis_t rAxis[]) { super(); this.unPacketNum = unPacketNum; @@ -61,35 +37,13 @@ public class VRControllerState_t extends Structure { throw new IllegalArgumentException("Wrong array size !"); this.rAxis = rAxis; } - - /** - * Create a new VR controller state. - * @param peer the pointer to the native structure. - */ public VRControllerState_t(Pointer peer) { super(peer); } - - /** - * JNA specific type. - *

- * This file was autogenerated by JNAerator,
- * a tool written by Olivier Chafik that uses a few opensource projects..
- * For help, please visit NativeLibs4Java , Rococoa, or JNA. - */ public static class ByReference extends VRControllerState_t implements Structure.ByReference { }; - - /** - * JNA specific type. - *

- * This file was autogenerated by JNAerator,
- * a tool written by Olivier Chafik that uses a few opensource projects..
- * For help, please visit NativeLibs4Java , Rococoa, or JNA. - * - */ public static class ByValue extends VRControllerState_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_ApplicationLaunch_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_ApplicationLaunch_t.java index eebde3c33..44b822885 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_ApplicationLaunch_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_ApplicationLaunch_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1072
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -31,4 +32,4 @@ public class VREvent_ApplicationLaunch_t extends Structure { public static class ByValue extends VREvent_ApplicationLaunch_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Chaperone_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Chaperone_t.java index 5b929a606..e9c62bf42 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Chaperone_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Chaperone_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1051
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -31,4 +32,4 @@ public class VREvent_Chaperone_t extends Structure { public static class ByValue extends VREvent_Chaperone_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Controller_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Controller_t.java index d5545a2fc..22f2c6e11 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Controller_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Controller_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1006
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -29,4 +30,4 @@ public class VREvent_Controller_t extends Structure { public static class ByValue extends VREvent_Controller_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Data_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Data_t.java index c255b6740..40b0a3db6 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Data_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Data_t.java @@ -1,7 +1,8 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Union; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Union; +/** + * native declaration : headers\openvr_capi.h:1278
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -131,4 +132,4 @@ public class VREvent_Data_t extends Union { public static class ByValue extends VREvent_Data_t implements com.sun.jna.Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_EditingCameraSurface_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_EditingCameraSurface_t.java new file mode 100644 index 000000000..ee33f365d --- /dev/null +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_EditingCameraSurface_t.java @@ -0,0 +1,35 @@ +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1076
+ * This file was autogenerated by JNAerator,
+ * a tool written by Olivier Chafik that uses a few opensource projects..
+ * For help, please visit NativeLibs4Java , Rococoa, or JNA. + */ +public class VREvent_EditingCameraSurface_t extends Structure { + public long overlayHandle; + public int nVisualMode; + public VREvent_EditingCameraSurface_t() { + super(); + } + protected List getFieldOrder() { + return Arrays.asList("overlayHandle", "nVisualMode"); + } + public VREvent_EditingCameraSurface_t(long overlayHandle, int nVisualMode) { + super(); + this.overlayHandle = overlayHandle; + this.nVisualMode = nVisualMode; + } + public VREvent_EditingCameraSurface_t(Pointer peer) { + super(peer); + } + public static class ByReference extends VREvent_EditingCameraSurface_t implements Structure.ByReference { + + }; + public static class ByValue extends VREvent_EditingCameraSurface_t implements Structure.ByValue { + + }; +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Ipd_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Ipd_t.java index 767c1642c..509b2cfd1 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Ipd_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Ipd_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1047
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -29,4 +30,4 @@ public class VREvent_Ipd_t extends Structure { public static class ByValue extends VREvent_Ipd_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Keyboard_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Keyboard_t.java index 8a066d43a..e3a5d1261 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Keyboard_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Keyboard_t.java @@ -1,15 +1,16 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1044
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class VREvent_Keyboard_t extends Structure { - /** + /** * char[8]
* C type : char*[8] */ @@ -21,7 +22,7 @@ public class VREvent_Keyboard_t extends Structure { protected List getFieldOrder() { return Arrays.asList("cNewInput", "uUserValue"); } - /** + /** * @param cNewInput char[8]
* C type : char*[8] */ @@ -41,4 +42,4 @@ public class VREvent_Keyboard_t extends Structure { public static class ByValue extends VREvent_Keyboard_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_MessageOverlay_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_MessageOverlay_t.java new file mode 100644 index 000000000..bf0e25b28 --- /dev/null +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_MessageOverlay_t.java @@ -0,0 +1,33 @@ +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1079
+ * This file was autogenerated by JNAerator,
+ * a tool written by Olivier Chafik that uses a few opensource projects..
+ * For help, please visit NativeLibs4Java , Rococoa, or JNA. + */ +public class VREvent_MessageOverlay_t extends Structure { + public int unVRMessageOverlayResponse; + public VREvent_MessageOverlay_t() { + super(); + } + protected List getFieldOrder() { + return Arrays.asList("unVRMessageOverlayResponse"); + } + public VREvent_MessageOverlay_t(int unVRMessageOverlayResponse) { + super(); + this.unVRMessageOverlayResponse = unVRMessageOverlayResponse; + } + public VREvent_MessageOverlay_t(Pointer peer) { + super(peer); + } + public static class ByReference extends VREvent_MessageOverlay_t implements Structure.ByReference { + + }; + public static class ByValue extends VREvent_MessageOverlay_t implements Structure.ByValue { + + }; +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Mouse_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Mouse_t.java index d835cabd2..832534db6 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Mouse_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Mouse_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1011
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -33,4 +34,4 @@ public class VREvent_Mouse_t extends Structure { public static class ByValue extends VREvent_Mouse_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Notification_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Notification_t.java index bb238bd33..ed7bbe420 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Notification_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Notification_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1028
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -31,4 +32,4 @@ public class VREvent_Notification_t extends Structure { public static class ByValue extends VREvent_Notification_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Overlay_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Overlay_t.java index c22092b93..f693d2a42 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Overlay_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Overlay_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1036
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -29,4 +30,4 @@ public class VREvent_Overlay_t extends Structure { public static class ByValue extends VREvent_Overlay_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_PerformanceTest_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_PerformanceTest_t.java index 9749e0446..9d0baeb59 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_PerformanceTest_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_PerformanceTest_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1058
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -29,4 +30,4 @@ public class VREvent_PerformanceTest_t extends Structure { public static class ByValue extends VREvent_PerformanceTest_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Process_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Process_t.java index bdae72571..5374287c2 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Process_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Process_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1033
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -33,4 +34,4 @@ public class VREvent_Process_t extends Structure { public static class ByValue extends VREvent_Process_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Property_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Property_t.java new file mode 100644 index 000000000..7b9dcb8e6 --- /dev/null +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Property_t.java @@ -0,0 +1,45 @@ +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1085
+ * This file was autogenerated by JNAerator,
+ * a tool written by Olivier Chafik that uses a few opensource projects..
+ * For help, please visit NativeLibs4Java , Rococoa, or JNA. + */ +public class VREvent_Property_t extends Structure { + /** C type : PropertyContainerHandle_t */ + public long container; + /** + * @see ETrackedDeviceProperty
+ * C type : ETrackedDeviceProperty + */ + public int prop; + public VREvent_Property_t() { + super(); + } + protected List getFieldOrder() { + return Arrays.asList("container", "prop"); + } + /** + * @param container C type : PropertyContainerHandle_t
+ * @param prop @see ETrackedDeviceProperty
+ * C type : ETrackedDeviceProperty + */ + public VREvent_Property_t(long container, int prop) { + super(); + this.container = container; + this.prop = prop; + } + public VREvent_Property_t(Pointer peer) { + super(peer); + } + public static class ByReference extends VREvent_Property_t implements Structure.ByReference { + + }; + public static class ByValue extends VREvent_Property_t implements Structure.ByValue { + + }; +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Reserved_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Reserved_t.java index a3b046f08..638428c62 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Reserved_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Reserved_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1055
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -31,4 +32,4 @@ public class VREvent_Reserved_t extends Structure { public static class ByValue extends VREvent_Reserved_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_ScreenshotProgress_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_ScreenshotProgress_t.java index 0d7eb534e..c1cb365e1 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_ScreenshotProgress_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_ScreenshotProgress_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1068
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -29,4 +30,4 @@ public class VREvent_ScreenshotProgress_t extends Structure { public static class ByValue extends VREvent_ScreenshotProgress_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Screenshot_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Screenshot_t.java index 71a5d75e1..2860f082b 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Screenshot_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Screenshot_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1065
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -31,4 +32,4 @@ public class VREvent_Screenshot_t extends Structure { public static class ByValue extends VREvent_Screenshot_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Scroll_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Scroll_t.java index 77e02ddf3..7cf75de8d 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Scroll_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Scroll_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1016
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -33,4 +34,4 @@ public class VREvent_Scroll_t extends Structure { public static class ByValue extends VREvent_Scroll_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_SeatedZeroPoseReset_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_SeatedZeroPoseReset_t.java index e9592e403..4c1227b9d 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_SeatedZeroPoseReset_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_SeatedZeroPoseReset_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1061
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -29,4 +30,4 @@ public class VREvent_SeatedZeroPoseReset_t extends Structure { public static class ByValue extends VREvent_SeatedZeroPoseReset_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Status_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Status_t.java index 24fda3c39..1249d47a0 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Status_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_Status_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1039
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -29,4 +30,4 @@ public class VREvent_Status_t extends Structure { public static class ByValue extends VREvent_Status_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_TouchPadMove_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_TouchPadMove_t.java index 9cb195da4..f46b0a499 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_TouchPadMove_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_TouchPadMove_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1024
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -39,4 +40,4 @@ public class VREvent_TouchPadMove_t extends Structure { public static class ByValue extends VREvent_TouchPadMove_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_t.java index 508a8c0e4..716a4d69d 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_t.java @@ -1,10 +1,11 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** * An event posted by the server to all running applications
+ * native declaration : headers\openvr_capi.h:1286
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -23,7 +24,7 @@ public class VREvent_t extends Structure { protected List getFieldOrder() { return Arrays.asList("eventType", "trackedDeviceIndex", "eventAgeSeconds", "data"); } - /** + /** * @param eventType EVREventType enum
* @param trackedDeviceIndex C type : TrackedDeviceIndex_t
* @param data C type : VREvent_Data_t @@ -44,4 +45,4 @@ public class VREvent_t extends Structure { public static class ByValue extends VREvent_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VROverlayIntersectionMaskPrimitive_Data_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VROverlayIntersectionMaskPrimitive_Data_t.java new file mode 100644 index 000000000..964dcf280 --- /dev/null +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VROverlayIntersectionMaskPrimitive_Data_t.java @@ -0,0 +1,39 @@ +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Union; +/** + * native declaration : headers\openvr_capi.h:1290
+ * This file was autogenerated by JNAerator,
+ * a tool written by Olivier Chafik that uses a few opensource projects..
+ * For help, please visit NativeLibs4Java , Rococoa, or JNA. + */ +public class VROverlayIntersectionMaskPrimitive_Data_t extends Union { + /** C type : IntersectionMaskRectangle_t */ + public IntersectionMaskRectangle_t m_Rectangle; + /** C type : IntersectionMaskCircle_t */ + public IntersectionMaskCircle_t m_Circle; + public VROverlayIntersectionMaskPrimitive_Data_t() { + super(); + } + /** @param m_Rectangle C type : IntersectionMaskRectangle_t */ + public VROverlayIntersectionMaskPrimitive_Data_t(IntersectionMaskRectangle_t m_Rectangle) { + super(); + this.m_Rectangle = m_Rectangle; + setType(IntersectionMaskRectangle_t.class); + } + /** @param m_Circle C type : IntersectionMaskCircle_t */ + public VROverlayIntersectionMaskPrimitive_Data_t(IntersectionMaskCircle_t m_Circle) { + super(); + this.m_Circle = m_Circle; + setType(IntersectionMaskCircle_t.class); + } + public VROverlayIntersectionMaskPrimitive_Data_t(Pointer peer) { + super(peer); + } + public static class ByReference extends VROverlayIntersectionMaskPrimitive_Data_t implements com.sun.jna.Structure.ByReference { + + }; + public static class ByValue extends VROverlayIntersectionMaskPrimitive_Data_t implements com.sun.jna.Structure.ByValue { + + }; +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VROverlayIntersectionMaskPrimitive_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VROverlayIntersectionMaskPrimitive_t.java new file mode 100644 index 000000000..46ac5b9f9 --- /dev/null +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VROverlayIntersectionMaskPrimitive_t.java @@ -0,0 +1,45 @@ +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1294
+ * This file was autogenerated by JNAerator,
+ * a tool written by Olivier Chafik that uses a few opensource projects..
+ * For help, please visit NativeLibs4Java , Rococoa, or JNA. + */ +public class VROverlayIntersectionMaskPrimitive_t extends Structure { + /** + * @see EVROverlayIntersectionMaskPrimitiveType
+ * C type : EVROverlayIntersectionMaskPrimitiveType + */ + public int m_nPrimitiveType; + /** C type : VROverlayIntersectionMaskPrimitive_Data_t */ + public VROverlayIntersectionMaskPrimitive_Data_t m_Primitive; + public VROverlayIntersectionMaskPrimitive_t() { + super(); + } + protected List getFieldOrder() { + return Arrays.asList("m_nPrimitiveType", "m_Primitive"); + } + /** + * @param m_nPrimitiveType @see EVROverlayIntersectionMaskPrimitiveType
+ * C type : EVROverlayIntersectionMaskPrimitiveType
+ * @param m_Primitive C type : VROverlayIntersectionMaskPrimitive_Data_t + */ + public VROverlayIntersectionMaskPrimitive_t(int m_nPrimitiveType, VROverlayIntersectionMaskPrimitive_Data_t m_Primitive) { + super(); + this.m_nPrimitiveType = m_nPrimitiveType; + this.m_Primitive = m_Primitive; + } + public VROverlayIntersectionMaskPrimitive_t(Pointer peer) { + super(peer); + } + public static class ByReference extends VROverlayIntersectionMaskPrimitive_t implements Structure.ByReference { + + }; + public static class ByValue extends VROverlayIntersectionMaskPrimitive_t implements Structure.ByValue { + + }; +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VROverlayIntersectionParams_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VROverlayIntersectionParams_t.java index c8d724149..80d8df4e2 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VROverlayIntersectionParams_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VROverlayIntersectionParams_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1183
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -13,7 +14,7 @@ public class VROverlayIntersectionParams_t extends Structure { public HmdVector3_t vSource; /** C type : HmdVector3_t */ public HmdVector3_t vDirection; - /** + /** * @see ETrackingUniverseOrigin
* C type : ETrackingUniverseOrigin */ @@ -24,7 +25,7 @@ public class VROverlayIntersectionParams_t extends Structure { protected List getFieldOrder() { return Arrays.asList("vSource", "vDirection", "eOrigin"); } - /** + /** * @param vSource C type : HmdVector3_t
* @param vDirection C type : HmdVector3_t
* @param eOrigin @see ETrackingUniverseOrigin
@@ -45,4 +46,4 @@ public class VROverlayIntersectionParams_t extends Structure { public static class ByValue extends VROverlayIntersectionParams_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VROverlayIntersectionResults_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VROverlayIntersectionResults_t.java index a91bd5cd8..6ea1fd749 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VROverlayIntersectionResults_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VROverlayIntersectionResults_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1189
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -22,7 +23,7 @@ public class VROverlayIntersectionResults_t extends Structure { protected List getFieldOrder() { return Arrays.asList("vPoint", "vNormal", "vUVs", "fDistance"); } - /** + /** * @param vPoint C type : HmdVector3_t
* @param vNormal C type : HmdVector3_t
* @param vUVs C type : HmdVector2_t @@ -43,4 +44,4 @@ public class VROverlayIntersectionResults_t extends Structure { public static class ByValue extends VROverlayIntersectionResults_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VRTextureBounds_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VRTextureBounds_t.java index 15f4eb621..0d03b1448 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VRTextureBounds_t.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VRTextureBounds_t.java @@ -1,9 +1,10 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:980
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -35,4 +36,4 @@ public class VRTextureBounds_t extends Structure { public static class ByValue extends VRTextureBounds_t implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VRVulkanTextureData_t.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VRVulkanTextureData_t.java new file mode 100644 index 000000000..413797414 --- /dev/null +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VRVulkanTextureData_t.java @@ -0,0 +1,58 @@ +package com.jme3.system.jopenvr; +import com.jme3.system.jopenvr.JOpenVRLibrary.VkDevice_T; +import com.jme3.system.jopenvr.JOpenVRLibrary.VkInstance_T; +import com.jme3.system.jopenvr.JOpenVRLibrary.VkPhysicalDevice_T; +import com.jme3.system.jopenvr.JOpenVRLibrary.VkQueue_T; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:996
+ * This file was autogenerated by JNAerator,
+ * a tool written by Olivier Chafik that uses a few opensource projects..
+ * For help, please visit NativeLibs4Java , Rococoa, or JNA. + */ +public class VRVulkanTextureData_t extends Structure { + public long m_nImage; + /** + * struct VkDevice_T *
+ * C type : VkDevice_T* + */ + public VkDevice_T m_pDevice; + /** + * struct VkPhysicalDevice_T *
+ * C type : VkPhysicalDevice_T* + */ + public VkPhysicalDevice_T m_pPhysicalDevice; + /** + * struct VkInstance_T *
+ * C type : VkInstance_T* + */ + public VkInstance_T m_pInstance; + /** + * struct VkQueue_T *
+ * C type : VkQueue_T* + */ + public VkQueue_T m_pQueue; + public int m_nQueueFamilyIndex; + public int m_nWidth; + public int m_nHeight; + public int m_nFormat; + public int m_nSampleCount; + public VRVulkanTextureData_t() { + super(); + } + protected List getFieldOrder() { + return Arrays.asList("m_nImage", "m_pDevice", "m_pPhysicalDevice", "m_pInstance", "m_pQueue", "m_nQueueFamilyIndex", "m_nWidth", "m_nHeight", "m_nFormat", "m_nSampleCount"); + } + public VRVulkanTextureData_t(Pointer peer) { + super(peer); + } + public static class ByReference extends VRVulkanTextureData_t implements Structure.ByReference { + + }; + public static class ByValue extends VRVulkanTextureData_t implements Structure.ByValue { + + }; +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRApplications_FnTable.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRApplications_FnTable.java index cc56a15a1..c1f456c73 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRApplications_FnTable.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRApplications_FnTable.java @@ -1,11 +1,12 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Callback; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import com.sun.jna.ptr.IntByReference; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Callback; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import com.sun.jna.ptr.IntByReference; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1483
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -25,9 +26,11 @@ public class VR_IVRApplications_FnTable extends Structure { public VR_IVRApplications_FnTable.GetApplicationKeyByProcessId_callback GetApplicationKeyByProcessId; /** C type : LaunchApplication_callback* */ public VR_IVRApplications_FnTable.LaunchApplication_callback LaunchApplication; - /** C type : LaunchDashboardOverlay_callback* */ + /** C type : LaunchTemplateApplication_callback* */ public VR_IVRApplications_FnTable.LaunchTemplateApplication_callback LaunchTemplateApplication; + /** C type : LaunchApplicationFromMimeType_callback* */ public VR_IVRApplications_FnTable.LaunchApplicationFromMimeType_callback LaunchApplicationFromMimeType; + /** C type : LaunchDashboardOverlay_callback* */ public VR_IVRApplications_FnTable.LaunchDashboardOverlay_callback LaunchDashboardOverlay; /** C type : CancelApplicationLaunch_callback* */ public VR_IVRApplications_FnTable.CancelApplicationLaunch_callback CancelApplicationLaunch; @@ -47,6 +50,7 @@ public class VR_IVRApplications_FnTable extends Structure { public VR_IVRApplications_FnTable.SetApplicationAutoLaunch_callback SetApplicationAutoLaunch; /** C type : GetApplicationAutoLaunch_callback* */ public VR_IVRApplications_FnTable.GetApplicationAutoLaunch_callback GetApplicationAutoLaunch; + /** C type : SetDefaultApplicationForMimeType_callback* */ public VR_IVRApplications_FnTable.SetDefaultApplicationForMimeType_callback SetDefaultApplicationForMimeType; /** C type : GetDefaultApplicationForMimeType_callback* */ public VR_IVRApplications_FnTable.GetDefaultApplicationForMimeType_callback GetDefaultApplicationForMimeType; @@ -66,102 +70,139 @@ public class VR_IVRApplications_FnTable extends Structure { public VR_IVRApplications_FnTable.GetApplicationsTransitionStateNameFromEnum_callback GetApplicationsTransitionStateNameFromEnum; /** C type : IsQuitUserPromptRequested_callback* */ public VR_IVRApplications_FnTable.IsQuitUserPromptRequested_callback IsQuitUserPromptRequested; + /** C type : LaunchInternalProcess_callback* */ public VR_IVRApplications_FnTable.LaunchInternalProcess_callback LaunchInternalProcess; + /** C type : GetCurrentSceneProcessId_callback* */ + public VR_IVRApplications_FnTable.GetCurrentSceneProcessId_callback GetCurrentSceneProcessId; + /** native declaration : headers\openvr_capi.h:1452 */ public interface AddApplicationManifest_callback extends Callback { int apply(Pointer pchApplicationManifestFullPath, byte bTemporary); }; + /** native declaration : headers\openvr_capi.h:1453 */ public interface RemoveApplicationManifest_callback extends Callback { int apply(Pointer pchApplicationManifestFullPath); }; + /** native declaration : headers\openvr_capi.h:1454 */ public interface IsApplicationInstalled_callback extends Callback { byte apply(Pointer pchAppKey); }; + /** native declaration : headers\openvr_capi.h:1455 */ public interface GetApplicationCount_callback extends Callback { int apply(); }; + /** native declaration : headers\openvr_capi.h:1456 */ public interface GetApplicationKeyByIndex_callback extends Callback { int apply(int unApplicationIndex, Pointer pchAppKeyBuffer, int unAppKeyBufferLen); }; + /** native declaration : headers\openvr_capi.h:1457 */ public interface GetApplicationKeyByProcessId_callback extends Callback { int apply(int unProcessId, Pointer pchAppKeyBuffer, int unAppKeyBufferLen); }; + /** native declaration : headers\openvr_capi.h:1458 */ public interface LaunchApplication_callback extends Callback { int apply(Pointer pchAppKey); }; + /** native declaration : headers\openvr_capi.h:1459 */ public interface LaunchTemplateApplication_callback extends Callback { int apply(Pointer pchTemplateAppKey, Pointer pchNewAppKey, AppOverrideKeys_t pKeys, int unKeys); }; + /** native declaration : headers\openvr_capi.h:1460 */ public interface LaunchApplicationFromMimeType_callback extends Callback { int apply(Pointer pchMimeType, Pointer pchArgs); }; + /** native declaration : headers\openvr_capi.h:1461 */ public interface LaunchDashboardOverlay_callback extends Callback { int apply(Pointer pchAppKey); }; + /** native declaration : headers\openvr_capi.h:1462 */ public interface CancelApplicationLaunch_callback extends Callback { byte apply(Pointer pchAppKey); }; + /** native declaration : headers\openvr_capi.h:1463 */ public interface IdentifyApplication_callback extends Callback { int apply(int unProcessId, Pointer pchAppKey); }; + /** native declaration : headers\openvr_capi.h:1464 */ public interface GetApplicationProcessId_callback extends Callback { int apply(Pointer pchAppKey); }; + /** native declaration : headers\openvr_capi.h:1465 */ public interface GetApplicationsErrorNameFromEnum_callback extends Callback { Pointer apply(int error); }; + /** native declaration : headers\openvr_capi.h:1466 */ public interface GetApplicationPropertyString_callback extends Callback { int apply(Pointer pchAppKey, int eProperty, Pointer pchPropertyValueBuffer, int unPropertyValueBufferLen, IntByReference peError); }; + /** native declaration : headers\openvr_capi.h:1467 */ public interface GetApplicationPropertyBool_callback extends Callback { byte apply(Pointer pchAppKey, int eProperty, IntByReference peError); }; + /** native declaration : headers\openvr_capi.h:1468 */ public interface GetApplicationPropertyUint64_callback extends Callback { long apply(Pointer pchAppKey, int eProperty, IntByReference peError); }; + /** native declaration : headers\openvr_capi.h:1469 */ public interface SetApplicationAutoLaunch_callback extends Callback { int apply(Pointer pchAppKey, byte bAutoLaunch); }; + /** native declaration : headers\openvr_capi.h:1470 */ public interface GetApplicationAutoLaunch_callback extends Callback { byte apply(Pointer pchAppKey); }; + /** native declaration : headers\openvr_capi.h:1471 */ public interface SetDefaultApplicationForMimeType_callback extends Callback { int apply(Pointer pchAppKey, Pointer pchMimeType); }; + /** native declaration : headers\openvr_capi.h:1472 */ public interface GetDefaultApplicationForMimeType_callback extends Callback { byte apply(Pointer pchMimeType, Pointer pchAppKeyBuffer, int unAppKeyBufferLen); }; + /** native declaration : headers\openvr_capi.h:1473 */ public interface GetApplicationSupportedMimeTypes_callback extends Callback { byte apply(Pointer pchAppKey, Pointer pchMimeTypesBuffer, int unMimeTypesBuffer); }; + /** native declaration : headers\openvr_capi.h:1474 */ public interface GetApplicationsThatSupportMimeType_callback extends Callback { int apply(Pointer pchMimeType, Pointer pchAppKeysThatSupportBuffer, int unAppKeysThatSupportBuffer); }; + /** native declaration : headers\openvr_capi.h:1475 */ public interface GetApplicationLaunchArguments_callback extends Callback { int apply(int unHandle, Pointer pchArgs, int unArgs); }; + /** native declaration : headers\openvr_capi.h:1476 */ public interface GetStartingApplication_callback extends Callback { int apply(Pointer pchAppKeyBuffer, int unAppKeyBufferLen); }; + /** native declaration : headers\openvr_capi.h:1477 */ public interface GetTransitionState_callback extends Callback { int apply(); }; + /** native declaration : headers\openvr_capi.h:1478 */ public interface PerformApplicationPrelaunchCheck_callback extends Callback { int apply(Pointer pchAppKey); }; + /** native declaration : headers\openvr_capi.h:1479 */ public interface GetApplicationsTransitionStateNameFromEnum_callback extends Callback { Pointer apply(int state); }; + /** native declaration : headers\openvr_capi.h:1480 */ public interface IsQuitUserPromptRequested_callback extends Callback { byte apply(); }; + /** native declaration : headers\openvr_capi.h:1481 */ public interface LaunchInternalProcess_callback extends Callback { int apply(Pointer pchBinaryPath, Pointer pchArguments, Pointer pchWorkingDirectory); }; + /** native declaration : headers\openvr_capi.h:1482 */ + public interface GetCurrentSceneProcessId_callback extends Callback { + int apply(); + }; public VR_IVRApplications_FnTable() { super(); } protected List getFieldOrder() { - return Arrays.asList("AddApplicationManifest", "RemoveApplicationManifest", "IsApplicationInstalled", "GetApplicationCount", "GetApplicationKeyByIndex", "GetApplicationKeyByProcessId", "LaunchApplication", "LaunchTemplateApplication", "LaunchApplicationFromMimeType", "LaunchDashboardOverlay", "CancelApplicationLaunch", "IdentifyApplication", "GetApplicationProcessId", "GetApplicationsErrorNameFromEnum", "GetApplicationPropertyString", "GetApplicationPropertyBool", "GetApplicationPropertyUint64", "SetApplicationAutoLaunch", "GetApplicationAutoLaunch", "SetDefaultApplicationForMimeType", "GetDefaultApplicationForMimeType", "GetApplicationSupportedMimeTypes", "GetApplicationsThatSupportMimeType", "GetApplicationLaunchArguments", "GetStartingApplication", "GetTransitionState", "PerformApplicationPrelaunchCheck", "GetApplicationsTransitionStateNameFromEnum", "IsQuitUserPromptRequested", "LaunchInternalProcess"); + return Arrays.asList("AddApplicationManifest", "RemoveApplicationManifest", "IsApplicationInstalled", "GetApplicationCount", "GetApplicationKeyByIndex", "GetApplicationKeyByProcessId", "LaunchApplication", "LaunchTemplateApplication", "LaunchApplicationFromMimeType", "LaunchDashboardOverlay", "CancelApplicationLaunch", "IdentifyApplication", "GetApplicationProcessId", "GetApplicationsErrorNameFromEnum", "GetApplicationPropertyString", "GetApplicationPropertyBool", "GetApplicationPropertyUint64", "SetApplicationAutoLaunch", "GetApplicationAutoLaunch", "SetDefaultApplicationForMimeType", "GetDefaultApplicationForMimeType", "GetApplicationSupportedMimeTypes", "GetApplicationsThatSupportMimeType", "GetApplicationLaunchArguments", "GetStartingApplication", "GetTransitionState", "PerformApplicationPrelaunchCheck", "GetApplicationsTransitionStateNameFromEnum", "IsQuitUserPromptRequested", "LaunchInternalProcess", "GetCurrentSceneProcessId"); } public VR_IVRApplications_FnTable(Pointer peer) { super(peer); @@ -172,4 +213,4 @@ public class VR_IVRApplications_FnTable extends Structure { public static class ByValue extends VR_IVRApplications_FnTable implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRChaperoneSetup_FnTable.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRChaperoneSetup_FnTable.java index 7df0628bf..cfbba6893 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRChaperoneSetup_FnTable.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRChaperoneSetup_FnTable.java @@ -1,12 +1,13 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Callback; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import com.sun.jna.ptr.FloatByReference; -import com.sun.jna.ptr.IntByReference; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Callback; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import com.sun.jna.ptr.FloatByReference; +import com.sun.jna.ptr.IntByReference; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1543
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -48,66 +49,87 @@ public class VR_IVRChaperoneSetup_FnTable extends Structure { public VR_IVRChaperoneSetup_FnTable.SetWorkingPhysicalBoundsInfo_callback SetWorkingPhysicalBoundsInfo; /** C type : GetLivePhysicalBoundsInfo_callback* */ public VR_IVRChaperoneSetup_FnTable.GetLivePhysicalBoundsInfo_callback GetLivePhysicalBoundsInfo; + /** C type : ExportLiveToBuffer_callback* */ public VR_IVRChaperoneSetup_FnTable.ExportLiveToBuffer_callback ExportLiveToBuffer; /** C type : ImportFromBufferToWorking_callback* */ public VR_IVRChaperoneSetup_FnTable.ImportFromBufferToWorking_callback ImportFromBufferToWorking; + /** native declaration : headers\openvr_capi.h:1523 */ public interface CommitWorkingCopy_callback extends Callback { byte apply(int configFile); }; + /** native declaration : headers\openvr_capi.h:1524 */ public interface RevertWorkingCopy_callback extends Callback { void apply(); }; + /** native declaration : headers\openvr_capi.h:1525 */ public interface GetWorkingPlayAreaSize_callback extends Callback { byte apply(FloatByReference pSizeX, FloatByReference pSizeZ); }; + /** native declaration : headers\openvr_capi.h:1526 */ public interface GetWorkingPlayAreaRect_callback extends Callback { byte apply(HmdQuad_t rect); }; + /** native declaration : headers\openvr_capi.h:1527 */ public interface GetWorkingCollisionBoundsInfo_callback extends Callback { byte apply(HmdQuad_t pQuadsBuffer, IntByReference punQuadsCount); }; + /** native declaration : headers\openvr_capi.h:1528 */ public interface GetLiveCollisionBoundsInfo_callback extends Callback { byte apply(HmdQuad_t pQuadsBuffer, IntByReference punQuadsCount); }; + /** native declaration : headers\openvr_capi.h:1529 */ public interface GetWorkingSeatedZeroPoseToRawTrackingPose_callback extends Callback { byte apply(HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose); }; + /** native declaration : headers\openvr_capi.h:1530 */ public interface GetWorkingStandingZeroPoseToRawTrackingPose_callback extends Callback { byte apply(HmdMatrix34_t pmatStandingZeroPoseToRawTrackingPose); }; + /** native declaration : headers\openvr_capi.h:1531 */ public interface SetWorkingPlayAreaSize_callback extends Callback { void apply(float sizeX, float sizeZ); }; + /** native declaration : headers\openvr_capi.h:1532 */ public interface SetWorkingCollisionBoundsInfo_callback extends Callback { void apply(HmdQuad_t pQuadsBuffer, int unQuadsCount); }; + /** native declaration : headers\openvr_capi.h:1533 */ public interface SetWorkingSeatedZeroPoseToRawTrackingPose_callback extends Callback { void apply(HmdMatrix34_t pMatSeatedZeroPoseToRawTrackingPose); }; + /** native declaration : headers\openvr_capi.h:1534 */ public interface SetWorkingStandingZeroPoseToRawTrackingPose_callback extends Callback { void apply(HmdMatrix34_t pMatStandingZeroPoseToRawTrackingPose); }; + /** native declaration : headers\openvr_capi.h:1535 */ public interface ReloadFromDisk_callback extends Callback { void apply(int configFile); }; + /** native declaration : headers\openvr_capi.h:1536 */ public interface GetLiveSeatedZeroPoseToRawTrackingPose_callback extends Callback { byte apply(HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose); }; + /** native declaration : headers\openvr_capi.h:1537 */ public interface SetWorkingCollisionBoundsTagsInfo_callback extends Callback { void apply(Pointer pTagsBuffer, int unTagCount); }; + /** native declaration : headers\openvr_capi.h:1538 */ public interface GetLiveCollisionBoundsTagsInfo_callback extends Callback { byte apply(Pointer pTagsBuffer, IntByReference punTagCount); }; + /** native declaration : headers\openvr_capi.h:1539 */ public interface SetWorkingPhysicalBoundsInfo_callback extends Callback { byte apply(HmdQuad_t pQuadsBuffer, int unQuadsCount); }; + /** native declaration : headers\openvr_capi.h:1540 */ public interface GetLivePhysicalBoundsInfo_callback extends Callback { byte apply(HmdQuad_t pQuadsBuffer, IntByReference punQuadsCount); }; + /** native declaration : headers\openvr_capi.h:1541 */ public interface ExportLiveToBuffer_callback extends Callback { byte apply(Pointer pBuffer, IntByReference pnBufferLength); }; + /** native declaration : headers\openvr_capi.h:1542 */ public interface ImportFromBufferToWorking_callback extends Callback { byte apply(Pointer pBuffer, int nImportFlags); }; @@ -126,4 +148,4 @@ public class VR_IVRChaperoneSetup_FnTable extends Structure { public static class ByValue extends VR_IVRChaperoneSetup_FnTable implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRChaperone_FnTable.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRChaperone_FnTable.java index fce17b3ca..0d827d2cf 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRChaperone_FnTable.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRChaperone_FnTable.java @@ -1,11 +1,12 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Callback; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.nio.FloatBuffer; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Callback; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import com.sun.jna.ptr.FloatByReference; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1501
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -27,27 +28,35 @@ public class VR_IVRChaperone_FnTable extends Structure { public VR_IVRChaperone_FnTable.AreBoundsVisible_callback AreBoundsVisible; /** C type : ForceBoundsVisible_callback* */ public VR_IVRChaperone_FnTable.ForceBoundsVisible_callback ForceBoundsVisible; + /** native declaration : headers\openvr_capi.h:1493 */ public interface GetCalibrationState_callback extends Callback { int apply(); }; + /** native declaration : headers\openvr_capi.h:1494 */ public interface GetPlayAreaSize_callback extends Callback { - byte apply(FloatBuffer pSizeX, FloatBuffer pSizeZ); + byte apply(FloatByReference pSizeX, FloatByReference pSizeZ); }; + /** native declaration : headers\openvr_capi.h:1495 */ public interface GetPlayAreaRect_callback extends Callback { byte apply(HmdQuad_t rect); }; + /** native declaration : headers\openvr_capi.h:1496 */ public interface ReloadInfo_callback extends Callback { void apply(); }; + /** native declaration : headers\openvr_capi.h:1497 */ public interface SetSceneColor_callback extends Callback { void apply(HmdColor_t.ByValue color); }; + /** native declaration : headers\openvr_capi.h:1498 */ public interface GetBoundsColor_callback extends Callback { void apply(HmdColor_t pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, HmdColor_t pOutputCameraColor); }; + /** native declaration : headers\openvr_capi.h:1499 */ public interface AreBoundsVisible_callback extends Callback { byte apply(); }; + /** native declaration : headers\openvr_capi.h:1500 */ public interface ForceBoundsVisible_callback extends Callback { void apply(byte bForce); }; @@ -57,7 +66,7 @@ public class VR_IVRChaperone_FnTable extends Structure { protected List getFieldOrder() { return Arrays.asList("GetCalibrationState", "GetPlayAreaSize", "GetPlayAreaRect", "ReloadInfo", "SetSceneColor", "GetBoundsColor", "AreBoundsVisible", "ForceBoundsVisible"); } - /** + /** * @param GetCalibrationState C type : GetCalibrationState_callback*
* @param GetPlayAreaSize C type : GetPlayAreaSize_callback*
* @param GetPlayAreaRect C type : GetPlayAreaRect_callback*
@@ -87,4 +96,4 @@ public class VR_IVRChaperone_FnTable extends Structure { public static class ByValue extends VR_IVRChaperone_FnTable implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRCompositor_FnTable.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRCompositor_FnTable.java index 3832513a9..0d1b143f6 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRCompositor_FnTable.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRCompositor_FnTable.java @@ -1,12 +1,14 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Callback; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import com.sun.jna.ptr.IntByReference; -import com.sun.jna.ptr.PointerByReference; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.jme3.system.jopenvr.JOpenVRLibrary.VkPhysicalDevice_T; +import com.sun.jna.Callback; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import com.sun.jna.ptr.IntByReference; +import com.sun.jna.ptr.PointerByReference; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1627
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -30,14 +32,20 @@ public class VR_IVRCompositor_FnTable extends Structure { public VR_IVRCompositor_FnTable.PostPresentHandoff_callback PostPresentHandoff; /** C type : GetFrameTiming_callback* */ public VR_IVRCompositor_FnTable.GetFrameTiming_callback GetFrameTiming; + /** C type : GetFrameTimings_callback* */ + public VR_IVRCompositor_FnTable.GetFrameTimings_callback GetFrameTimings; /** C type : GetFrameTimeRemaining_callback* */ public VR_IVRCompositor_FnTable.GetFrameTimeRemaining_callback GetFrameTimeRemaining; - /** C type : FadeToColor_callback* */ + /** C type : GetCumulativeStats_callback* */ public VR_IVRCompositor_FnTable.GetCumulativeStats_callback GetCumulativeStats; - /** C type wrapping */ + /** C type : FadeToColor_callback* */ public VR_IVRCompositor_FnTable.FadeToColor_callback FadeToColor; + /** C type : GetCurrentFadeColor_callback* */ + public VR_IVRCompositor_FnTable.GetCurrentFadeColor_callback GetCurrentFadeColor; /** C type : FadeGrid_callback* */ public VR_IVRCompositor_FnTable.FadeGrid_callback FadeGrid; + /** C type : GetCurrentGridAlpha_callback* */ + public VR_IVRCompositor_FnTable.GetCurrentGridAlpha_callback GetCurrentGridAlpha; /** C type : SetSkyboxOverride_callback* */ public VR_IVRCompositor_FnTable.SetSkyboxOverride_callback SetSkyboxOverride; /** C type : ClearSkyboxOverride_callback* */ @@ -68,12 +76,14 @@ public class VR_IVRCompositor_FnTable extends Structure { public VR_IVRCompositor_FnTable.ShouldAppRenderWithLowResources_callback ShouldAppRenderWithLowResources; /** C type : ForceInterleavedReprojectionOn_callback* */ public VR_IVRCompositor_FnTable.ForceInterleavedReprojectionOn_callback ForceInterleavedReprojectionOn; - /** C type wrapping */ + /** C type : ForceReconnectProcess_callback* */ public VR_IVRCompositor_FnTable.ForceReconnectProcess_callback ForceReconnectProcess; /** C type : SuspendRendering_callback* */ public VR_IVRCompositor_FnTable.SuspendRendering_callback SuspendRendering; /** C type : GetMirrorTextureD3D11_callback* */ public VR_IVRCompositor_FnTable.GetMirrorTextureD3D11_callback GetMirrorTextureD3D11; + /** C type : ReleaseMirrorTextureD3D11_callback* */ + public VR_IVRCompositor_FnTable.ReleaseMirrorTextureD3D11_callback ReleaseMirrorTextureD3D11; /** C type : GetMirrorTextureGL_callback* */ public VR_IVRCompositor_FnTable.GetMirrorTextureGL_callback GetMirrorTextureGL; /** C type : ReleaseSharedGLTexture_callback* */ @@ -82,132 +92,179 @@ public class VR_IVRCompositor_FnTable extends Structure { public VR_IVRCompositor_FnTable.LockGLSharedTextureForAccess_callback LockGLSharedTextureForAccess; /** C type : UnlockGLSharedTextureForAccess_callback* */ public VR_IVRCompositor_FnTable.UnlockGLSharedTextureForAccess_callback UnlockGLSharedTextureForAccess; - - /** C type wrapping */ + /** C type : GetVulkanInstanceExtensionsRequired_callback* */ + public VR_IVRCompositor_FnTable.GetVulkanInstanceExtensionsRequired_callback GetVulkanInstanceExtensionsRequired; + /** C type : GetVulkanDeviceExtensionsRequired_callback* */ + public VR_IVRCompositor_FnTable.GetVulkanDeviceExtensionsRequired_callback GetVulkanDeviceExtensionsRequired; + /** native declaration : headers\openvr_capi.h:1586 */ public interface SetTrackingSpace_callback extends Callback { - - /** C type wrapping */ void apply(int eOrigin); }; - - /** C type wrapping */ + /** native declaration : headers\openvr_capi.h:1587 */ public interface GetTrackingSpace_callback extends Callback { - - /** C type wrapping */ int apply(); }; - - /** C type wrapping */ + /** native declaration : headers\openvr_capi.h:1588 */ public interface WaitGetPoses_callback extends Callback { - /** C type wrapping - * @param pRenderPoseArray - * @param unRenderPoseArrayCount - * @param pGamePoseArray - * @param unGamePoseArrayCount - * @return */ int apply(TrackedDevicePose_t pRenderPoseArray, int unRenderPoseArrayCount, TrackedDevicePose_t pGamePoseArray, int unGamePoseArrayCount); }; + /** native declaration : headers\openvr_capi.h:1589 */ public interface GetLastPoses_callback extends Callback { int apply(TrackedDevicePose_t pRenderPoseArray, int unRenderPoseArrayCount, TrackedDevicePose_t pGamePoseArray, int unGamePoseArrayCount); }; + /** native declaration : headers\openvr_capi.h:1590 */ public interface GetLastPoseForTrackedDeviceIndex_callback extends Callback { int apply(int unDeviceIndex, TrackedDevicePose_t pOutputPose, TrackedDevicePose_t pOutputGamePose); }; + /** native declaration : headers\openvr_capi.h:1591 */ public interface Submit_callback extends Callback { int apply(int eEye, Texture_t pTexture, VRTextureBounds_t pBounds, int nSubmitFlags); }; + /** native declaration : headers\openvr_capi.h:1592 */ public interface ClearLastSubmittedFrame_callback extends Callback { void apply(); }; + /** native declaration : headers\openvr_capi.h:1593 */ public interface PostPresentHandoff_callback extends Callback { void apply(); }; + /** native declaration : headers\openvr_capi.h:1594 */ public interface GetFrameTiming_callback extends Callback { byte apply(Compositor_FrameTiming pTiming, int unFramesAgo); }; + /** native declaration : headers\openvr_capi.h:1595 */ + public interface GetFrameTimings_callback extends Callback { + int apply(Compositor_FrameTiming pTiming, int nFrames); + }; + /** native declaration : headers\openvr_capi.h:1596 */ public interface GetFrameTimeRemaining_callback extends Callback { float apply(); }; + /** native declaration : headers\openvr_capi.h:1597 */ public interface GetCumulativeStats_callback extends Callback { void apply(Compositor_CumulativeStats pStats, int nStatsSizeInBytes); }; + /** native declaration : headers\openvr_capi.h:1598 */ public interface FadeToColor_callback extends Callback { void apply(float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, byte bBackground); }; + /** native declaration : headers\openvr_capi.h:1599 */ + public interface GetCurrentFadeColor_callback extends Callback { + com.jme3.system.jopenvr.HmdColor_t.ByValue apply(byte bBackground); + }; + /** native declaration : headers\openvr_capi.h:1600 */ public interface FadeGrid_callback extends Callback { void apply(float fSeconds, byte bFadeIn); }; + /** native declaration : headers\openvr_capi.h:1601 */ + public interface GetCurrentGridAlpha_callback extends Callback { + float apply(); + }; + /** native declaration : headers\openvr_capi.h:1602 */ public interface SetSkyboxOverride_callback extends Callback { int apply(Texture_t pTextures, int unTextureCount); }; + /** native declaration : headers\openvr_capi.h:1603 */ public interface ClearSkyboxOverride_callback extends Callback { void apply(); }; + /** native declaration : headers\openvr_capi.h:1604 */ public interface CompositorBringToFront_callback extends Callback { void apply(); }; + /** native declaration : headers\openvr_capi.h:1605 */ public interface CompositorGoToBack_callback extends Callback { void apply(); }; + /** native declaration : headers\openvr_capi.h:1606 */ public interface CompositorQuit_callback extends Callback { void apply(); }; + /** native declaration : headers\openvr_capi.h:1607 */ public interface IsFullscreen_callback extends Callback { byte apply(); }; + /** native declaration : headers\openvr_capi.h:1608 */ public interface GetCurrentSceneFocusProcess_callback extends Callback { int apply(); }; + /** native declaration : headers\openvr_capi.h:1609 */ public interface GetLastFrameRenderer_callback extends Callback { int apply(); }; + /** native declaration : headers\openvr_capi.h:1610 */ public interface CanRenderScene_callback extends Callback { byte apply(); }; + /** native declaration : headers\openvr_capi.h:1611 */ public interface ShowMirrorWindow_callback extends Callback { void apply(); }; + /** native declaration : headers\openvr_capi.h:1612 */ public interface HideMirrorWindow_callback extends Callback { void apply(); }; + /** native declaration : headers\openvr_capi.h:1613 */ public interface IsMirrorWindowVisible_callback extends Callback { byte apply(); }; + /** native declaration : headers\openvr_capi.h:1614 */ public interface CompositorDumpImages_callback extends Callback { void apply(); }; + /** native declaration : headers\openvr_capi.h:1615 */ public interface ShouldAppRenderWithLowResources_callback extends Callback { byte apply(); }; + /** native declaration : headers\openvr_capi.h:1616 */ public interface ForceInterleavedReprojectionOn_callback extends Callback { void apply(byte bOverride); }; + /** native declaration : headers\openvr_capi.h:1617 */ public interface ForceReconnectProcess_callback extends Callback { void apply(); }; + /** native declaration : headers\openvr_capi.h:1618 */ public interface SuspendRendering_callback extends Callback { void apply(byte bSuspend); }; + /** native declaration : headers\openvr_capi.h:1619 */ public interface GetMirrorTextureD3D11_callback extends Callback { int apply(int eEye, Pointer pD3D11DeviceOrResource, PointerByReference ppD3D11ShaderResourceView); }; + /** native declaration : headers\openvr_capi.h:1620 */ + public interface ReleaseMirrorTextureD3D11_callback extends Callback { + void apply(Pointer pD3D11ShaderResourceView); + }; + /** native declaration : headers\openvr_capi.h:1621 */ public interface GetMirrorTextureGL_callback extends Callback { int apply(int eEye, IntByReference pglTextureId, PointerByReference pglSharedTextureHandle); }; + /** native declaration : headers\openvr_capi.h:1622 */ public interface ReleaseSharedGLTexture_callback extends Callback { byte apply(int glTextureId, Pointer glSharedTextureHandle); }; + /** native declaration : headers\openvr_capi.h:1623 */ public interface LockGLSharedTextureForAccess_callback extends Callback { void apply(Pointer glSharedTextureHandle); }; + /** native declaration : headers\openvr_capi.h:1624 */ public interface UnlockGLSharedTextureForAccess_callback extends Callback { void apply(Pointer glSharedTextureHandle); }; + /** native declaration : headers\openvr_capi.h:1625 */ + public interface GetVulkanInstanceExtensionsRequired_callback extends Callback { + int apply(Pointer pchValue, int unBufferSize); + }; + /** native declaration : headers\openvr_capi.h:1626 */ + public interface GetVulkanDeviceExtensionsRequired_callback extends Callback { + int apply(VkPhysicalDevice_T pPhysicalDevice, Pointer pchValue, int unBufferSize); + }; public VR_IVRCompositor_FnTable() { super(); } protected List getFieldOrder() { - return Arrays.asList("SetTrackingSpace", "GetTrackingSpace", "WaitGetPoses", "GetLastPoses", "GetLastPoseForTrackedDeviceIndex", "Submit", "ClearLastSubmittedFrame", "PostPresentHandoff", "GetFrameTiming", "GetFrameTimeRemaining", "GetCumulativeStats", "FadeToColor", "FadeGrid", "SetSkyboxOverride", "ClearSkyboxOverride", "CompositorBringToFront", "CompositorGoToBack", "CompositorQuit", "IsFullscreen", "GetCurrentSceneFocusProcess", "GetLastFrameRenderer", "CanRenderScene", "ShowMirrorWindow", "HideMirrorWindow", "IsMirrorWindowVisible", "CompositorDumpImages", "ShouldAppRenderWithLowResources", "ForceInterleavedReprojectionOn", "ForceReconnectProcess", "SuspendRendering", "GetMirrorTextureD3D11", "GetMirrorTextureGL", "ReleaseSharedGLTexture", "LockGLSharedTextureForAccess", "UnlockGLSharedTextureForAccess"); + return Arrays.asList("SetTrackingSpace", "GetTrackingSpace", "WaitGetPoses", "GetLastPoses", "GetLastPoseForTrackedDeviceIndex", "Submit", "ClearLastSubmittedFrame", "PostPresentHandoff", "GetFrameTiming", "GetFrameTimings", "GetFrameTimeRemaining", "GetCumulativeStats", "FadeToColor", "GetCurrentFadeColor", "FadeGrid", "GetCurrentGridAlpha", "SetSkyboxOverride", "ClearSkyboxOverride", "CompositorBringToFront", "CompositorGoToBack", "CompositorQuit", "IsFullscreen", "GetCurrentSceneFocusProcess", "GetLastFrameRenderer", "CanRenderScene", "ShowMirrorWindow", "HideMirrorWindow", "IsMirrorWindowVisible", "CompositorDumpImages", "ShouldAppRenderWithLowResources", "ForceInterleavedReprojectionOn", "ForceReconnectProcess", "SuspendRendering", "GetMirrorTextureD3D11", "ReleaseMirrorTextureD3D11", "GetMirrorTextureGL", "ReleaseSharedGLTexture", "LockGLSharedTextureForAccess", "UnlockGLSharedTextureForAccess", "GetVulkanInstanceExtensionsRequired", "GetVulkanDeviceExtensionsRequired"); } public VR_IVRCompositor_FnTable(Pointer peer) { super(peer); @@ -218,4 +275,4 @@ public class VR_IVRCompositor_FnTable extends Structure { public static class ByValue extends VR_IVRCompositor_FnTable implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRExtendedDisplay_FnTable.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRExtendedDisplay_FnTable.java index 80b8c5eb1..027c6dc81 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRExtendedDisplay_FnTable.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRExtendedDisplay_FnTable.java @@ -1,11 +1,12 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Callback; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import com.sun.jna.ptr.IntByReference; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Callback; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import com.sun.jna.ptr.IntByReference; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1393
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -17,12 +18,15 @@ public class VR_IVRExtendedDisplay_FnTable extends Structure { public VR_IVRExtendedDisplay_FnTable.GetEyeOutputViewport_callback GetEyeOutputViewport; /** C type : GetDXGIOutputInfo_callback* */ public VR_IVRExtendedDisplay_FnTable.GetDXGIOutputInfo_callback GetDXGIOutputInfo; + /** native declaration : headers\openvr_capi.h:1390 */ public interface GetWindowBounds_callback extends Callback { void apply(IntByReference pnX, IntByReference pnY, IntByReference pnWidth, IntByReference pnHeight); }; + /** native declaration : headers\openvr_capi.h:1391 */ public interface GetEyeOutputViewport_callback extends Callback { void apply(int eEye, IntByReference pnX, IntByReference pnY, IntByReference pnWidth, IntByReference pnHeight); }; + /** native declaration : headers\openvr_capi.h:1392 */ public interface GetDXGIOutputInfo_callback extends Callback { void apply(IntByReference pnAdapterIndex, IntByReference pnAdapterOutputIndex); }; @@ -32,7 +36,7 @@ public class VR_IVRExtendedDisplay_FnTable extends Structure { protected List getFieldOrder() { return Arrays.asList("GetWindowBounds", "GetEyeOutputViewport", "GetDXGIOutputInfo"); } - /** + /** * @param GetWindowBounds C type : GetWindowBounds_callback*
* @param GetEyeOutputViewport C type : GetEyeOutputViewport_callback*
* @param GetDXGIOutputInfo C type : GetDXGIOutputInfo_callback* @@ -52,4 +56,4 @@ public class VR_IVRExtendedDisplay_FnTable extends Structure { public static class ByValue extends VR_IVRExtendedDisplay_FnTable implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRNotifications_FnTable.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRNotifications_FnTable.java index 9bcd761d2..d04b40327 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRNotifications_FnTable.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRNotifications_FnTable.java @@ -1,11 +1,12 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Callback; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import com.sun.jna.ptr.IntByReference; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Callback; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import com.sun.jna.ptr.IntByReference; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1823
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -15,9 +16,11 @@ public class VR_IVRNotifications_FnTable extends Structure { public VR_IVRNotifications_FnTable.CreateNotification_callback CreateNotification; /** C type : RemoveNotification_callback* */ public VR_IVRNotifications_FnTable.RemoveNotification_callback RemoveNotification; + /** native declaration : headers\openvr_capi.h:1821 */ public interface CreateNotification_callback extends Callback { int apply(long ulOverlayHandle, long ulUserValue, int type, Pointer pchText, int style, NotificationBitmap_t pImage, IntByReference pNotificationId); }; + /** native declaration : headers\openvr_capi.h:1822 */ public interface RemoveNotification_callback extends Callback { int apply(int notificationId); }; @@ -27,7 +30,7 @@ public class VR_IVRNotifications_FnTable extends Structure { protected List getFieldOrder() { return Arrays.asList("CreateNotification", "RemoveNotification"); } - /** + /** * @param CreateNotification C type : CreateNotification_callback*
* @param RemoveNotification C type : RemoveNotification_callback* */ @@ -45,4 +48,4 @@ public class VR_IVRNotifications_FnTable extends Structure { public static class ByValue extends VR_IVRNotifications_FnTable implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVROverlay_FnTable.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVROverlay_FnTable.java index c1c62b171..f7fe2d13d 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVROverlay_FnTable.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVROverlay_FnTable.java @@ -1,14 +1,15 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Callback; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import com.sun.jna.ptr.FloatByReference; -import com.sun.jna.ptr.IntByReference; -import com.sun.jna.ptr.LongByReference; -import com.sun.jna.ptr.PointerByReference; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Callback; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import com.sun.jna.ptr.FloatByReference; +import com.sun.jna.ptr.IntByReference; +import com.sun.jna.ptr.LongByReference; +import com.sun.jna.ptr.PointerByReference; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1779
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -32,10 +33,11 @@ public class VR_IVROverlay_FnTable extends Structure { public VR_IVROverlay_FnTable.GetOverlayImageData_callback GetOverlayImageData; /** C type : GetOverlayErrorNameFromEnum_callback* */ public VR_IVROverlay_FnTable.GetOverlayErrorNameFromEnum_callback GetOverlayErrorNameFromEnum; - /** C type : SetOverlayFlag_callback* */ + /** C type : SetOverlayRenderingPid_callback* */ public VR_IVROverlay_FnTable.SetOverlayRenderingPid_callback SetOverlayRenderingPid; /** C type : GetOverlayRenderingPid_callback* */ public VR_IVROverlay_FnTable.GetOverlayRenderingPid_callback GetOverlayRenderingPid; + /** C type : SetOverlayFlag_callback* */ public VR_IVROverlay_FnTable.SetOverlayFlag_callback SetOverlayFlag; /** C type : GetOverlayFlag_callback* */ public VR_IVROverlay_FnTable.GetOverlayFlag_callback GetOverlayFlag; @@ -47,7 +49,7 @@ public class VR_IVROverlay_FnTable extends Structure { public VR_IVROverlay_FnTable.SetOverlayAlpha_callback SetOverlayAlpha; /** C type : GetOverlayAlpha_callback* */ public VR_IVROverlay_FnTable.GetOverlayAlpha_callback GetOverlayAlpha; - /** C type : SetOverlayWidthInMeters_callback* */ + /** C type : SetOverlayTexelAspect_callback* */ public VR_IVROverlay_FnTable.SetOverlayTexelAspect_callback SetOverlayTexelAspect; /** C type : GetOverlayTexelAspect_callback* */ public VR_IVROverlay_FnTable.GetOverlayTexelAspect_callback GetOverlayTexelAspect; @@ -55,6 +57,7 @@ public class VR_IVROverlay_FnTable extends Structure { public VR_IVROverlay_FnTable.SetOverlaySortOrder_callback SetOverlaySortOrder; /** C type : GetOverlaySortOrder_callback* */ public VR_IVROverlay_FnTable.GetOverlaySortOrder_callback GetOverlaySortOrder; + /** C type : SetOverlayWidthInMeters_callback* */ public VR_IVROverlay_FnTable.SetOverlayWidthInMeters_callback SetOverlayWidthInMeters; /** C type : GetOverlayWidthInMeters_callback* */ public VR_IVROverlay_FnTable.GetOverlayWidthInMeters_callback GetOverlayWidthInMeters; @@ -124,6 +127,7 @@ public class VR_IVROverlay_FnTable extends Structure { public VR_IVROverlay_FnTable.SetOverlayRaw_callback SetOverlayRaw; /** C type : SetOverlayFromFile_callback* */ public VR_IVROverlay_FnTable.SetOverlayFromFile_callback SetOverlayFromFile; + /** C type : GetOverlayTexture_callback* */ public VR_IVROverlay_FnTable.GetOverlayTexture_callback GetOverlayTexture; /** C type : ReleaseNativeOverlayHandle_callback* */ public VR_IVROverlay_FnTable.ReleaseNativeOverlayHandle_callback ReleaseNativeOverlayHandle; @@ -155,227 +159,317 @@ public class VR_IVROverlay_FnTable extends Structure { public VR_IVROverlay_FnTable.SetKeyboardTransformAbsolute_callback SetKeyboardTransformAbsolute; /** C type : SetKeyboardPositionForOverlay_callback* */ public VR_IVROverlay_FnTable.SetKeyboardPositionForOverlay_callback SetKeyboardPositionForOverlay; + /** C type : SetOverlayIntersectionMask_callback* */ + public VR_IVROverlay_FnTable.SetOverlayIntersectionMask_callback SetOverlayIntersectionMask; + /** C type : GetOverlayFlags_callback* */ + public VR_IVROverlay_FnTable.GetOverlayFlags_callback GetOverlayFlags; + /** C type : ShowMessageOverlay_callback* */ + public VR_IVROverlay_FnTable.ShowMessageOverlay_callback ShowMessageOverlay; + /** native declaration : headers\openvr_capi.h:1704 */ public interface FindOverlay_callback extends Callback { int apply(Pointer pchOverlayKey, LongByReference pOverlayHandle); }; + /** native declaration : headers\openvr_capi.h:1705 */ public interface CreateOverlay_callback extends Callback { int apply(Pointer pchOverlayKey, Pointer pchOverlayFriendlyName, LongByReference pOverlayHandle); }; + /** native declaration : headers\openvr_capi.h:1706 */ public interface DestroyOverlay_callback extends Callback { int apply(long ulOverlayHandle); }; + /** native declaration : headers\openvr_capi.h:1707 */ public interface SetHighQualityOverlay_callback extends Callback { int apply(long ulOverlayHandle); }; + /** native declaration : headers\openvr_capi.h:1708 */ public interface GetHighQualityOverlay_callback extends Callback { long apply(); }; + /** native declaration : headers\openvr_capi.h:1709 */ public interface GetOverlayKey_callback extends Callback { int apply(long ulOverlayHandle, Pointer pchValue, int unBufferSize, IntByReference pError); }; + /** native declaration : headers\openvr_capi.h:1710 */ public interface GetOverlayName_callback extends Callback { int apply(long ulOverlayHandle, Pointer pchValue, int unBufferSize, IntByReference pError); }; + /** native declaration : headers\openvr_capi.h:1711 */ public interface GetOverlayImageData_callback extends Callback { int apply(long ulOverlayHandle, Pointer pvBuffer, int unBufferSize, IntByReference punWidth, IntByReference punHeight); }; + /** native declaration : headers\openvr_capi.h:1712 */ public interface GetOverlayErrorNameFromEnum_callback extends Callback { Pointer apply(int error); }; + /** native declaration : headers\openvr_capi.h:1713 */ public interface SetOverlayRenderingPid_callback extends Callback { int apply(long ulOverlayHandle, int unPID); }; + /** native declaration : headers\openvr_capi.h:1714 */ public interface GetOverlayRenderingPid_callback extends Callback { int apply(long ulOverlayHandle); }; + /** native declaration : headers\openvr_capi.h:1715 */ public interface SetOverlayFlag_callback extends Callback { int apply(long ulOverlayHandle, int eOverlayFlag, byte bEnabled); }; + /** native declaration : headers\openvr_capi.h:1716 */ public interface GetOverlayFlag_callback extends Callback { int apply(long ulOverlayHandle, int eOverlayFlag, Pointer pbEnabled); }; + /** native declaration : headers\openvr_capi.h:1717 */ public interface SetOverlayColor_callback extends Callback { int apply(long ulOverlayHandle, float fRed, float fGreen, float fBlue); }; + /** native declaration : headers\openvr_capi.h:1718 */ public interface GetOverlayColor_callback extends Callback { int apply(long ulOverlayHandle, FloatByReference pfRed, FloatByReference pfGreen, FloatByReference pfBlue); }; + /** native declaration : headers\openvr_capi.h:1719 */ public interface SetOverlayAlpha_callback extends Callback { int apply(long ulOverlayHandle, float fAlpha); }; + /** native declaration : headers\openvr_capi.h:1720 */ public interface GetOverlayAlpha_callback extends Callback { int apply(long ulOverlayHandle, FloatByReference pfAlpha); }; + /** native declaration : headers\openvr_capi.h:1721 */ public interface SetOverlayTexelAspect_callback extends Callback { int apply(long ulOverlayHandle, float fTexelAspect); }; + /** native declaration : headers\openvr_capi.h:1722 */ public interface GetOverlayTexelAspect_callback extends Callback { int apply(long ulOverlayHandle, FloatByReference pfTexelAspect); }; + /** native declaration : headers\openvr_capi.h:1723 */ public interface SetOverlaySortOrder_callback extends Callback { int apply(long ulOverlayHandle, int unSortOrder); }; + /** native declaration : headers\openvr_capi.h:1724 */ public interface GetOverlaySortOrder_callback extends Callback { int apply(long ulOverlayHandle, IntByReference punSortOrder); }; + /** native declaration : headers\openvr_capi.h:1725 */ public interface SetOverlayWidthInMeters_callback extends Callback { int apply(long ulOverlayHandle, float fWidthInMeters); }; + /** native declaration : headers\openvr_capi.h:1726 */ public interface GetOverlayWidthInMeters_callback extends Callback { int apply(long ulOverlayHandle, FloatByReference pfWidthInMeters); }; + /** native declaration : headers\openvr_capi.h:1727 */ public interface SetOverlayAutoCurveDistanceRangeInMeters_callback extends Callback { int apply(long ulOverlayHandle, float fMinDistanceInMeters, float fMaxDistanceInMeters); }; + /** native declaration : headers\openvr_capi.h:1728 */ public interface GetOverlayAutoCurveDistanceRangeInMeters_callback extends Callback { int apply(long ulOverlayHandle, FloatByReference pfMinDistanceInMeters, FloatByReference pfMaxDistanceInMeters); }; + /** native declaration : headers\openvr_capi.h:1729 */ public interface SetOverlayTextureColorSpace_callback extends Callback { int apply(long ulOverlayHandle, int eTextureColorSpace); }; + /** native declaration : headers\openvr_capi.h:1730 */ public interface GetOverlayTextureColorSpace_callback extends Callback { int apply(long ulOverlayHandle, IntByReference peTextureColorSpace); }; + /** native declaration : headers\openvr_capi.h:1731 */ public interface SetOverlayTextureBounds_callback extends Callback { int apply(long ulOverlayHandle, VRTextureBounds_t pOverlayTextureBounds); }; + /** native declaration : headers\openvr_capi.h:1732 */ public interface GetOverlayTextureBounds_callback extends Callback { int apply(long ulOverlayHandle, VRTextureBounds_t pOverlayTextureBounds); }; + /** native declaration : headers\openvr_capi.h:1733 */ public interface GetOverlayTransformType_callback extends Callback { int apply(long ulOverlayHandle, IntByReference peTransformType); }; + /** native declaration : headers\openvr_capi.h:1734 */ public interface SetOverlayTransformAbsolute_callback extends Callback { int apply(long ulOverlayHandle, int eTrackingOrigin, HmdMatrix34_t pmatTrackingOriginToOverlayTransform); }; + /** native declaration : headers\openvr_capi.h:1735 */ public interface GetOverlayTransformAbsolute_callback extends Callback { int apply(long ulOverlayHandle, IntByReference peTrackingOrigin, HmdMatrix34_t pmatTrackingOriginToOverlayTransform); }; + /** native declaration : headers\openvr_capi.h:1736 */ public interface SetOverlayTransformTrackedDeviceRelative_callback extends Callback { int apply(long ulOverlayHandle, int unTrackedDevice, HmdMatrix34_t pmatTrackedDeviceToOverlayTransform); }; + /** native declaration : headers\openvr_capi.h:1737 */ public interface GetOverlayTransformTrackedDeviceRelative_callback extends Callback { int apply(long ulOverlayHandle, IntByReference punTrackedDevice, HmdMatrix34_t pmatTrackedDeviceToOverlayTransform); }; + /** native declaration : headers\openvr_capi.h:1738 */ public interface SetOverlayTransformTrackedDeviceComponent_callback extends Callback { int apply(long ulOverlayHandle, int unDeviceIndex, Pointer pchComponentName); }; + /** native declaration : headers\openvr_capi.h:1739 */ public interface GetOverlayTransformTrackedDeviceComponent_callback extends Callback { int apply(long ulOverlayHandle, IntByReference punDeviceIndex, Pointer pchComponentName, int unComponentNameSize); }; + /** native declaration : headers\openvr_capi.h:1740 */ public interface ShowOverlay_callback extends Callback { int apply(long ulOverlayHandle); }; + /** native declaration : headers\openvr_capi.h:1741 */ public interface HideOverlay_callback extends Callback { int apply(long ulOverlayHandle); }; + /** native declaration : headers\openvr_capi.h:1742 */ public interface IsOverlayVisible_callback extends Callback { byte apply(long ulOverlayHandle); }; + /** native declaration : headers\openvr_capi.h:1743 */ public interface GetTransformForOverlayCoordinates_callback extends Callback { int apply(long ulOverlayHandle, int eTrackingOrigin, HmdVector2_t.ByValue coordinatesInOverlay, HmdMatrix34_t pmatTransform); }; + /** native declaration : headers\openvr_capi.h:1744 */ public interface PollNextOverlayEvent_callback extends Callback { byte apply(long ulOverlayHandle, VREvent_t pEvent, int uncbVREvent); }; + /** native declaration : headers\openvr_capi.h:1745 */ public interface GetOverlayInputMethod_callback extends Callback { int apply(long ulOverlayHandle, IntByReference peInputMethod); }; + /** native declaration : headers\openvr_capi.h:1746 */ public interface SetOverlayInputMethod_callback extends Callback { int apply(long ulOverlayHandle, int eInputMethod); }; + /** native declaration : headers\openvr_capi.h:1747 */ public interface GetOverlayMouseScale_callback extends Callback { int apply(long ulOverlayHandle, HmdVector2_t pvecMouseScale); }; + /** native declaration : headers\openvr_capi.h:1748 */ public interface SetOverlayMouseScale_callback extends Callback { int apply(long ulOverlayHandle, HmdVector2_t pvecMouseScale); }; + /** native declaration : headers\openvr_capi.h:1749 */ public interface ComputeOverlayIntersection_callback extends Callback { byte apply(long ulOverlayHandle, VROverlayIntersectionParams_t pParams, VROverlayIntersectionResults_t pResults); }; + /** native declaration : headers\openvr_capi.h:1750 */ public interface HandleControllerOverlayInteractionAsMouse_callback extends Callback { byte apply(long ulOverlayHandle, int unControllerDeviceIndex); }; + /** native declaration : headers\openvr_capi.h:1751 */ public interface IsHoverTargetOverlay_callback extends Callback { byte apply(long ulOverlayHandle); }; + /** native declaration : headers\openvr_capi.h:1752 */ public interface GetGamepadFocusOverlay_callback extends Callback { long apply(); }; + /** native declaration : headers\openvr_capi.h:1753 */ public interface SetGamepadFocusOverlay_callback extends Callback { int apply(long ulNewFocusOverlay); }; + /** native declaration : headers\openvr_capi.h:1754 */ public interface SetOverlayNeighbor_callback extends Callback { int apply(int eDirection, long ulFrom, long ulTo); }; + /** native declaration : headers\openvr_capi.h:1755 */ public interface MoveGamepadFocusToNeighbor_callback extends Callback { int apply(int eDirection, long ulFrom); }; + /** native declaration : headers\openvr_capi.h:1756 */ public interface SetOverlayTexture_callback extends Callback { int apply(long ulOverlayHandle, Texture_t pTexture); }; + /** native declaration : headers\openvr_capi.h:1757 */ public interface ClearOverlayTexture_callback extends Callback { int apply(long ulOverlayHandle); }; + /** native declaration : headers\openvr_capi.h:1758 */ public interface SetOverlayRaw_callback extends Callback { int apply(long ulOverlayHandle, Pointer pvBuffer, int unWidth, int unHeight, int unDepth); }; + /** native declaration : headers\openvr_capi.h:1759 */ public interface SetOverlayFromFile_callback extends Callback { int apply(long ulOverlayHandle, Pointer pchFilePath); }; + /** native declaration : headers\openvr_capi.h:1760 */ public interface GetOverlayTexture_callback extends Callback { - int apply(long ulOverlayHandle, PointerByReference pNativeTextureHandle, Pointer pNativeTextureRef, IntByReference pWidth, IntByReference pHeight, IntByReference pNativeFormat, IntByReference pAPI, IntByReference pColorSpace); + int apply(long ulOverlayHandle, PointerByReference pNativeTextureHandle, Pointer pNativeTextureRef, IntByReference pWidth, IntByReference pHeight, IntByReference pNativeFormat, IntByReference pAPIType, IntByReference pColorSpace, VRTextureBounds_t pTextureBounds); }; + /** native declaration : headers\openvr_capi.h:1761 */ public interface ReleaseNativeOverlayHandle_callback extends Callback { int apply(long ulOverlayHandle, Pointer pNativeTextureHandle); }; + /** native declaration : headers\openvr_capi.h:1762 */ public interface GetOverlayTextureSize_callback extends Callback { int apply(long ulOverlayHandle, IntByReference pWidth, IntByReference pHeight); }; + /** native declaration : headers\openvr_capi.h:1763 */ public interface CreateDashboardOverlay_callback extends Callback { int apply(Pointer pchOverlayKey, Pointer pchOverlayFriendlyName, LongByReference pMainHandle, LongByReference pThumbnailHandle); }; + /** native declaration : headers\openvr_capi.h:1764 */ public interface IsDashboardVisible_callback extends Callback { byte apply(); }; + /** native declaration : headers\openvr_capi.h:1765 */ public interface IsActiveDashboardOverlay_callback extends Callback { byte apply(long ulOverlayHandle); }; + /** native declaration : headers\openvr_capi.h:1766 */ public interface SetDashboardOverlaySceneProcess_callback extends Callback { int apply(long ulOverlayHandle, int unProcessId); }; + /** native declaration : headers\openvr_capi.h:1767 */ public interface GetDashboardOverlaySceneProcess_callback extends Callback { int apply(long ulOverlayHandle, IntByReference punProcessId); }; + /** native declaration : headers\openvr_capi.h:1768 */ public interface ShowDashboard_callback extends Callback { void apply(Pointer pchOverlayToShow); }; + /** native declaration : headers\openvr_capi.h:1769 */ public interface GetPrimaryDashboardDevice_callback extends Callback { int apply(); }; + /** native declaration : headers\openvr_capi.h:1770 */ public interface ShowKeyboard_callback extends Callback { int apply(int eInputMode, int eLineInputMode, Pointer pchDescription, int unCharMax, Pointer pchExistingText, byte bUseMinimalMode, long uUserValue); }; + /** native declaration : headers\openvr_capi.h:1771 */ public interface ShowKeyboardForOverlay_callback extends Callback { int apply(long ulOverlayHandle, int eInputMode, int eLineInputMode, Pointer pchDescription, int unCharMax, Pointer pchExistingText, byte bUseMinimalMode, long uUserValue); }; + /** native declaration : headers\openvr_capi.h:1772 */ public interface GetKeyboardText_callback extends Callback { int apply(Pointer pchText, int cchText); }; + /** native declaration : headers\openvr_capi.h:1773 */ public interface HideKeyboard_callback extends Callback { void apply(); }; + /** native declaration : headers\openvr_capi.h:1774 */ public interface SetKeyboardTransformAbsolute_callback extends Callback { void apply(int eTrackingOrigin, HmdMatrix34_t pmatTrackingOriginToKeyboardTransform); }; + /** native declaration : headers\openvr_capi.h:1775 */ public interface SetKeyboardPositionForOverlay_callback extends Callback { void apply(long ulOverlayHandle, com.jme3.system.jopenvr.HmdRect2_t.ByValue avoidRect); }; + /** native declaration : headers\openvr_capi.h:1776 */ + public interface SetOverlayIntersectionMask_callback extends Callback { + int apply(long ulOverlayHandle, VROverlayIntersectionMaskPrimitive_t pMaskPrimitives, int unNumMaskPrimitives, int unPrimitiveSize); + }; + /** native declaration : headers\openvr_capi.h:1777 */ + public interface GetOverlayFlags_callback extends Callback { + int apply(long ulOverlayHandle, IntByReference pFlags); + }; + /** native declaration : headers\openvr_capi.h:1778 */ + public interface ShowMessageOverlay_callback extends Callback { + int apply(Pointer pchText, Pointer pchCaption, Pointer pchButton0Text, Pointer pchButton1Text, Pointer pchButton2Text, Pointer pchButton3Text); + }; public VR_IVROverlay_FnTable() { super(); } protected List getFieldOrder() { - return Arrays.asList("FindOverlay", "CreateOverlay", "DestroyOverlay", "SetHighQualityOverlay", "GetHighQualityOverlay", "GetOverlayKey", "GetOverlayName", "GetOverlayImageData", "GetOverlayErrorNameFromEnum", "SetOverlayRenderingPid", "GetOverlayRenderingPid", "SetOverlayFlag", "GetOverlayFlag", "SetOverlayColor", "GetOverlayColor", "SetOverlayAlpha", "GetOverlayAlpha", "SetOverlayTexelAspect", "GetOverlayTexelAspect", "SetOverlaySortOrder", "GetOverlaySortOrder", "SetOverlayWidthInMeters", "GetOverlayWidthInMeters", "SetOverlayAutoCurveDistanceRangeInMeters", "GetOverlayAutoCurveDistanceRangeInMeters", "SetOverlayTextureColorSpace", "GetOverlayTextureColorSpace", "SetOverlayTextureBounds", "GetOverlayTextureBounds", "GetOverlayTransformType", "SetOverlayTransformAbsolute", "GetOverlayTransformAbsolute", "SetOverlayTransformTrackedDeviceRelative", "GetOverlayTransformTrackedDeviceRelative", "SetOverlayTransformTrackedDeviceComponent", "GetOverlayTransformTrackedDeviceComponent", "ShowOverlay", "HideOverlay", "IsOverlayVisible", "GetTransformForOverlayCoordinates", "PollNextOverlayEvent", "GetOverlayInputMethod", "SetOverlayInputMethod", "GetOverlayMouseScale", "SetOverlayMouseScale", "ComputeOverlayIntersection", "HandleControllerOverlayInteractionAsMouse", "IsHoverTargetOverlay", "GetGamepadFocusOverlay", "SetGamepadFocusOverlay", "SetOverlayNeighbor", "MoveGamepadFocusToNeighbor", "SetOverlayTexture", "ClearOverlayTexture", "SetOverlayRaw", "SetOverlayFromFile", "GetOverlayTexture", "ReleaseNativeOverlayHandle", "GetOverlayTextureSize", "CreateDashboardOverlay", "IsDashboardVisible", "IsActiveDashboardOverlay", "SetDashboardOverlaySceneProcess", "GetDashboardOverlaySceneProcess", "ShowDashboard", "GetPrimaryDashboardDevice", "ShowKeyboard", "ShowKeyboardForOverlay", "GetKeyboardText", "HideKeyboard", "SetKeyboardTransformAbsolute", "SetKeyboardPositionForOverlay"); + return Arrays.asList("FindOverlay", "CreateOverlay", "DestroyOverlay", "SetHighQualityOverlay", "GetHighQualityOverlay", "GetOverlayKey", "GetOverlayName", "GetOverlayImageData", "GetOverlayErrorNameFromEnum", "SetOverlayRenderingPid", "GetOverlayRenderingPid", "SetOverlayFlag", "GetOverlayFlag", "SetOverlayColor", "GetOverlayColor", "SetOverlayAlpha", "GetOverlayAlpha", "SetOverlayTexelAspect", "GetOverlayTexelAspect", "SetOverlaySortOrder", "GetOverlaySortOrder", "SetOverlayWidthInMeters", "GetOverlayWidthInMeters", "SetOverlayAutoCurveDistanceRangeInMeters", "GetOverlayAutoCurveDistanceRangeInMeters", "SetOverlayTextureColorSpace", "GetOverlayTextureColorSpace", "SetOverlayTextureBounds", "GetOverlayTextureBounds", "GetOverlayTransformType", "SetOverlayTransformAbsolute", "GetOverlayTransformAbsolute", "SetOverlayTransformTrackedDeviceRelative", "GetOverlayTransformTrackedDeviceRelative", "SetOverlayTransformTrackedDeviceComponent", "GetOverlayTransformTrackedDeviceComponent", "ShowOverlay", "HideOverlay", "IsOverlayVisible", "GetTransformForOverlayCoordinates", "PollNextOverlayEvent", "GetOverlayInputMethod", "SetOverlayInputMethod", "GetOverlayMouseScale", "SetOverlayMouseScale", "ComputeOverlayIntersection", "HandleControllerOverlayInteractionAsMouse", "IsHoverTargetOverlay", "GetGamepadFocusOverlay", "SetGamepadFocusOverlay", "SetOverlayNeighbor", "MoveGamepadFocusToNeighbor", "SetOverlayTexture", "ClearOverlayTexture", "SetOverlayRaw", "SetOverlayFromFile", "GetOverlayTexture", "ReleaseNativeOverlayHandle", "GetOverlayTextureSize", "CreateDashboardOverlay", "IsDashboardVisible", "IsActiveDashboardOverlay", "SetDashboardOverlaySceneProcess", "GetDashboardOverlaySceneProcess", "ShowDashboard", "GetPrimaryDashboardDevice", "ShowKeyboard", "ShowKeyboardForOverlay", "GetKeyboardText", "HideKeyboard", "SetKeyboardTransformAbsolute", "SetKeyboardPositionForOverlay", "SetOverlayIntersectionMask", "GetOverlayFlags", "ShowMessageOverlay"); } public VR_IVROverlay_FnTable(Pointer peer) { super(peer); @@ -386,4 +480,4 @@ public class VR_IVROverlay_FnTable extends Structure { public static class ByValue extends VR_IVROverlay_FnTable implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRRenderModels_FnTable.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRRenderModels_FnTable.java index 10c0c879b..808fc0d55 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRRenderModels_FnTable.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRRenderModels_FnTable.java @@ -1,12 +1,13 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Callback; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import com.sun.jna.ptr.IntByReference; -import com.sun.jna.ptr.PointerByReference; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Callback; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import com.sun.jna.ptr.IntByReference; +import com.sun.jna.ptr.PointerByReference; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1817
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -22,8 +23,9 @@ public class VR_IVRRenderModels_FnTable extends Structure { public VR_IVRRenderModels_FnTable.FreeTexture_callback FreeTexture; /** C type : LoadTextureD3D11_Async_callback* */ public VR_IVRRenderModels_FnTable.LoadTextureD3D11_Async_callback LoadTextureD3D11_Async; - /** C type : FreeTextureD3D11_callback* */ + /** C type : LoadIntoTextureD3D11_Async_callback* */ public VR_IVRRenderModels_FnTable.LoadIntoTextureD3D11_Async_callback LoadIntoTextureD3D11_Async; + /** C type : FreeTextureD3D11_callback* */ public VR_IVRRenderModels_FnTable.FreeTextureD3D11_callback FreeTextureD3D11; /** C type : GetRenderModelName_callback* */ public VR_IVRRenderModels_FnTable.GetRenderModelName_callback GetRenderModelName; @@ -41,62 +43,81 @@ public class VR_IVRRenderModels_FnTable extends Structure { public VR_IVRRenderModels_FnTable.GetComponentState_callback GetComponentState; /** C type : RenderModelHasComponent_callback* */ public VR_IVRRenderModels_FnTable.RenderModelHasComponent_callback RenderModelHasComponent; + /** C type : GetRenderModelThumbnailURL_callback* */ public VR_IVRRenderModels_FnTable.GetRenderModelThumbnailURL_callback GetRenderModelThumbnailURL; /** C type : GetRenderModelOriginalPath_callback* */ public VR_IVRRenderModels_FnTable.GetRenderModelOriginalPath_callback GetRenderModelOriginalPath; /** C type : GetRenderModelErrorNameFromEnum_callback* */ public VR_IVRRenderModels_FnTable.GetRenderModelErrorNameFromEnum_callback GetRenderModelErrorNameFromEnum; + /** native declaration : headers\openvr_capi.h:1799 */ public interface LoadRenderModel_Async_callback extends Callback { int apply(Pointer pchRenderModelName, PointerByReference ppRenderModel); }; + /** native declaration : headers\openvr_capi.h:1800 */ public interface FreeRenderModel_callback extends Callback { void apply(RenderModel_t pRenderModel); }; + /** native declaration : headers\openvr_capi.h:1801 */ public interface LoadTexture_Async_callback extends Callback { int apply(int textureId, PointerByReference ppTexture); }; + /** native declaration : headers\openvr_capi.h:1802 */ public interface FreeTexture_callback extends Callback { void apply(RenderModel_TextureMap_t pTexture); }; + /** native declaration : headers\openvr_capi.h:1803 */ public interface LoadTextureD3D11_Async_callback extends Callback { int apply(int textureId, Pointer pD3D11Device, PointerByReference ppD3D11Texture2D); }; + /** native declaration : headers\openvr_capi.h:1804 */ public interface LoadIntoTextureD3D11_Async_callback extends Callback { int apply(int textureId, Pointer pDstTexture); }; + /** native declaration : headers\openvr_capi.h:1805 */ public interface FreeTextureD3D11_callback extends Callback { void apply(Pointer pD3D11Texture2D); }; + /** native declaration : headers\openvr_capi.h:1806 */ public interface GetRenderModelName_callback extends Callback { int apply(int unRenderModelIndex, Pointer pchRenderModelName, int unRenderModelNameLen); }; + /** native declaration : headers\openvr_capi.h:1807 */ public interface GetRenderModelCount_callback extends Callback { int apply(); }; + /** native declaration : headers\openvr_capi.h:1808 */ public interface GetComponentCount_callback extends Callback { int apply(Pointer pchRenderModelName); }; + /** native declaration : headers\openvr_capi.h:1809 */ public interface GetComponentName_callback extends Callback { int apply(Pointer pchRenderModelName, int unComponentIndex, Pointer pchComponentName, int unComponentNameLen); }; + /** native declaration : headers\openvr_capi.h:1810 */ public interface GetComponentButtonMask_callback extends Callback { long apply(Pointer pchRenderModelName, Pointer pchComponentName); }; + /** native declaration : headers\openvr_capi.h:1811 */ public interface GetComponentRenderModelName_callback extends Callback { int apply(Pointer pchRenderModelName, Pointer pchComponentName, Pointer pchComponentRenderModelName, int unComponentRenderModelNameLen); }; + /** native declaration : headers\openvr_capi.h:1812 */ public interface GetComponentState_callback extends Callback { byte apply(Pointer pchRenderModelName, Pointer pchComponentName, VRControllerState_t pControllerState, RenderModel_ControllerMode_State_t pState, RenderModel_ComponentState_t pComponentState); }; + /** native declaration : headers\openvr_capi.h:1813 */ public interface RenderModelHasComponent_callback extends Callback { byte apply(Pointer pchRenderModelName, Pointer pchComponentName); }; + /** native declaration : headers\openvr_capi.h:1814 */ public interface GetRenderModelThumbnailURL_callback extends Callback { int apply(Pointer pchRenderModelName, Pointer pchThumbnailURL, int unThumbnailURLLen, IntByReference peError); }; + /** native declaration : headers\openvr_capi.h:1815 */ public interface GetRenderModelOriginalPath_callback extends Callback { int apply(Pointer pchRenderModelName, Pointer pchOriginalPath, int unOriginalPathLen, IntByReference peError); }; + /** native declaration : headers\openvr_capi.h:1816 */ public interface GetRenderModelErrorNameFromEnum_callback extends Callback { Pointer apply(int error); }; @@ -115,4 +136,4 @@ public class VR_IVRRenderModels_FnTable extends Structure { public static class ByValue extends VR_IVRRenderModels_FnTable implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRResources_FnTable.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRResources_FnTable.java index 11fa0fddc..468123388 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRResources_FnTable.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRResources_FnTable.java @@ -1,10 +1,11 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Callback; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Callback; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1871
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -14,9 +15,11 @@ public class VR_IVRResources_FnTable extends Structure { public VR_IVRResources_FnTable.LoadSharedResource_callback LoadSharedResource; /** C type : GetResourceFullPath_callback* */ public VR_IVRResources_FnTable.GetResourceFullPath_callback GetResourceFullPath; + /** native declaration : headers\openvr_capi.h:1869 */ public interface LoadSharedResource_callback extends Callback { int apply(Pointer pchResourceName, Pointer pchBuffer, int unBufferLen); }; + /** native declaration : headers\openvr_capi.h:1870 */ public interface GetResourceFullPath_callback extends Callback { int apply(Pointer pchResourceName, Pointer pchResourceTypeDirectory, Pointer pchPathBuffer, int unBufferLen); }; @@ -26,7 +29,7 @@ public class VR_IVRResources_FnTable extends Structure { protected List getFieldOrder() { return Arrays.asList("LoadSharedResource", "GetResourceFullPath"); } - /** + /** * @param LoadSharedResource C type : LoadSharedResource_callback*
* @param GetResourceFullPath C type : GetResourceFullPath_callback* */ @@ -44,4 +47,4 @@ public class VR_IVRResources_FnTable extends Structure { public static class ByValue extends VR_IVRResources_FnTable implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRScreenshots_FnTable.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRScreenshots_FnTable.java index 4fbca0057..c568a74c6 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRScreenshots_FnTable.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRScreenshots_FnTable.java @@ -1,11 +1,12 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Callback; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import com.sun.jna.ptr.IntByReference; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Callback; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import com.sun.jna.ptr.IntByReference; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1865
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -25,24 +26,31 @@ public class VR_IVRScreenshots_FnTable extends Structure { public VR_IVRScreenshots_FnTable.TakeStereoScreenshot_callback TakeStereoScreenshot; /** C type : SubmitScreenshot_callback* */ public VR_IVRScreenshots_FnTable.SubmitScreenshot_callback SubmitScreenshot; + /** native declaration : headers\openvr_capi.h:1858 */ public interface RequestScreenshot_callback extends Callback { int apply(IntByReference pOutScreenshotHandle, int type, Pointer pchPreviewFilename, Pointer pchVRFilename); }; + /** native declaration : headers\openvr_capi.h:1859 */ public interface HookScreenshot_callback extends Callback { int apply(IntByReference pSupportedTypes, int numTypes); }; + /** native declaration : headers\openvr_capi.h:1860 */ public interface GetScreenshotPropertyType_callback extends Callback { int apply(int screenshotHandle, IntByReference pError); }; + /** native declaration : headers\openvr_capi.h:1861 */ public interface GetScreenshotPropertyFilename_callback extends Callback { int apply(int screenshotHandle, int filenameType, Pointer pchFilename, int cchFilename, IntByReference pError); }; + /** native declaration : headers\openvr_capi.h:1862 */ public interface UpdateScreenshotProgress_callback extends Callback { int apply(int screenshotHandle, float flProgress); }; + /** native declaration : headers\openvr_capi.h:1863 */ public interface TakeStereoScreenshot_callback extends Callback { int apply(IntByReference pOutScreenshotHandle, Pointer pchPreviewFilename, Pointer pchVRFilename); }; + /** native declaration : headers\openvr_capi.h:1864 */ public interface SubmitScreenshot_callback extends Callback { int apply(int screenshotHandle, int type, Pointer pchSourcePreviewFilename, Pointer pchSourceVRFilename); }; @@ -52,7 +60,7 @@ public class VR_IVRScreenshots_FnTable extends Structure { protected List getFieldOrder() { return Arrays.asList("RequestScreenshot", "HookScreenshot", "GetScreenshotPropertyType", "GetScreenshotPropertyFilename", "UpdateScreenshotProgress", "TakeStereoScreenshot", "SubmitScreenshot"); } - /** + /** * @param RequestScreenshot C type : RequestScreenshot_callback*
* @param HookScreenshot C type : HookScreenshot_callback*
* @param GetScreenshotPropertyType C type : GetScreenshotPropertyType_callback*
@@ -80,4 +88,4 @@ public class VR_IVRScreenshots_FnTable extends Structure { public static class ByValue extends VR_IVRScreenshots_FnTable implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRSettings_FnTable.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRSettings_FnTable.java index 4506a27d9..3f27c11c2 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRSettings_FnTable.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRSettings_FnTable.java @@ -1,11 +1,12 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Callback; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import com.sun.jna.ptr.IntByReference; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Callback; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import com.sun.jna.ptr.IntByReference; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1849
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -15,59 +16,71 @@ public class VR_IVRSettings_FnTable extends Structure { public VR_IVRSettings_FnTable.GetSettingsErrorNameFromEnum_callback GetSettingsErrorNameFromEnum; /** C type : Sync_callback* */ public VR_IVRSettings_FnTable.Sync_callback Sync; - /** C type : GetBool_callback* */ - public VR_IVRSettings_FnTable.GetBool_callback GetBool; /** C type : SetBool_callback* */ public VR_IVRSettings_FnTable.SetBool_callback SetBool; - /** C type : GetInt32_callback* */ - public VR_IVRSettings_FnTable.GetInt32_callback GetInt32; /** C type : SetInt32_callback* */ public VR_IVRSettings_FnTable.SetInt32_callback SetInt32; - /** C type : GetFloat_callback* */ - public VR_IVRSettings_FnTable.GetFloat_callback GetFloat; /** C type : SetFloat_callback* */ public VR_IVRSettings_FnTable.SetFloat_callback SetFloat; - /** C type : GetString_callback* */ - public VR_IVRSettings_FnTable.GetString_callback GetString; /** C type : SetString_callback* */ public VR_IVRSettings_FnTable.SetString_callback SetString; + /** C type : GetBool_callback* */ + public VR_IVRSettings_FnTable.GetBool_callback GetBool; + /** C type : GetInt32_callback* */ + public VR_IVRSettings_FnTable.GetInt32_callback GetInt32; + /** C type : GetFloat_callback* */ + public VR_IVRSettings_FnTable.GetFloat_callback GetFloat; + /** C type : GetString_callback* */ + public VR_IVRSettings_FnTable.GetString_callback GetString; /** C type : RemoveSection_callback* */ public VR_IVRSettings_FnTable.RemoveSection_callback RemoveSection; /** C type : RemoveKeyInSection_callback* */ public VR_IVRSettings_FnTable.RemoveKeyInSection_callback RemoveKeyInSection; + /** native declaration : headers\openvr_capi.h:1837 */ public interface GetSettingsErrorNameFromEnum_callback extends Callback { Pointer apply(int eError); }; + /** native declaration : headers\openvr_capi.h:1838 */ public interface Sync_callback extends Callback { byte apply(byte bForce, IntByReference peError); }; - public interface GetBool_callback extends Callback { - byte apply(Pointer pchSection, Pointer pchSettingsKey, byte bDefaultValue, IntByReference peError); - }; + /** native declaration : headers\openvr_capi.h:1839 */ public interface SetBool_callback extends Callback { void apply(Pointer pchSection, Pointer pchSettingsKey, byte bValue, IntByReference peError); }; - public interface GetInt32_callback extends Callback { - int apply(Pointer pchSection, Pointer pchSettingsKey, int nDefaultValue, IntByReference peError); - }; + /** native declaration : headers\openvr_capi.h:1840 */ public interface SetInt32_callback extends Callback { void apply(Pointer pchSection, Pointer pchSettingsKey, int nValue, IntByReference peError); }; - public interface GetFloat_callback extends Callback { - float apply(Pointer pchSection, Pointer pchSettingsKey, float flDefaultValue, IntByReference peError); - }; + /** native declaration : headers\openvr_capi.h:1841 */ public interface SetFloat_callback extends Callback { void apply(Pointer pchSection, Pointer pchSettingsKey, float flValue, IntByReference peError); }; - public interface GetString_callback extends Callback { - void apply(Pointer pchSection, Pointer pchSettingsKey, Pointer pchValue, int unValueLen, Pointer pchDefaultValue, IntByReference peError); - }; + /** native declaration : headers\openvr_capi.h:1842 */ public interface SetString_callback extends Callback { void apply(Pointer pchSection, Pointer pchSettingsKey, Pointer pchValue, IntByReference peError); }; + /** native declaration : headers\openvr_capi.h:1843 */ + public interface GetBool_callback extends Callback { + byte apply(Pointer pchSection, Pointer pchSettingsKey, IntByReference peError); + }; + /** native declaration : headers\openvr_capi.h:1844 */ + public interface GetInt32_callback extends Callback { + int apply(Pointer pchSection, Pointer pchSettingsKey, IntByReference peError); + }; + /** native declaration : headers\openvr_capi.h:1845 */ + public interface GetFloat_callback extends Callback { + float apply(Pointer pchSection, Pointer pchSettingsKey, IntByReference peError); + }; + /** native declaration : headers\openvr_capi.h:1846 */ + public interface GetString_callback extends Callback { + void apply(Pointer pchSection, Pointer pchSettingsKey, Pointer pchValue, int unValueLen, IntByReference peError); + }; + /** native declaration : headers\openvr_capi.h:1847 */ public interface RemoveSection_callback extends Callback { void apply(Pointer pchSection, IntByReference peError); }; + /** native declaration : headers\openvr_capi.h:1848 */ public interface RemoveKeyInSection_callback extends Callback { void apply(Pointer pchSection, Pointer pchSettingsKey, IntByReference peError); }; @@ -75,7 +88,7 @@ public class VR_IVRSettings_FnTable extends Structure { super(); } protected List getFieldOrder() { - return Arrays.asList("GetSettingsErrorNameFromEnum", "Sync", "GetBool", "SetBool", "GetInt32", "SetInt32", "GetFloat", "SetFloat", "GetString", "SetString", "RemoveSection", "RemoveKeyInSection"); + return Arrays.asList("GetSettingsErrorNameFromEnum", "Sync", "SetBool", "SetInt32", "SetFloat", "SetString", "GetBool", "GetInt32", "GetFloat", "GetString", "RemoveSection", "RemoveKeyInSection"); } public VR_IVRSettings_FnTable(Pointer peer) { super(peer); @@ -86,4 +99,4 @@ public class VR_IVRSettings_FnTable extends Structure { public static class ByValue extends VR_IVRSettings_FnTable implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRSystem_FnTable.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRSystem_FnTable.java index 4e275d9cc..4ca9f60e5 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRSystem_FnTable.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRSystem_FnTable.java @@ -1,16 +1,15 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Callback; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import com.sun.jna.ptr.FloatByReference; -import com.sun.jna.ptr.IntByReference; -import java.nio.FloatBuffer; -import java.nio.IntBuffer; -import java.nio.LongBuffer; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Callback; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import com.sun.jna.ptr.FloatByReference; +import com.sun.jna.ptr.IntByReference; +import com.sun.jna.ptr.LongByReference; +import java.util.Arrays; +import java.util.List; +/** * OpenVR Function Pointer Tables
+ * native declaration : headers\openvr_capi.h:1385
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -60,41 +59,8 @@ public class VR_IVRSystem_FnTable extends Structure { public VR_IVRSystem_FnTable.IsTrackedDeviceConnected_callback IsTrackedDeviceConnected; /** C type : GetBoolTrackedDeviceProperty_callback* */ public VR_IVRSystem_FnTable.GetBoolTrackedDeviceProperty_callback GetBoolTrackedDeviceProperty; - - /** - * Returns a static property for a tracked device. - * The different typed GetXTrackedDeviceProperty functions return a value on failure that is generally reasonable for that type: - *

    - *
  • GetBoolTrackedDeviceProperty - false - *
  • GetFloatTrackedDeviceProperty - 0.0 - *
  • GetInt32TrackedDeviceProperty - 0 - *
  • GetUint64TrackedDeviceProperty - 0 - *
  • GetMatrix34TrackedDeviceProperty - identity matrix - *
  • GetStringTrackedDeviceProperty - 0 (and 0-length string) - *
- *

- * String Properties
- * Because the application owns the buffer to fill with a string property, retrieving a string property is a little different. - * GetStringTrackedDeviceProperty returns the number of bytes necessary to hold the string, including the trailing null. - * If the buffer wasn't large enough it passes back TrackedProp_BufferTooSmall as the error and doesn't fill the string into the buffer. - * Strings will generally fit in buffers of k_unTrackingStringSize characters. - *

- * Property Errors
- * TrackedPropertyError will be one of: - *

    - *
  • TrackedProp_Success - The property request was successful. - *
  • TrackedProp_WrongDataType - The property was requested with the wrong typed function. - *
  • TrackedProp_WrongDeviceClass - The property was requested on a tracked device with the wrong class. - *
  • TrackedProp_BufferTooSmall - The string property will not fit in the provided buffer. The buffer size needed is returned. - *
  • TrackedProp_UnknownProperty - The property enum value is unknown. - *
  • TrackedProp_InvalidDevice - The tracked device index was invalid. - *
  • TrackedProp_CouldNotContactServer - OpenVR could not contact vrserver to query the device for this property. - *
  • TrackedProp_ValueNotProvidedByDevice - The driver for this device returned that it does not provide this specific property for this device. - *
  • TrackedProp_StringExceedsMaximumLength - The string property value returned by a driver exceeded the maximum property length of 32k. - *
- */ + /** C type : GetFloatTrackedDeviceProperty_callback* */ public VR_IVRSystem_FnTable.GetFloatTrackedDeviceProperty_callback GetFloatTrackedDeviceProperty; - /** C type : GetInt32TrackedDeviceProperty_callback* */ public VR_IVRSystem_FnTable.GetInt32TrackedDeviceProperty_callback GetInt32TrackedDeviceProperty; /** C type : GetUint64TrackedDeviceProperty_callback* */ @@ -117,25 +83,8 @@ public class VR_IVRSystem_FnTable extends Structure { public VR_IVRSystem_FnTable.GetControllerState_callback GetControllerState; /** C type : GetControllerStateWithPose_callback* */ public VR_IVRSystem_FnTable.GetControllerStateWithPose_callback GetControllerStateWithPose; - - - /** - * Trigger a single haptic pulse on a controller. - *
    - *
  • vr::TrackedDeviceIndex_t unControllerDeviceIndex - The tracked device index of the controller to trigger a haptic pulse on. - *
  • uint32_t unAxisId - The ID of the axis to trigger a haptic pulse on. - *
  • unsigned short usDurationMicroSec - The duration of the desired haptic pulse in microseconds. - *
- *

- * Description
- * Trigger a single haptic pulse on a controller.
- * Note: After this call the application may not trigger another haptic pulse on this controller and axis combination for 5ms. - *

- * see IVRSystem::TriggerHapticPulse - */ + /** C type : TriggerHapticPulse_callback* */ public VR_IVRSystem_FnTable.TriggerHapticPulse_callback TriggerHapticPulse; - - /** C type : GetButtonIdNameFromEnum_callback* */ public VR_IVRSystem_FnTable.GetButtonIdNameFromEnum_callback GetButtonIdNameFromEnum; /** C type : GetControllerAxisTypeNameFromEnum_callback* */ @@ -154,194 +103,179 @@ public class VR_IVRSystem_FnTable extends Structure { public VR_IVRSystem_FnTable.AcknowledgeQuit_Exiting_callback AcknowledgeQuit_Exiting; /** C type : AcknowledgeQuit_UserPrompt_callback* */ public VR_IVRSystem_FnTable.AcknowledgeQuit_UserPrompt_callback AcknowledgeQuit_UserPrompt; - /** C type : PerformanceTestEnableCapture_callback* */ + /** native declaration : headers\openvr_capi.h:1341 */ public interface GetRecommendedRenderTargetSize_callback extends Callback { - void apply(IntBuffer pnWidth, IntBuffer pnHeight); + void apply(IntByReference pnWidth, IntByReference pnHeight); }; + /** native declaration : headers\openvr_capi.h:1342 */ public interface GetProjectionMatrix_callback extends Callback { - com.jme3.system.jopenvr.HmdMatrix44_t.ByValue apply(int eEye, float fNearZ, float fFarZ, int eProjType); + com.jme3.system.jopenvr.HmdMatrix44_t.ByValue apply(int eEye, float fNearZ, float fFarZ); }; + /** native declaration : headers\openvr_capi.h:1343 */ public interface GetProjectionRaw_callback extends Callback { void apply(int eEye, FloatByReference pfLeft, FloatByReference pfRight, FloatByReference pfTop, FloatByReference pfBottom); }; + /** native declaration : headers\openvr_capi.h:1344 */ public interface ComputeDistortion_callback extends Callback { - com.jme3.system.jopenvr.DistortionCoordinates_t.ByValue apply(int eEye, float fU, float fV); + byte apply(int eEye, float fU, float fV, DistortionCoordinates_t pDistortionCoordinates); }; + /** native declaration : headers\openvr_capi.h:1345 */ public interface GetEyeToHeadTransform_callback extends Callback { HmdMatrix34_t.ByValue apply(int eEye); }; + /** native declaration : headers\openvr_capi.h:1346 */ public interface GetTimeSinceLastVsync_callback extends Callback { - byte apply(FloatBuffer pfSecondsSinceLastVsync, LongBuffer pulFrameCounter); + byte apply(FloatByReference pfSecondsSinceLastVsync, LongByReference pulFrameCounter); }; + /** native declaration : headers\openvr_capi.h:1347 */ public interface GetD3D9AdapterIndex_callback extends Callback { int apply(); }; + /** native declaration : headers\openvr_capi.h:1348 */ public interface GetDXGIOutputInfo_callback extends Callback { void apply(IntByReference pnAdapterIndex); }; + /** native declaration : headers\openvr_capi.h:1349 */ public interface IsDisplayOnDesktop_callback extends Callback { byte apply(); }; + /** native declaration : headers\openvr_capi.h:1350 */ public interface SetDisplayVisibility_callback extends Callback { byte apply(byte bIsVisibleOnDesktop); }; + /** native declaration : headers\openvr_capi.h:1351 */ public interface GetDeviceToAbsoluteTrackingPose_callback extends Callback { void apply(int eOrigin, float fPredictedSecondsToPhotonsFromNow, TrackedDevicePose_t pTrackedDevicePoseArray, int unTrackedDevicePoseArrayCount); }; + /** native declaration : headers\openvr_capi.h:1352 */ public interface ResetSeatedZeroPose_callback extends Callback { void apply(); }; + /** native declaration : headers\openvr_capi.h:1353 */ public interface GetSeatedZeroPoseToStandingAbsoluteTrackingPose_callback extends Callback { HmdMatrix34_t.ByValue apply(); }; + /** native declaration : headers\openvr_capi.h:1354 */ public interface GetRawZeroPoseToStandingAbsoluteTrackingPose_callback extends Callback { HmdMatrix34_t.ByValue apply(); }; + /** native declaration : headers\openvr_capi.h:1355 */ public interface GetSortedTrackedDeviceIndicesOfClass_callback extends Callback { int apply(int eTrackedDeviceClass, IntByReference punTrackedDeviceIndexArray, int unTrackedDeviceIndexArrayCount, int unRelativeToTrackedDeviceIndex); }; + /** native declaration : headers\openvr_capi.h:1356 */ public interface GetTrackedDeviceActivityLevel_callback extends Callback { int apply(int unDeviceId); }; + /** native declaration : headers\openvr_capi.h:1357 */ public interface ApplyTransform_callback extends Callback { void apply(TrackedDevicePose_t pOutputPose, TrackedDevicePose_t pTrackedDevicePose, HmdMatrix34_t pTransform); }; + /** native declaration : headers\openvr_capi.h:1358 */ public interface GetTrackedDeviceIndexForControllerRole_callback extends Callback { int apply(int unDeviceType); }; + /** native declaration : headers\openvr_capi.h:1359 */ public interface GetControllerRoleForTrackedDeviceIndex_callback extends Callback { int apply(int unDeviceIndex); }; + /** native declaration : headers\openvr_capi.h:1360 */ public interface GetTrackedDeviceClass_callback extends Callback { int apply(int unDeviceIndex); }; + /** native declaration : headers\openvr_capi.h:1361 */ public interface IsTrackedDeviceConnected_callback extends Callback { byte apply(int unDeviceIndex); }; + /** native declaration : headers\openvr_capi.h:1362 */ public interface GetBoolTrackedDeviceProperty_callback extends Callback { - byte apply(int unDeviceIndex, int prop, IntBuffer pError); + byte apply(int unDeviceIndex, int prop, IntByReference pError); }; - - /** - * IVRSystem::GetTrackedDeviceProperty encapsulation. - */ + /** native declaration : headers\openvr_capi.h:1363 */ public interface GetFloatTrackedDeviceProperty_callback extends Callback { - - /** - * Returns a static property for a tracked device. - * The different typed GetXTrackedDeviceProperty functions return a value on failure that is generally reasonable for that type: - *

    - *
  • GetBoolTrackedDeviceProperty - false - *
  • GetFloatTrackedDeviceProperty - 0.0 - *
  • GetInt32TrackedDeviceProperty - 0 - *
  • GetUint64TrackedDeviceProperty - 0 - *
  • GetMatrix34TrackedDeviceProperty - identity matrix - *
  • GetStringTrackedDeviceProperty - 0 (and 0-length string) - *
- *

- * String Properties
- * Because the application owns the buffer to fill with a string property, retrieving a string property is a little different. - * GetStringTrackedDeviceProperty returns the number of bytes necessary to hold the string, including the trailing null. - * If the buffer wasn't large enough it passes back TrackedProp_BufferTooSmall as the error and doesn't fill the string into the buffer. - * Strings will generally fit in buffers of k_unTrackingStringSize characters. - *

- * Property Errors
- * TrackedPropertyError will be one of: - *

    - *
  • TrackedProp_Success - The property request was successful. - *
  • TrackedProp_WrongDataType - The property was requested with the wrong typed function. - *
  • TrackedProp_WrongDeviceClass - The property was requested on a tracked device with the wrong class. - *
  • TrackedProp_BufferTooSmall - The string property will not fit in the provided buffer. The buffer size needed is returned. - *
  • TrackedProp_UnknownProperty - The property enum value is unknown. - *
  • TrackedProp_InvalidDevice - The tracked device index was invalid. - *
  • TrackedProp_CouldNotContactServer - OpenVR could not contact vrserver to query the device for this property. - *
  • TrackedProp_ValueNotProvidedByDevice - The driver for this device returned that it does not provide this specific property for this device. - *
  • TrackedProp_StringExceedsMaximumLength - The string property value returned by a driver exceeded the maximum property length of 32k. - *
- *

- * see IVRSystem::GetTrackedDeviceProperty. - * @param unDeviceIndex Index of the device to get the property for. - * @param prop Which property to get. - * @param pError The error returned when attempting to fetch this property. This can be NULL if the caller doesn't care about the source of a property error. - * @return the float value of the property. - */ - float apply(int unDeviceIndex, int prop, IntBuffer pError); + float apply(int unDeviceIndex, int prop, IntByReference pError); }; + /** native declaration : headers\openvr_capi.h:1364 */ public interface GetInt32TrackedDeviceProperty_callback extends Callback { - int apply(int unDeviceIndex, int prop, IntBuffer pError); + int apply(int unDeviceIndex, int prop, IntByReference pError); }; + /** native declaration : headers\openvr_capi.h:1365 */ public interface GetUint64TrackedDeviceProperty_callback extends Callback { - long apply(int unDeviceIndex, int prop, IntBuffer pError); + long apply(int unDeviceIndex, int prop, IntByReference pError); }; + /** native declaration : headers\openvr_capi.h:1366 */ public interface GetMatrix34TrackedDeviceProperty_callback extends Callback { HmdMatrix34_t.ByValue apply(int unDeviceIndex, int prop, IntByReference pError); }; + /** native declaration : headers\openvr_capi.h:1367 */ public interface GetStringTrackedDeviceProperty_callback extends Callback { - int apply(int unDeviceIndex, int prop, Pointer pchValue, int unBufferSize, IntBuffer pError); + int apply(int unDeviceIndex, int prop, Pointer pchValue, int unBufferSize, IntByReference pError); }; + /** native declaration : headers\openvr_capi.h:1368 */ public interface GetPropErrorNameFromEnum_callback extends Callback { Pointer apply(int error); }; + /** native declaration : headers\openvr_capi.h:1369 */ public interface PollNextEvent_callback extends Callback { byte apply(VREvent_t pEvent, int uncbVREvent); }; + /** native declaration : headers\openvr_capi.h:1370 */ public interface PollNextEventWithPose_callback extends Callback { byte apply(int eOrigin, VREvent_t pEvent, int uncbVREvent, TrackedDevicePose_t pTrackedDevicePose); }; + /** native declaration : headers\openvr_capi.h:1371 */ public interface GetEventTypeNameFromEnum_callback extends Callback { Pointer apply(int eType); }; + /** native declaration : headers\openvr_capi.h:1372 */ public interface GetHiddenAreaMesh_callback extends Callback { - com.jme3.system.jopenvr.HiddenAreaMesh_t.ByValue apply(int eEye); + com.jme3.system.jopenvr.HiddenAreaMesh_t.ByValue apply(int eEye, int type); }; + /** native declaration : headers\openvr_capi.h:1373 */ public interface GetControllerState_callback extends Callback { - byte apply(int unControllerDeviceIndex, VRControllerState_t pControllerState); + byte apply(int unControllerDeviceIndex, VRControllerState_t pControllerState, int unControllerStateSize); }; + /** native declaration : headers\openvr_capi.h:1374 */ public interface GetControllerStateWithPose_callback extends Callback { - byte apply(int eOrigin, int unControllerDeviceIndex, VRControllerState_t pControllerState, TrackedDevicePose_t pTrackedDevicePose); + byte apply(int eOrigin, int unControllerDeviceIndex, VRControllerState_t pControllerState, int unControllerStateSize, TrackedDevicePose_t pTrackedDevicePose); }; - - - /** - * IVRSystem::TriggerHapticPulse encapsulation. - */ + /** native declaration : headers\openvr_capi.h:1375 */ public interface TriggerHapticPulse_callback extends Callback { - - /** - * Trigger a single haptic pulse on a controller.

- * Note: After this call the application may not trigger another haptic pulse on this controller and axis combination for 5ms. - *

- * see IVRSystem::TriggerHapticPulse - * @param unControllerDeviceIndex The tracked device index of the controller to trigger a haptic pulse on. - * @param unAxisId The ID of the axis to trigger a haptic pulse on. - * @param usDurationMicroSec The duration of the desired haptic pulse in microseconds. - */ void apply(int unControllerDeviceIndex, int unAxisId, short usDurationMicroSec); }; + /** native declaration : headers\openvr_capi.h:1376 */ public interface GetButtonIdNameFromEnum_callback extends Callback { Pointer apply(int eButtonId); }; + /** native declaration : headers\openvr_capi.h:1377 */ public interface GetControllerAxisTypeNameFromEnum_callback extends Callback { Pointer apply(int eAxisType); }; + /** native declaration : headers\openvr_capi.h:1378 */ public interface CaptureInputFocus_callback extends Callback { byte apply(); }; + /** native declaration : headers\openvr_capi.h:1379 */ public interface ReleaseInputFocus_callback extends Callback { void apply(); }; + /** native declaration : headers\openvr_capi.h:1380 */ public interface IsInputFocusCapturedByAnotherProcess_callback extends Callback { byte apply(); }; + /** native declaration : headers\openvr_capi.h:1381 */ public interface DriverDebugRequest_callback extends Callback { int apply(int unDeviceIndex, Pointer pchRequest, Pointer pchResponseBuffer, int unResponseBufferSize); }; + /** native declaration : headers\openvr_capi.h:1382 */ public interface PerformFirmwareUpdate_callback extends Callback { int apply(int unDeviceIndex); }; + /** native declaration : headers\openvr_capi.h:1383 */ public interface AcknowledgeQuit_Exiting_callback extends Callback { void apply(); }; + /** native declaration : headers\openvr_capi.h:1384 */ public interface AcknowledgeQuit_UserPrompt_callback extends Callback { void apply(); }; @@ -360,4 +294,4 @@ public class VR_IVRSystem_FnTable extends Structure { public static class ByValue extends VR_IVRSystem_FnTable implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRTrackedCamera_FnTable.java b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRTrackedCamera_FnTable.java index d9247f41e..ddb701b94 100644 --- a/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRTrackedCamera_FnTable.java +++ b/jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRTrackedCamera_FnTable.java @@ -1,13 +1,14 @@ -package com.jme3.system.jopenvr; -import com.sun.jna.Callback; -import com.sun.jna.Pointer; -import com.sun.jna.Structure; -import com.sun.jna.ptr.IntByReference; -import com.sun.jna.ptr.LongByReference; -import com.sun.jna.ptr.PointerByReference; -import java.util.Arrays; -import java.util.List; -/** +package com.jme3.system.jopenvr; +import com.sun.jna.Callback; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import com.sun.jna.ptr.IntByReference; +import com.sun.jna.ptr.LongByReference; +import com.sun.jna.ptr.PointerByReference; +import java.util.Arrays; +import java.util.List; +/** + * native declaration : headers\openvr_capi.h:1419
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. @@ -19,8 +20,8 @@ public class VR_IVRTrackedCamera_FnTable extends Structure { public VR_IVRTrackedCamera_FnTable.HasCamera_callback HasCamera; /** C type : GetCameraFrameSize_callback* */ public VR_IVRTrackedCamera_FnTable.GetCameraFrameSize_callback GetCameraFrameSize; - /** C type : GetCameraIntrinisics_callback* */ - public VR_IVRTrackedCamera_FnTable.GetCameraIntrinisics_callback GetCameraIntrinisics; + /** C type : GetCameraIntrinsics_callback* */ + public VR_IVRTrackedCamera_FnTable.GetCameraIntrinsics_callback GetCameraIntrinsics; /** C type : GetCameraProjection_callback* */ public VR_IVRTrackedCamera_FnTable.GetCameraProjection_callback GetCameraProjection; /** C type : AcquireVideoStreamingService_callback* */ @@ -29,6 +30,7 @@ public class VR_IVRTrackedCamera_FnTable extends Structure { public VR_IVRTrackedCamera_FnTable.ReleaseVideoStreamingService_callback ReleaseVideoStreamingService; /** C type : GetVideoStreamFrameBuffer_callback* */ public VR_IVRTrackedCamera_FnTable.GetVideoStreamFrameBuffer_callback GetVideoStreamFrameBuffer; + /** C type : GetVideoStreamTextureSize_callback* */ public VR_IVRTrackedCamera_FnTable.GetVideoStreamTextureSize_callback GetVideoStreamTextureSize; /** C type : GetVideoStreamTextureD3D11_callback* */ public VR_IVRTrackedCamera_FnTable.GetVideoStreamTextureD3D11_callback GetVideoStreamTextureD3D11; @@ -36,39 +38,51 @@ public class VR_IVRTrackedCamera_FnTable extends Structure { public VR_IVRTrackedCamera_FnTable.GetVideoStreamTextureGL_callback GetVideoStreamTextureGL; /** C type : ReleaseVideoStreamTextureGL_callback* */ public VR_IVRTrackedCamera_FnTable.ReleaseVideoStreamTextureGL_callback ReleaseVideoStreamTextureGL; + /** native declaration : headers\openvr_capi.h:1407 */ public interface GetCameraErrorNameFromEnum_callback extends Callback { Pointer apply(int eCameraError); }; + /** native declaration : headers\openvr_capi.h:1408 */ public interface HasCamera_callback extends Callback { int apply(int nDeviceIndex, Pointer pHasCamera); }; + /** native declaration : headers\openvr_capi.h:1409 */ public interface GetCameraFrameSize_callback extends Callback { int apply(int nDeviceIndex, int eFrameType, IntByReference pnWidth, IntByReference pnHeight, IntByReference pnFrameBufferSize); }; - public interface GetCameraIntrinisics_callback extends Callback { + /** native declaration : headers\openvr_capi.h:1410 */ + public interface GetCameraIntrinsics_callback extends Callback { int apply(int nDeviceIndex, int eFrameType, HmdVector2_t pFocalLength, HmdVector2_t pCenter); }; + /** native declaration : headers\openvr_capi.h:1411 */ public interface GetCameraProjection_callback extends Callback { int apply(int nDeviceIndex, int eFrameType, float flZNear, float flZFar, HmdMatrix44_t pProjection); }; + /** native declaration : headers\openvr_capi.h:1412 */ public interface AcquireVideoStreamingService_callback extends Callback { int apply(int nDeviceIndex, LongByReference pHandle); }; + /** native declaration : headers\openvr_capi.h:1413 */ public interface ReleaseVideoStreamingService_callback extends Callback { int apply(long hTrackedCamera); }; + /** native declaration : headers\openvr_capi.h:1414 */ public interface GetVideoStreamFrameBuffer_callback extends Callback { int apply(long hTrackedCamera, int eFrameType, Pointer pFrameBuffer, int nFrameBufferSize, CameraVideoStreamFrameHeader_t pFrameHeader, int nFrameHeaderSize); }; + /** native declaration : headers\openvr_capi.h:1415 */ public interface GetVideoStreamTextureSize_callback extends Callback { int apply(int nDeviceIndex, int eFrameType, VRTextureBounds_t pTextureBounds, IntByReference pnWidth, IntByReference pnHeight); }; + /** native declaration : headers\openvr_capi.h:1416 */ public interface GetVideoStreamTextureD3D11_callback extends Callback { int apply(long hTrackedCamera, int eFrameType, Pointer pD3D11DeviceOrResource, PointerByReference ppD3D11ShaderResourceView, CameraVideoStreamFrameHeader_t pFrameHeader, int nFrameHeaderSize); }; + /** native declaration : headers\openvr_capi.h:1417 */ public interface GetVideoStreamTextureGL_callback extends Callback { int apply(long hTrackedCamera, int eFrameType, IntByReference pglTextureId, CameraVideoStreamFrameHeader_t pFrameHeader, int nFrameHeaderSize); }; + /** native declaration : headers\openvr_capi.h:1418 */ public interface ReleaseVideoStreamTextureGL_callback extends Callback { int apply(long hTrackedCamera, int glTextureId); }; @@ -76,7 +90,7 @@ public class VR_IVRTrackedCamera_FnTable extends Structure { super(); } protected List getFieldOrder() { - return Arrays.asList("GetCameraErrorNameFromEnum", "HasCamera", "GetCameraFrameSize", "GetCameraIntrinisics", "GetCameraProjection", "AcquireVideoStreamingService", "ReleaseVideoStreamingService", "GetVideoStreamFrameBuffer", "GetVideoStreamTextureSize", "GetVideoStreamTextureD3D11", "GetVideoStreamTextureGL", "ReleaseVideoStreamTextureGL"); + return Arrays.asList("GetCameraErrorNameFromEnum", "HasCamera", "GetCameraFrameSize", "GetCameraIntrinsics", "GetCameraProjection", "AcquireVideoStreamingService", "ReleaseVideoStreamingService", "GetVideoStreamFrameBuffer", "GetVideoStreamTextureSize", "GetVideoStreamTextureD3D11", "GetVideoStreamTextureGL", "ReleaseVideoStreamTextureGL"); } public VR_IVRTrackedCamera_FnTable(Pointer peer) { super(peer); @@ -87,4 +101,4 @@ public class VR_IVRTrackedCamera_FnTable extends Structure { public static class ByValue extends VR_IVRTrackedCamera_FnTable implements Structure.ByValue { }; -} +} diff --git a/jme3-vr/src/main/java/jmevr/util/MeshUtil.java b/jme3-vr/src/main/java/jmevr/util/MeshUtil.java index 986952b38..ff3f42feb 100644 --- a/jme3-vr/src/main/java/jmevr/util/MeshUtil.java +++ b/jme3-vr/src/main/java/jmevr/util/MeshUtil.java @@ -44,7 +44,7 @@ public class MeshUtil { verts[vertPos + 2] = 0f; // z vertPos += 3; - DistortionCoordinates_t dc0; + DistortionCoordinates_t dc0 = new DistortionCoordinates_t(); if( application.getVRHardware().getVRSystem() == null ) { // default to no distortion texcoordR[coordPos] = u; @@ -54,7 +54,7 @@ public class MeshUtil { texcoordB[coordPos] = u; texcoordB[coordPos + 1] = 1 - v; } else { - dc0 = ((VR_IVRSystem_FnTable)application.getVRHardware().getVRSystem()).ComputeDistortion.apply(eye, u, v); + ((VR_IVRSystem_FnTable)application.getVRHardware().getVRSystem()).ComputeDistortion.apply(eye, u, v, dc0); texcoordR[coordPos] = dc0.rfRed[0]; texcoordR[coordPos + 1] = 1 - dc0.rfRed[1]; diff --git a/jme3-vr/src/main/java/jmevr/util/VRMouseManager.java b/jme3-vr/src/main/java/jmevr/util/VRMouseManager.java index 56d509ca4..38fc705eb 100644 --- a/jme3-vr/src/main/java/jmevr/util/VRMouseManager.java +++ b/jme3-vr/src/main/java/jmevr/util/VRMouseManager.java @@ -14,6 +14,7 @@ import com.jme3.input.lwjgl.GlfwMouseInputVR; import com.jme3.input.vr.VRInputType; import com.jme3.material.RenderState.BlendMode; import com.jme3.math.Vector2f; +import com.jme3.scene.Node; import com.jme3.system.AppSettings; import com.jme3.system.lwjgl.LwjglWindowVR; import com.jme3.texture.Texture; @@ -203,9 +204,12 @@ public class VRMouseManager { Vector2f currentPos = getCursorPosition(); mouseImage.setLocalTranslation(currentPos.x, currentPos.y - ySize, application.getVRGUIManager().getGuiDistance() + 1f); mouseImage.updateGeometricState(); + mouseImage.getParent().updateGeometricState(); } else if( mouseImage.getParent() != null ) { + Node n = mouseImage.getParent(); mouseImage.removeFromParent(); + n.updateGeometricState(); } } } diff --git a/jme3-vr/src/main/java/jmevr/util/VRViewManager.java b/jme3-vr/src/main/java/jmevr/util/VRViewManager.java index 510d12601..fc01aba02 100644 --- a/jme3-vr/src/main/java/jmevr/util/VRViewManager.java +++ b/jme3-vr/src/main/java/jmevr/util/VRViewManager.java @@ -38,6 +38,7 @@ import com.jme3.texture.Texture; import com.jme3.texture.Texture2D; import com.jme3.ui.Picture; import com.sun.jna.Pointer; +import com.sun.jna.ptr.IntByReference; import com.sun.jna.ptr.PointerByReference; import java.awt.GraphicsEnvironment; @@ -48,105 +49,247 @@ import osvrrendermanageropengl.OSVR_ViewportDescription; import osvrrendermanageropengl.OsvrRenderManagerOpenGLLibrary; /** - * - * @author reden + * A VR view manager. This class enable to submit 3D views to the VR compositor. + * @author reden - phr00t - https://github.com/phr00t + * @author Julien Seinturier - (c) 2016 - JOrigin project - http:/www.jorigin.org */ public class VRViewManager { private static final Logger logger = Logger.getLogger(VRViewManager.class.getName()); + /** + * The name of the left view. + */ + public final static String LEFT_VIEW_NAME = "Left View"; + + /** + * The name of the right view. + */ + public final static String RIGHT_VIEW_NAME = "Right View"; + private final VRApplication app; - private Camera camLeft,camRight; - private ViewPort viewPortLeft, viewPortRight; - private FilterPostProcessor ppLeft, ppRight; + + private Camera leftCamera; + private ViewPort leftViewport; + private FilterPostProcessor leftPostProcessor; + private Texture2D leftEyeTexture; + private Texture2D leftEyeDepth; + + private Camera rightCamera; + private ViewPort rightViewport; + private FilterPostProcessor rightPostProcessor; + private Texture2D rightEyeTexture; + private Texture2D rightEyeDepth; // OpenVR values - private VRTextureBounds_t texBoundsLeft, texBoundsRight; - private Texture_t texTypeLeft, texTypeRight; + private VRTextureBounds_t leftTextureBounds; + private Texture_t leftTextureType; + + private VRTextureBounds_t rightTextureBounds; + private Texture_t rightTextureType; // OSVR values OSVR_RenderBufferOpenGL.ByValue[] osvr_renderBuffer; - OSVR_ViewportDescription.ByValue osvr_viewDescFull, osvr_viewDescLeft, osvr_viewDescRight; + OSVR_ViewportDescription.ByValue osvr_viewDescFull; + OSVR_ViewportDescription.ByValue osvr_viewDescLeft; + OSVR_ViewportDescription.ByValue osvr_viewDescRight; Pointer osvr_rmBufferState; //private static boolean useCustomDistortion; private float heightAdjustment; + + private Texture2D dualEyeTex; + + private final PointerByReference grabRBS = new PointerByReference(); - private Texture2D leftEyeTex, rightEyeTex, dualEyeTex; - private Texture2D leftEyeDepth, rightEyeDepth; + private float resMult = 1f; - private final static String LEFT_VIEW_NAME = "Left View"; - private final static String RIGHT_VIEW_NAME = "Right View"; - - /* - do not use. set via preconfigure routine in VRApplication - */ - @Deprecated - public static void _setCustomDistortion(boolean set) { - //useCustomDistortion = set; + //final & temp values for camera calculations + private final Vector3f finalPosition = new Vector3f(); + private final Quaternion finalRotation = new Quaternion(); + private final Vector3f hmdPos = new Vector3f(); + private final Quaternion hmdRot = new Quaternion(); + + /** + * Create a new VR view manager attached to the given {@link VRApplication VR application}. + * @param application the {@link VRApplication VR application} to which this manager is linked. + */ + public VRViewManager(VRApplication application){ + this.app = application; } - public VRViewManager(VRApplication forVRApp){ - app = forVRApp; + /** + * Get the {@link Camera camera} attached to the left eye. + * @return the {@link Camera camera} attached to the left eye. + * @see #getRightCamera() + */ + public Camera getLeftCamera() { + return leftCamera; } - private int getRightTexId() { - return (int)rightEyeTex.getImage().getId(); + /** + * Get the {@link Camera camera} attached to the right eye. + * @return the {@link Camera camera} attached to the right eye. + * @see #getLeftCamera() + */ + public Camera getRightCamera() { + return rightCamera; } - private int getFullTexId() { - return (int)dualEyeTex.getImage().getId(); + /** + * Get the {@link ViewPort viewport} attached to the left eye. + * @return the {@link ViewPort viewport} attached to the left eye. + * @see #getRightViewport() + */ + public ViewPort getLeftViewport() { + return leftViewport; } + /** + * Get the {@link ViewPort viewport} attached to the right eye. + * @return the {@link ViewPort viewport} attached to the right eye. + * @see #getLeftViewport() + */ + public ViewPort getRightViewport() { + return rightViewport; + } + + /** + * Get the identifier of the left eye texture. + * @return the identifier of the left eye texture. + * @see #getRightTexId() + * @see #getFullTexId() + */ private int getLeftTexId() { - return (int)leftEyeTex.getImage().getId(); + return (int)leftEyeTexture.getImage().getId(); + } + + /** + * Get the identifier of the right eye texture. + * @return the identifier of the right eye texture. + * @see #getLeftTexId() + * @see #getFullTexId() + */ + private int getRightTexId() { + return (int)rightEyeTexture.getImage().getId(); + } + + /** + * Get the identifier of the full (dual eye) texture. + * @return the identifier of the full (dual eye) texture. + * @see #getLeftTexId() + * @see #getRightTexId() + */ + private int getFullTexId() { + return (int)dualEyeTex.getImage().getId(); } + /** + * Get the height adjustment to apply to the cameras before rendering. + * @return the height adjustment to apply to the cameras before rendering. + * @see #setHeightAdjustment(float) + */ public float getHeightAdjustment() { return heightAdjustment; } + /** + * Set the height adjustment to apply to the cameras before rendering. + * @param amount the height adjustment to apply to the cameras before rendering. + * @see #getHeightAdjustment() + */ public void setHeightAdjustment(float amount) { heightAdjustment = amount; } + /** + * Get the resolution multiplier. + * @return the resolution multiplier. + * @see #setResolutionMultiplier(float) + */ + public float getResolutionMuliplier() { + return resMult; + } + + /** + * Set the resolution multiplier. + * @param resMult the resolution multiplier. + * @see #getResolutionMuliplier() + */ + public void setResolutionMultiplier(float resMult) { + this.resMult = resMult; + } + + /** + * Initialize the system binds of the textures. + */ private void initTextureSubmitStructs() { - texTypeLeft = new Texture_t(); - texTypeRight = new Texture_t(); + leftTextureType = new Texture_t(); + rightTextureType = new Texture_t(); + + if( app.getVRHardware() instanceof OpenVR ) { - texBoundsLeft = new VRTextureBounds_t(); - texBoundsRight = new VRTextureBounds_t(); + leftTextureBounds = new VRTextureBounds_t(); + rightTextureBounds = new VRTextureBounds_t(); // left eye - texBoundsLeft.uMax = 0.5f; - texBoundsLeft.uMin = 0f; - texBoundsLeft.vMax = 1f; - texBoundsLeft.vMin = 0f; - texBoundsLeft.setAutoSynch(false); - texBoundsLeft.setAutoRead(false); - texBoundsLeft.setAutoWrite(false); - texBoundsLeft.write(); + leftTextureBounds.uMax = 0.5f; + leftTextureBounds.uMin = 0f; + leftTextureBounds.vMax = 1f; + leftTextureBounds.vMin = 0f; + leftTextureBounds.setAutoSynch(false); + leftTextureBounds.setAutoRead(false); + leftTextureBounds.setAutoWrite(false); + leftTextureBounds.write(); // right eye - texBoundsRight.uMax = 1f; - texBoundsRight.uMin = 0.5f; - texBoundsRight.vMax = 1f; - texBoundsRight.vMin = 0f; - texBoundsRight.setAutoSynch(false); - texBoundsRight.setAutoRead(false); - texBoundsRight.setAutoWrite(false); - texBoundsRight.write(); + rightTextureBounds.uMax = 1f; + rightTextureBounds.uMin = 0.5f; + rightTextureBounds.vMax = 1f; + rightTextureBounds.vMin = 0f; + rightTextureBounds.setAutoSynch(false); + rightTextureBounds.setAutoRead(false); + rightTextureBounds.setAutoWrite(false); + rightTextureBounds.write(); // texture type - texTypeLeft.eColorSpace = JOpenVRLibrary.EColorSpace.EColorSpace_ColorSpace_Gamma; - texTypeLeft.eType = JOpenVRLibrary.EGraphicsAPIConvention.EGraphicsAPIConvention_API_OpenGL; - texTypeLeft.setAutoSynch(false); - texTypeLeft.setAutoRead(false); - texTypeLeft.setAutoWrite(false); - texTypeLeft.handle = -1; - texTypeRight.eColorSpace = JOpenVRLibrary.EColorSpace.EColorSpace_ColorSpace_Gamma; - texTypeRight.eType = JOpenVRLibrary.EGraphicsAPIConvention.EGraphicsAPIConvention_API_OpenGL; - texTypeRight.setAutoSynch(false); - texTypeRight.setAutoRead(false); - texTypeRight.setAutoWrite(false); - texTypeRight.handle = -1; + // FIXME: Synchronize with JMonkey given texture (at this time is linear but was Gamma with phr00t implementation) + leftTextureType.eColorSpace = JOpenVRLibrary.EColorSpace.EColorSpace_ColorSpace_Gamma; + //leftTextureType.eColorSpace = JOpenVRLibrary.EColorSpace.EColorSpace_ColorSpace_Linear; + leftTextureType.eType = JOpenVRLibrary.ETextureType.ETextureType_TextureType_OpenGL; + leftTextureType.setAutoSynch(false); + leftTextureType.setAutoRead(false); + leftTextureType.setAutoWrite(false); + leftTextureType.handle = -1; + // FIXME: Synchronize with JMonkey given texture (at this time is linear but was Gamma with phr00t implementation) + rightTextureType.eColorSpace = JOpenVRLibrary.EColorSpace.EColorSpace_ColorSpace_Gamma; + //rightTextureType.eColorSpace = JOpenVRLibrary.EColorSpace.EColorSpace_ColorSpace_Linear; + rightTextureType.eType = JOpenVRLibrary.ETextureType.ETextureType_TextureType_OpenGL; + rightTextureType.setAutoSynch(false); + rightTextureType.setAutoRead(false); + rightTextureType.setAutoWrite(false); + rightTextureType.handle = -1; + + + logger.config("Init eyes native texture binds"); + logger.config(" Left eye texture"); + logger.config(" address: "+leftTextureType.getPointer()); + logger.config(" size: "+leftTextureType.size()+" bytes"); + logger.config(" color space: "+JOpenVRLibrary.getEColorSpaceString(leftTextureType.eColorSpace)); + logger.config(" type: "+JOpenVRLibrary.getETextureTypeString(leftTextureType.eType)); + logger.config(" auto read: "+leftTextureType.getAutoRead()); + logger.config(" auto write: "+leftTextureType.getAutoWrite()); + logger.config(" handle address: "+leftTextureType.handle); + logger.config(" handle value: "+leftTextureType.handle); + logger.config(""); + logger.config(" Right eye texture"); + logger.config(" address: "+rightTextureType.getPointer()); + logger.config(" size: "+rightTextureType.size()+" bytes"); + logger.config(" color space: "+JOpenVRLibrary.getEColorSpaceString(rightTextureType.eColorSpace)); + logger.config(" type: "+JOpenVRLibrary.getETextureTypeString(rightTextureType.eType)); + logger.config(" auto read: "+rightTextureType.getAutoRead()); + logger.config(" auto write: "+rightTextureType.getAutoWrite()); + logger.config(" handle address: "+rightTextureType.handle); + logger.config(" handle value: "+rightTextureType.handle); + + } else if( app.getVRHardware() instanceof OSVR ) { // must be OSVR osvr_renderBuffer = new OSVR_RenderBufferOpenGL.ByValue[2]; @@ -178,14 +321,20 @@ public class VRViewManager { osvr_renderBuffer[OSVR.EYE_RIGHT].colorBufferName = -1; } } - - private final PointerByReference grabRBS = new PointerByReference(); + + /** + * Register the OSVR OpenGL buffer. + * @param buf the OSVR OpenGL buffer. + */ private void registerOSVRBuffer(OSVR_RenderBufferOpenGL.ByValue buf) { OsvrRenderManagerOpenGLLibrary.osvrRenderManagerStartRegisterRenderBuffers(grabRBS); OsvrRenderManagerOpenGLLibrary.osvrRenderManagerRegisterRenderBufferOpenGL(grabRBS.getValue(), buf); OsvrRenderManagerOpenGLLibrary.osvrRenderManagerFinishRegisterRenderBuffers(((OSVR)app.getVRHardware()).getCompositor(), grabRBS.getValue(), (byte)0); } + /** + * Send the textures to the two eyes. + */ public void sendTextures() { if( app.isInVR() ) { VRAPI api = app.getVRHardware(); @@ -193,12 +342,12 @@ public class VRViewManager { // using the compositor... int errl = 0, errr = 0; if( app.isInstanceVRRendering() ) { - if( texTypeLeft.handle == -1 || texTypeLeft.handle != getFullTexId() ) { - texTypeLeft.handle = getFullTexId(); - if( texTypeLeft.handle != -1 ) { - texTypeLeft.write(); + if( leftTextureType.handle == -1 || leftTextureType.handle != getFullTexId() ) { + leftTextureType.handle = getFullTexId(); + if( leftTextureType.handle != -1 ) { + leftTextureType.write(); if( api instanceof OSVR ) { - osvr_renderBuffer[OSVR.EYE_LEFT].colorBufferName = texTypeLeft.handle; + osvr_renderBuffer[OSVR.EYE_LEFT].colorBufferName = leftTextureType.handle; osvr_renderBuffer[OSVR.EYE_LEFT].depthStencilBufferName = dualEyeTex.getImage().getId(); osvr_renderBuffer[OSVR.EYE_LEFT].write(); registerOSVRBuffer(osvr_renderBuffer[OSVR.EYE_LEFT]); @@ -207,30 +356,32 @@ public class VRViewManager { } else { if( api instanceof OpenVR ) { int submitFlag = JOpenVRLibrary.EVRSubmitFlags.EVRSubmitFlags_Submit_Default; - errr = ((OpenVR)api).getCompositor().Submit.apply(JOpenVRLibrary.EVREye.EVREye_Eye_Right, texTypeLeft, texBoundsRight, submitFlag); - errl = ((OpenVR)api).getCompositor().Submit.apply(JOpenVRLibrary.EVREye.EVREye_Eye_Left, texTypeLeft, texBoundsLeft, submitFlag); + errr = ((OpenVR)api).getCompositor().Submit.apply(JOpenVRLibrary.EVREye.EVREye_Eye_Right, leftTextureType, rightTextureBounds, submitFlag); + errl = ((OpenVR)api).getCompositor().Submit.apply(JOpenVRLibrary.EVREye.EVREye_Eye_Left, leftTextureType, leftTextureBounds, submitFlag); } else if( api instanceof OSVR ) { ((OSVR)api).handleRenderBufferPresent(osvr_viewDescLeft, osvr_viewDescRight, osvr_renderBuffer[OSVR.EYE_LEFT], osvr_renderBuffer[OSVR.EYE_LEFT]); } } - } else if( texTypeLeft.handle == -1 || texTypeRight.handle == -1 || - texTypeLeft.handle != getLeftTexId() || texTypeRight.handle != getRightTexId() ) { - texTypeLeft.handle = getLeftTexId(); - if( texTypeLeft.handle != -1 ) { - texTypeLeft.write(); + } else if( leftTextureType.handle == -1 || rightTextureType.handle == -1 || + leftTextureType.handle != getLeftTexId() || rightTextureType.handle != getRightTexId() ) { + leftTextureType.handle = getLeftTexId(); + if( leftTextureType.handle != -1 ) { + logger.fine("Writing Left texture to native memory at " + leftTextureType.getPointer()); + leftTextureType.write(); if( api instanceof OSVR ) { - osvr_renderBuffer[OSVR.EYE_LEFT].colorBufferName = texTypeLeft.handle; + osvr_renderBuffer[OSVR.EYE_LEFT].colorBufferName = leftTextureType.handle; if( leftEyeDepth != null ) osvr_renderBuffer[OSVR.EYE_LEFT].depthStencilBufferName = leftEyeDepth.getImage().getId(); osvr_renderBuffer[OSVR.EYE_LEFT].write(); registerOSVRBuffer(osvr_renderBuffer[OSVR.EYE_LEFT]); } } - texTypeRight.handle = getRightTexId(); - if( texTypeRight.handle != -1 ) { - texTypeRight.write(); + rightTextureType.handle = getRightTexId(); + if( rightTextureType.handle != -1 ) { + logger.fine("Writing Right texture to native memory at " + leftTextureType.getPointer()); + rightTextureType.write(); if( api instanceof OSVR ) { - osvr_renderBuffer[OSVR.EYE_RIGHT].colorBufferName = texTypeRight.handle; + osvr_renderBuffer[OSVR.EYE_RIGHT].colorBufferName = rightTextureType.handle; if( rightEyeDepth != null ) osvr_renderBuffer[OSVR.EYE_RIGHT].depthStencilBufferName = rightEyeDepth.getImage().getId(); osvr_renderBuffer[OSVR.EYE_RIGHT].write(); registerOSVRBuffer(osvr_renderBuffer[OSVR.EYE_RIGHT]); @@ -238,37 +389,52 @@ public class VRViewManager { } } else { if( api instanceof OpenVR ) { - errl = ((OpenVR)api).getCompositor().Submit.apply(JOpenVRLibrary.EVREye.EVREye_Eye_Left, texTypeLeft, null, + errl = ((OpenVR)api).getCompositor().Submit.apply(JOpenVRLibrary.EVREye.EVREye_Eye_Left, leftTextureType, null, JOpenVRLibrary.EVRSubmitFlags.EVRSubmitFlags_Submit_Default); - errr = ((OpenVR)api).getCompositor().Submit.apply(JOpenVRLibrary.EVREye.EVREye_Eye_Right, texTypeRight, null, + errr = ((OpenVR)api).getCompositor().Submit.apply(JOpenVRLibrary.EVREye.EVREye_Eye_Right, rightTextureType, null, JOpenVRLibrary.EVRSubmitFlags.EVRSubmitFlags_Submit_Default); } else if( api instanceof OSVR ) { ((OSVR)api).handleRenderBufferPresent(osvr_viewDescFull, osvr_viewDescFull, osvr_renderBuffer[OSVR.EYE_LEFT], osvr_renderBuffer[OSVR.EYE_RIGHT]); } } - if( errl != 0 ) System.out.println("Submit left compositor error: " + Integer.toString(errl)); - if( errr != 0 ) System.out.println("Submit right compositor error: " + Integer.toString(errr)); + + if( errl != 0 ){ + logger.severe("Submit to left compositor error: " + JOpenVRLibrary.getEVRCompositorErrorString(errl)+" ("+Integer.toString(errl)+")"); + logger.severe(" Texture color space: "+JOpenVRLibrary.getEColorSpaceString(leftTextureType.eColorSpace)); + logger.severe(" Texture type: "+JOpenVRLibrary.getETextureTypeString(leftTextureType.eType)); + logger.severe(" Texture handle: "+leftTextureType.handle); + + logger.severe(" Left eye texture "+leftEyeTexture.getName()+" ("+leftEyeTexture.getImage().getId()+")"); + logger.severe(" Type: "+leftEyeTexture.getType()); + logger.severe(" Size: "+leftEyeTexture.getImage().getWidth()+"x"+leftEyeTexture.getImage().getHeight()); + logger.severe(" Image depth: "+leftEyeTexture.getImage().getDepth()); + logger.severe(" Image format: "+leftEyeTexture.getImage().getFormat()); + logger.severe(" Image color space: "+leftEyeTexture.getImage().getColorSpace()); + + } + + if( errr != 0 ){ + logger.severe("Submit to right compositor error: " + JOpenVRLibrary.getEVRCompositorErrorString(errl)+" ("+Integer.toString(errl)+")"); + logger.severe(" Texture color space: "+JOpenVRLibrary.getEColorSpaceString(rightTextureType.eColorSpace)); + logger.severe(" Texture type: "+JOpenVRLibrary.getETextureTypeString(rightTextureType.eType)); + logger.severe(" Texture handle: "+rightTextureType.handle); + + logger.severe(" Right eye texture "+rightEyeTexture.getName()+" ("+rightEyeTexture.getImage().getId()+")"); + logger.severe(" Type: "+rightEyeTexture.getType()); + logger.severe(" Size: "+rightEyeTexture.getImage().getWidth()+"x"+rightEyeTexture.getImage().getHeight()); + logger.severe(" Image depth: "+rightEyeTexture.getImage().getDepth()); + logger.severe(" Image format: "+rightEyeTexture.getImage().getFormat()); + logger.severe(" Image color space: "+rightEyeTexture.getImage().getColorSpace()); + } } } } - public Camera getCamLeft() { - return camLeft; - } - - public Camera getCamRight() { - return camRight; - } - - public ViewPort getViewPortLeft() { - return viewPortLeft; - } - - public ViewPort getViewPortRight() { - return viewPortRight; - } - + + /** + * Initialize the VR view manager. + */ public void initialize() { logger.config("Initializing VR view manager."); @@ -292,7 +458,7 @@ public class VRViewManager { long window = ((LwjglWindow)app.getContext()).getWindowHandle(); Vector2f windowSize = new Vector2f(); ((OSVR)app.getVRHardware()).getRenderSize(windowSize); - windowSize.x = Math.max(windowSize.x * 2f, camLeft.getWidth()); + windowSize.x = Math.max(windowSize.x * 2f, leftCamera.getWidth()); org.lwjgl.glfw.GLFW.glfwSetWindowSize(window, (int)windowSize.x, (int)windowSize.y); app.getContext().getSettings().setResolution((int)windowSize.x, (int)windowSize.y); app.reshape((int)windowSize.x, (int)windowSize.y); @@ -304,15 +470,11 @@ public class VRViewManager { } } - private float resMult = 1f; - public void setResolutionMultiplier(float resMult) { - this.resMult = resMult; - } - - public float getResolutionMuliplier() { - return resMult; - } - + /** + * Prepare the size of the given {@link Camera camera} to adapt it to the underlying rendering context. + * @param cam the {@link Camera camera} to prepare. + * @param xMult the camera width multiplier. + */ private void prepareCameraSize(Camera cam, float xMult) { Vector2f size = new Vector2f(); VRAPI vrhmd = app.getVRHardware(); @@ -354,10 +516,39 @@ public class VRViewManager { return; } - leftEyeTex = (Texture2D)viewPortLeft.getOutputFrameBuffer().getColorBuffer().getTexture(); - rightEyeTex = (Texture2D)viewPortRight.getOutputFrameBuffer().getColorBuffer().getTexture(); - leftEyeDepth = (Texture2D)viewPortLeft.getOutputFrameBuffer().getDepthBuffer().getTexture(); - rightEyeDepth = (Texture2D)viewPortRight.getOutputFrameBuffer().getDepthBuffer().getTexture(); + leftEyeTexture = (Texture2D) leftViewport.getOutputFrameBuffer().getColorBuffer().getTexture(); + rightEyeTexture = (Texture2D)rightViewport.getOutputFrameBuffer().getColorBuffer().getTexture(); + leftEyeDepth = (Texture2D) leftViewport.getOutputFrameBuffer().getDepthBuffer().getTexture(); + rightEyeDepth = (Texture2D)rightViewport.getOutputFrameBuffer().getDepthBuffer().getTexture(); +/* + logger.config("Left eye texture "+leftEyeTexture.getName()+" ("+leftEyeTexture.getImage().getId()+")"); + logger.config(" Type: "+leftEyeTexture.getType()); + logger.config(" Size: "+leftEyeTexture.getImage().getWidth()+"x"+leftEyeTexture.getImage().getHeight()); + logger.config(" Image depth: "+leftEyeTexture.getImage().getDepth()); + logger.config(" Image format: "+leftEyeTexture.getImage().getFormat()); + logger.config(" Image color space: "+leftEyeTexture.getImage().getColorSpace()); + + logger.config("Left eye depth "+leftEyeDepth.getName()+" ("+leftEyeDepth.getImage().getId()+")"); + logger.config(" Type: "+leftEyeDepth.getType()); + logger.config(" Size: "+leftEyeDepth.getImage().getWidth()+"x"+leftEyeDepth.getImage().getHeight()); + logger.config(" Image depth: "+leftEyeDepth.getImage().getDepth()); + logger.config(" Image format: "+leftEyeDepth.getImage().getFormat()); + logger.config(" Image color space: "+leftEyeDepth.getImage().getColorSpace()); + + logger.config("Right eye texture "+rightEyeTexture.getName()+" ("+rightEyeTexture.getImage().getId()+")"); + logger.config(" Type: "+rightEyeTexture.getType()); + logger.config(" Size: "+rightEyeTexture.getImage().getWidth()+"x"+rightEyeTexture.getImage().getHeight()); + logger.config(" Image depth: "+rightEyeTexture.getImage().getDepth()); + logger.config(" Image format: "+rightEyeTexture.getImage().getFormat()); + logger.config(" Image color space: "+rightEyeTexture.getImage().getColorSpace()); + + logger.config("Right eye depth "+rightEyeDepth.getName()+" ("+rightEyeDepth.getImage().getId()+")"); + logger.config(" Type: "+rightEyeDepth.getType()); + logger.config(" Size: "+rightEyeDepth.getImage().getWidth()+"x"+rightEyeDepth.getImage().getHeight()); + logger.config(" Image depth: "+rightEyeDepth.getImage().getDepth()); + logger.config(" Image format: "+rightEyeDepth.getImage().getFormat()); + logger.config(" Image color space: "+rightEyeDepth.getImage().getColorSpace()); +*/ // main viewport is either going to be a distortion scene or nothing // mirroring is handled by copying framebuffers app.getViewPort().detachScene(app.getRootNode()); @@ -367,13 +558,13 @@ public class VRViewManager { if( app.getVRHardware().getCompositor() == null ) { Node distortionScene = new Node(); Material leftMat = new Material(app.getAssetManager(), "Common/MatDefs/VR/OpenVR.j3md"); - leftMat.setTexture("Texture", leftEyeTex); + leftMat.setTexture("Texture", leftEyeTexture); Geometry leftEye = new Geometry("box", MeshUtil.setupDistortionMesh(JOpenVRLibrary.EVREye.EVREye_Eye_Left, app)); leftEye.setMaterial(leftMat); distortionScene.attachChild(leftEye); Material rightMat = new Material(app.getAssetManager(), "Common/MatDefs/VR/OpenVR.j3md"); - rightMat.setTexture("Texture", rightEyeTex); + rightMat.setTexture("Texture", rightEyeTexture); Geometry rightEye = new Geometry("box", MeshUtil.setupDistortionMesh(JOpenVRLibrary.EVREye.EVREye_Eye_Right, app)); rightEye.setMaterial(rightMat); distortionScene.attachChild(rightEye); @@ -386,16 +577,15 @@ public class VRViewManager { } if( app.getContext().getSettings().isSwapBuffers() ) { - setupMirrorBuffers(app.getCamera(), leftEyeTex, false); + setupMirrorBuffers(app.getCamera(), leftEyeTexture, false); } } - //final & temp values for camera calculations - private final Vector3f finalPosition = new Vector3f(); - private final Quaternion finalRotation = new Quaternion(); - private final Vector3f hmdPos = new Vector3f(); - private final Quaternion hmdRot = new Quaternion(); - + /** + * Update the VR view manager. + * This method is called by the attached {@link VRApplication VR application} and should not be called manually. + * @param tpf the time per frame. + */ public void update(float tpf) { // grab the observer @@ -422,11 +612,11 @@ public class VRViewManager { finalRotation.multLocal(hmdRot); } - finalizeCamera(dev.getHMDVectorPoseLeftEye(), objPos, camLeft); - finalizeCamera(dev.getHMDVectorPoseRightEye(), objPos, camRight); + finalizeCamera(dev.getHMDVectorPoseLeftEye(), objPos, leftCamera); + finalizeCamera(dev.getHMDVectorPoseRightEye(), objPos, rightCamera); } else { - camLeft.setFrame(objPos, objRot); - camRight.setFrame(objPos, objRot); + leftCamera.setFrame(objPos, objRot); + rightCamera.setFrame(objPos, objRot); } if( app.hasTraditionalGUIOverlay() ) { @@ -441,6 +631,12 @@ public class VRViewManager { } } + /** + * Place the camera within the scene. + * @param eyePos the eye position. + * @param obsPosition the observer position. + * @param cam the camera to place. + */ private void finalizeCamera(Vector3f eyePos, Vector3f obsPosition, Camera cam) { finalRotation.mult(eyePos, finalPosition); finalPosition.addLocal(hmdPos); @@ -449,35 +645,36 @@ public class VRViewManager { cam.setFrame(finalPosition, finalRotation); } - /* - handles moving filters from the main view to each eye - */ + /** + * Handles moving filters from the main view to each eye + */ public void moveScreenProcessingToEyes() { - if( viewPortRight == null ) return; + if( rightViewport == null ) return; syncScreenProcessing(app.getViewPort()); app.getViewPort().clearProcessors(); } - /* - sets the two views to use the list of processors - */ + /** + * Sets the two views to use the list of {@link SceneProcessor processors}. + * @param sourceViewport the {@link ViewPort viewport} that contains the processors to use. + */ public void syncScreenProcessing(ViewPort sourceViewport) { - if( viewPortRight == null ) return; + if( rightViewport == null ) return; // setup post processing filters - if( ppRight == null ) { - ppRight = new FilterPostProcessor(app.getAssetManager()); - ppLeft = new FilterPostProcessor(app.getAssetManager()); + if( rightPostProcessor == null ) { + rightPostProcessor = new FilterPostProcessor(app.getAssetManager()); + leftPostProcessor = new FilterPostProcessor(app.getAssetManager()); } // clear out all filters & processors, to start from scratch - ppRight.removeAllFilters(); - ppLeft.removeAllFilters(); - viewPortLeft.clearProcessors(); - viewPortRight.clearProcessors(); + rightPostProcessor.removeAllFilters(); + leftPostProcessor.removeAllFilters(); + leftViewport.clearProcessors(); + rightViewport.clearProcessors(); // if we have no processors to sync, don't add the FilterPostProcessor if( sourceViewport.getProcessors().isEmpty() ) return; // add post processors we just made, which are empty - viewPortLeft.addProcessor(ppLeft); - viewPortRight.addProcessor(ppRight); + leftViewport.addProcessor(leftPostProcessor); + rightViewport.addProcessor(rightPostProcessor); // go through all of the filters in the processors list // add them to the left viewport processor & clone them to the right for(SceneProcessor sceneProcessor : sourceViewport.getProcessors()) { @@ -487,7 +684,7 @@ public class VRViewManager { // just remove this filter, we will add it at the end manually ((FilterPostProcessor)sceneProcessor).removeFilter(f); } else { - ppLeft.addFilter(f); + leftPostProcessor.addFilter(f); // clone to the right Filter f2; if(f instanceof FogFilter){ @@ -501,7 +698,7 @@ public class VRViewManager { } else { f2 = f; // dof, bloom, lightscattering etc. } - ppRight.addFilter(f2); + rightPostProcessor.addFilter(f2); } } } else if (sceneProcessor instanceof VRDirectionalLightShadowRenderer) { @@ -510,13 +707,13 @@ public class VRViewManager { VRDirectionalLightShadowRenderer dlsr = (VRDirectionalLightShadowRenderer) sceneProcessor; VRDirectionalLightShadowRenderer dlsrRight = dlsr.clone(); dlsrRight.setLight(dlsr.getLight()); - viewPortRight.getProcessors().add(0, dlsrRight); - viewPortLeft.getProcessors().add(0, sceneProcessor); + rightViewport.getProcessors().add(0, dlsrRight); + leftViewport.getProcessors().add(0, sceneProcessor); } } // make sure each has a translucent filter renderer - ppLeft.addFilter(new TranslucentBucketFilter()); - ppRight.addFilter(new TranslucentBucketFilter()); + leftPostProcessor.addFilter(new TranslucentBucketFilter()); + rightPostProcessor.addFilter(new TranslucentBucketFilter()); } private void setupCamerasAndViews() { @@ -532,32 +729,32 @@ public class VRViewManager { // restore frustrum on distortion scene cam, if needed if( app.isInstanceVRRendering() ) { - camLeft = origCam; + leftCamera = origCam; } else if( app.compositorAllowed() == false ) { origCam.setFrustumFar(100f); origCam.setFrustumNear(1f); - camLeft = origCam.clone(); + leftCamera = origCam.clone(); prepareCameraSize(origCam, 2f); } else { - camLeft = origCam.clone(); + leftCamera = origCam.clone(); } - camLeft.setFrustumPerspective(app.DEFAULT_FOV, app.DEFAULT_ASPECT, fNear, fFar); + leftCamera.setFrustumPerspective(app.DEFAULT_FOV, app.DEFAULT_ASPECT, fNear, fFar); - prepareCameraSize(camLeft, 1f); - if( app.getVRHardware() != null ) camLeft.setProjectionMatrix(app.getVRHardware().getHMDMatrixProjectionLeftEye(camLeft)); + prepareCameraSize(leftCamera, 1f); + if( app.getVRHardware() != null ) leftCamera.setProjectionMatrix(app.getVRHardware().getHMDMatrixProjectionLeftEye(leftCamera)); //org.lwjgl.opengl.GL11.glEnable(org.lwjgl.opengl.GL30.GL_FRAMEBUFFER_SRGB); if( app.isInstanceVRRendering() == false ) { - viewPortLeft = setupViewBuffers(camLeft, LEFT_VIEW_NAME); - camRight = camLeft.clone(); - if( app.getVRHardware() != null ) camRight.setProjectionMatrix(app.getVRHardware().getHMDMatrixProjectionRightEye(camRight)); - viewPortRight = setupViewBuffers(camRight, RIGHT_VIEW_NAME); + leftViewport = setupViewBuffers(leftCamera, LEFT_VIEW_NAME); + rightCamera = leftCamera.clone(); + if( app.getVRHardware() != null ) rightCamera.setProjectionMatrix(app.getVRHardware().getHMDMatrixProjectionRightEye(rightCamera)); + rightViewport = setupViewBuffers(rightCamera, RIGHT_VIEW_NAME); } else { - viewPortLeft = app.getViewPort(); - viewPortLeft.attachScene(app.getRootNode()); - camRight = camLeft.clone(); - if( app.getVRHardware() != null ) camRight.setProjectionMatrix(app.getVRHardware().getHMDMatrixProjectionRightEye(camRight)); + leftViewport = app.getViewPort(); + leftViewport.attachScene(app.getRootNode()); + rightCamera = leftCamera.clone(); + if( app.getVRHardware() != null ) rightCamera.setProjectionMatrix(app.getVRHardware().getHMDMatrixProjectionRightEye(rightCamera)); org.lwjgl.opengl.GL11.glEnable(org.lwjgl.opengl.GL30.GL_CLIP_DISTANCE0); @@ -568,7 +765,7 @@ public class VRViewManager { } // setup gui - app.getVRGUIManager().setupGui(camLeft, camRight, viewPortLeft, viewPortRight); + app.getVRGUIManager().setupGui(leftCamera, rightCamera, leftViewport, rightViewport); if( app.getVRHardware() != null ) { // call these to cache the results internally @@ -611,6 +808,13 @@ public class VRViewManager { dualEyeTex.setMinFilter(Texture.MinFilter.BilinearNoMipMaps); dualEyeTex.setMagFilter(Texture.MagFilter.Bilinear); + logger.config("Dual eye texture "+dualEyeTex.getName()+" ("+dualEyeTex.getImage().getId()+")"); + logger.config(" Type: "+dualEyeTex.getType()); + logger.config(" Size: "+dualEyeTex.getImage().getWidth()+"x"+dualEyeTex.getImage().getHeight()); + logger.config(" Image depth: "+dualEyeTex.getImage().getDepth()); + logger.config(" Image format: "+dualEyeTex.getImage().getFormat()); + logger.config(" Image color space: "+dualEyeTex.getImage().getColorSpace()); + //setup framebuffer to use texture out.setDepthBuffer(Image.Format.Depth); out.setColorTexture(dualEyeTex); diff --git a/jme3-vr/src/main/resources/darwin/libopenvr_api.dylib b/jme3-vr/src/main/resources/darwin/libopenvr_api.dylib index df781ebe4..b3da84f1e 100644 Binary files a/jme3-vr/src/main/resources/darwin/libopenvr_api.dylib and b/jme3-vr/src/main/resources/darwin/libopenvr_api.dylib differ diff --git a/jme3-vr/src/main/resources/darwin/libopenvr_api.dylib.dSYM/Contents/Resources/DWARF/libopenvr_api.dylib b/jme3-vr/src/main/resources/darwin/libopenvr_api.dylib.dSYM/Contents/Resources/DWARF/libopenvr_api.dylib index dacf5f8f7..8ca6951d9 100644 Binary files a/jme3-vr/src/main/resources/darwin/libopenvr_api.dylib.dSYM/Contents/Resources/DWARF/libopenvr_api.dylib and b/jme3-vr/src/main/resources/darwin/libopenvr_api.dylib.dSYM/Contents/Resources/DWARF/libopenvr_api.dylib differ diff --git a/jme3-vr/src/main/resources/darwin/libopenvr_api.dylib.dSYM/libopenvr_api.dylib b/jme3-vr/src/main/resources/darwin/libopenvr_api.dylib.dSYM/libopenvr_api.dylib deleted file mode 100644 index 4255777c9..000000000 Binary files a/jme3-vr/src/main/resources/darwin/libopenvr_api.dylib.dSYM/libopenvr_api.dylib and /dev/null differ diff --git a/jme3-vr/src/main/resources/darwin/libopenvr_api.dylib.dSYM/libopenvr_api.dylib.dSYM/Contents/Info.plist b/jme3-vr/src/main/resources/darwin/libopenvr_api.dylib.dSYM/libopenvr_api.dylib.dSYM/Contents/Info.plist deleted file mode 100644 index 60ac3d69b..000000000 --- a/jme3-vr/src/main/resources/darwin/libopenvr_api.dylib.dSYM/libopenvr_api.dylib.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.libopenvr_api.dylib - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/jme3-vr/src/main/resources/darwin/libopenvr_api.dylib.dSYM/libopenvr_api.dylib.dSYM/Contents/Resources/DWARF/libopenvr_api.dylib b/jme3-vr/src/main/resources/darwin/libopenvr_api.dylib.dSYM/libopenvr_api.dylib.dSYM/Contents/Resources/DWARF/libopenvr_api.dylib deleted file mode 100644 index cfcfaef9a..000000000 Binary files a/jme3-vr/src/main/resources/darwin/libopenvr_api.dylib.dSYM/libopenvr_api.dylib.dSYM/Contents/Resources/DWARF/libopenvr_api.dylib and /dev/null differ diff --git a/jme3-vr/src/main/resources/linux-x86-64/libopenvr_api.so b/jme3-vr/src/main/resources/linux-x86-64/libopenvr_api.so index a190fe10d..eafad11ec 100644 Binary files a/jme3-vr/src/main/resources/linux-x86-64/libopenvr_api.so and b/jme3-vr/src/main/resources/linux-x86-64/libopenvr_api.so differ diff --git a/jme3-vr/src/main/resources/linux-x86-64/libopenvr_api.so.dbg b/jme3-vr/src/main/resources/linux-x86-64/libopenvr_api.so.dbg index ca9c9af89..877c28408 100644 Binary files a/jme3-vr/src/main/resources/linux-x86-64/libopenvr_api.so.dbg and b/jme3-vr/src/main/resources/linux-x86-64/libopenvr_api.so.dbg differ diff --git a/jme3-vr/src/main/resources/win32-x86-64/openvr_api.dll b/jme3-vr/src/main/resources/win32-x86-64/openvr_api.dll index dbf1531b4..5767d725f 100644 Binary files a/jme3-vr/src/main/resources/win32-x86-64/openvr_api.dll and b/jme3-vr/src/main/resources/win32-x86-64/openvr_api.dll differ diff --git a/jme3-vr/src/main/resources/win32-x86-64/openvr_api.pdb b/jme3-vr/src/main/resources/win32-x86-64/openvr_api.pdb index 8a2095e9a..082d4780d 100644 Binary files a/jme3-vr/src/main/resources/win32-x86-64/openvr_api.pdb and b/jme3-vr/src/main/resources/win32-x86-64/openvr_api.pdb differ diff --git a/jme3-vr/src/main/resources/win32-x86/openvr_api.dll b/jme3-vr/src/main/resources/win32-x86/openvr_api.dll index f845d447e..83ead53b8 100644 Binary files a/jme3-vr/src/main/resources/win32-x86/openvr_api.dll and b/jme3-vr/src/main/resources/win32-x86/openvr_api.dll differ diff --git a/jme3-vr/src/main/resources/win32-x86/openvr_api.pdb b/jme3-vr/src/main/resources/win32-x86/openvr_api.pdb index a2c9adc39..a7bb091e6 100644 Binary files a/jme3-vr/src/main/resources/win32-x86/openvr_api.pdb and b/jme3-vr/src/main/resources/win32-x86/openvr_api.pdb differ