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

com.oculusvr.capi.OvrRecti 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.Memory;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;

public class OvrRecti extends Structure implements Structure.ByValue {
  public static final int SIZE = OvrVector2i.SIZE + OvrSizei.SIZE;
  public OvrVector2i Pos;
  public OvrSizei Size;

  public OvrRecti() {
    super();
  }

  public OvrRecti(OvrVector2i Pos, OvrSizei Size) {
    super();
    this.Pos = Pos;
    this.Size = Size;
  }

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

  @Override
  protected List getFieldOrder() {
    return Arrays.asList("Pos", "Size");
  }

  public static OvrRecti[] buildPair() {
    return (OvrRecti[]) new OvrRecti(new Memory(SIZE * 2)).toArray(2);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy