com.oculusvr.capi.DistortionVertex 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 DistortionVertex extends Structure {
/** [-1,+1],[-1,+1] over the entire framebuffer. */
public OvrVector2f ScreenPosNDC;
/** Lerp factor between time-warp matrices. Can be encoded in Pos.z. */
public float TimeWarpFactor;
/** Vignette fade factor. Can be encoded in Pos.w. */
public float VignetteFactor;
public OvrVector2f TanEyeAnglesR;
public OvrVector2f TanEyeAnglesG;
public OvrVector2f TanEyeAnglesB;
public DistortionVertex() {
super();
}
@Override
protected List> getFieldOrder() {
return Arrays.asList("ScreenPosNDC", "TimeWarpFactor", "VignetteFactor", "TanEyeAnglesR", "TanEyeAnglesG",
"TanEyeAnglesB");
}
public DistortionVertex(OvrVector2f ScreenPosNDC, float TimeWarpFactor, float VignetteFactor,
OvrVector2f TanEyeAnglesR, OvrVector2f TanEyeAnglesG, OvrVector2f TanEyeAnglesB) {
super();
this.ScreenPosNDC = ScreenPosNDC;
this.TimeWarpFactor = TimeWarpFactor;
this.VignetteFactor = VignetteFactor;
this.TanEyeAnglesR = TanEyeAnglesR;
this.TanEyeAnglesG = TanEyeAnglesG;
this.TanEyeAnglesB = TanEyeAnglesB;
}
public DistortionVertex(Pointer peer) {
super(peer);
}
public static class ByReference extends DistortionVertex implements Structure.ByReference {
};
public static class ByValue extends DistortionVertex implements Structure.ByValue {
};
}