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

com.jme3.system.jopenvr.RenderModel_Vertex_t Maven / Gradle / Ivy

There is a newer version: 3.7.0-stable
Show newest version
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:1563
* 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 RenderModel_Vertex_t extends Structure { /** C type : HmdVector3_t */ public HmdVector3_t vPosition; /** C type : HmdVector3_t */ public HmdVector3_t vNormal; /** * float[2]
* C type : float[2] */ public float[] rfTextureCoord = new float[2]; public RenderModel_Vertex_t() { super(); } @Override protected List getFieldOrder() { return Arrays.asList("vPosition", "vNormal", "rfTextureCoord"); } /** * @param vPosition C type : HmdVector3_t
* @param vNormal C type : HmdVector3_t
* @param rfTextureCoord float[2]
* C type : float[2] */ public RenderModel_Vertex_t(HmdVector3_t vPosition, HmdVector3_t vNormal, float rfTextureCoord[]) { super(); this.vPosition = vPosition; this.vNormal = vNormal; if ((rfTextureCoord.length != this.rfTextureCoord.length)) throw new IllegalArgumentException("Wrong array size !"); this.rfTextureCoord = rfTextureCoord; } public RenderModel_Vertex_t(Pointer peer) { super(peer); } public static class ByReference extends RenderModel_Vertex_t implements Structure.ByReference { }; public static class ByValue extends RenderModel_Vertex_t implements Structure.ByValue { }; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy