com.oculusvr.capi.OvrVector2f 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;
/**
* native declaration : /usr/include/stdint.h
* 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 OvrVector2f extends Structure {
public float x;
public float y;
public OvrVector2f() {
super();
}
@Override
protected List> getFieldOrder() {
return Arrays.asList("x", "y");
}
public OvrVector2f(float x, float y) {
super();
this.x = x;
this.y = y;
}
public OvrVector2f(Pointer peer) {
super(peer);
}
public static class ByReference extends OvrVector2f implements Structure.ByReference {
};
public static class ByValue extends OvrVector2f implements Structure.ByValue {
public ByValue() {
super();
}
public ByValue(OvrVector2f v) {
super(v.x, v.y);
}
};
}