com.oculusvr.capi.EyeRenderDesc 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.oculusvr.capi.OvrLibrary.ovrEyeType;
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 EyeRenderDesc extends Structure {
/** @see ovrEyeType */
public int Eye;
public FovPort Fov;
/** Distortion viewport. */
public OvrRecti DistortedViewport;
/** How many display pixels will fit in tan(angle) = 1. */
public OvrVector2f PixelsPerTanAngleAtCenter;
/** Translation to be applied to view matrix. */
public OvrVector3f ViewAdjust;
public EyeRenderDesc() {
super();
}
@Override
protected List> getFieldOrder() {
return Arrays.asList("Eye", "Fov", "DistortedViewport", "PixelsPerTanAngleAtCenter", "ViewAdjust");
}
public EyeRenderDesc(int Eye, FovPort Fov, OvrRecti DistortedViewport, OvrVector2f PixelsPerTanAngleAtCenter,
OvrVector3f ViewAdjust) {
super();
this.Eye = Eye;
this.Fov = Fov;
this.DistortedViewport = DistortedViewport;
this.PixelsPerTanAngleAtCenter = PixelsPerTanAngleAtCenter;
this.ViewAdjust = ViewAdjust;
}
public EyeRenderDesc(Pointer peer) {
super(peer);
}
public static class ByReference extends EyeRenderDesc implements Structure.ByReference {
};
public static class ByValue extends EyeRenderDesc implements Structure.ByValue {
};
}