All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oculusvr.capi.FrameTiming Maven / Gradle / Ivy

There is a newer version: 1.8.0.0
Show newest version
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 { }; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy