|
|
@ -210,6 +210,15 @@ public class OculusVR implements VRAPI { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void updatePose() { |
|
|
|
|
|
|
|
double ftiming = ovr_GetPredictedDisplayTime(session, 0); |
|
|
|
|
|
|
|
OVRTrackingState hmdState = OVRTrackingState.malloc(); |
|
|
|
|
|
|
|
ovr_GetTrackingState(session, ftiming, true, hmdState); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean isInitialized() { |
|
|
|
public boolean isInitialized() { |
|
|
|
return initialized; |
|
|
|
return initialized; |
|
|
@ -251,11 +260,6 @@ public class OculusVR implements VRAPI { |
|
|
|
throw new UnsupportedOperationException(); |
|
|
|
throw new UnsupportedOperationException(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void updatePose() { |
|
|
|
|
|
|
|
throw new UnsupportedOperationException(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Matrix4f getHMDMatrixProjectionLeftEye(Camera cam) { |
|
|
|
public Matrix4f getHMDMatrixProjectionLeftEye(Camera cam) { |
|
|
|
return matrixO2J(projections[ovrEye_Left], new Matrix4f()); |
|
|
|
return matrixO2J(projections[ovrEye_Left], new Matrix4f()); |
|
|
|