com.jme3.system.jopenvr.DistortionCoordinates_t Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jme3-vr Show documentation
Show all versions of jme3-vr Show documentation
jMonkeyEngine is a 3-D game engine for adventurous Java developers
package com.jme3.system.jopenvr;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.util.Arrays;
import java.util.List;
/**
* native declaration : headers\openvr_capi.h:1237
* 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 DistortionCoordinates_t extends Structure {
/**
* float[2]
* C type : float[2]
*/
public float[] rfRed = new float[2];
/**
* float[2]
* C type : float[2]
*/
public float[] rfGreen = new float[2];
/**
* float[2]
* C type : float[2]
*/
public float[] rfBlue = new float[2];
public DistortionCoordinates_t() {
super();
}
@Override
protected List getFieldOrder() {
return Arrays.asList("rfRed", "rfGreen", "rfBlue");
}
/**
* @param rfRed float[2]
* C type : float[2]
* @param rfGreen float[2]
* C type : float[2]
* @param rfBlue float[2]
* C type : float[2]
*/
public DistortionCoordinates_t(float rfRed[], float rfGreen[], float rfBlue[]) {
super();
if ((rfRed.length != this.rfRed.length))
throw new IllegalArgumentException("Wrong array size !");
this.rfRed = rfRed;
if ((rfGreen.length != this.rfGreen.length))
throw new IllegalArgumentException("Wrong array size !");
this.rfGreen = rfGreen;
if ((rfBlue.length != this.rfBlue.length))
throw new IllegalArgumentException("Wrong array size !");
this.rfBlue = rfBlue;
}
public DistortionCoordinates_t(Pointer peer) {
super(peer);
}
public static class ByReference extends DistortionCoordinates_t implements Structure.ByReference {
};
public static class ByValue extends DistortionCoordinates_t implements Structure.ByValue {
};
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy