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

com.oculusvr.capi.LayerEyeFov 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;
import com.sun.jna.Structure.ByValue;

public class LayerEyeFov extends Structure implements ByValue {
  public static final int SIZE = 8;
  public LayerHeader Header;
  public TextureSwapChain[] ColorTexure = new TextureSwapChain[2];
  public OvrRecti[] Viewport = OvrRecti.buildPair(); 
  public FovPort[] Fov = FovPort.buildPair();
  public Posef[] RenderPose = Posef.buildPair();
  
    /// Specifies the timestamp when the source ovrPosef (used in calculating RenderPose)
    /// was sampled from the SDK. Typically retrieved by calling ovr_GetTimeInSeconds
    /// around the instant the application calls ovr_GetTrackingState
    /// The main purpose for this is to accurately track app tracking latency.
  public double SensorSampleTime;
  
  public LayerEyeFov() {
    super();
  }

  public LayerEyeFov(Pointer peer) {
    super(peer);
  }

  @Override
  protected List getFieldOrder() {
    return Arrays.asList("Header", "ColorTexure", "Viewport", "Fov", "RenderPose", "SensorSampleTime");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy