com.oculusvr.capi.FrameTiming Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jovr Show documentation
Show all versions of jovr Show documentation
JNA bindings for the Oculus SDK C API
package com.oculusvr.capi;
import java.util.Arrays;
import java.util.List;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
/**
* 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 FrameTiming extends Structure {
public float DeltaSeconds;
public double ThisFrameSeconds;
public double TimewarpPointSeconds;
public double NextFrameSeconds;
public double ScanoutMidpointSeconds;
public double[] EyeScanoutSeconds = new double[2];
public FrameTiming() {
super();
}
@Override
protected List > getFieldOrder() {
return Arrays.asList("DeltaSeconds", "ThisFrameSeconds", "TimewarpPointSeconds", "NextFrameSeconds", "ScanoutMidpointSeconds", "EyeScanoutSeconds");
}
public FrameTiming(float DeltaSeconds, double ThisFrameSeconds, double TimewarpPointSeconds, double NextFrameSeconds, double ScanoutMidpointSeconds, double EyeScanoutSeconds[]) {
super();
this.DeltaSeconds = DeltaSeconds;
this.ThisFrameSeconds = ThisFrameSeconds;
this.TimewarpPointSeconds = TimewarpPointSeconds;
this.NextFrameSeconds = NextFrameSeconds;
this.ScanoutMidpointSeconds = ScanoutMidpointSeconds;
if ((EyeScanoutSeconds.length != this.EyeScanoutSeconds.length))
throw new IllegalArgumentException("Wrong array size !");
this.EyeScanoutSeconds = EyeScanoutSeconds;
}
public FrameTiming(Pointer peer) {
super(peer);
}
public static class ByReference extends FrameTiming implements Structure.ByReference {
};
public static class ByValue extends FrameTiming implements Structure.ByValue {
};
}