
com.jogamp.oculusvr.ovrDistortionMesh Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jogl-all Show documentation
Show all versions of jogl-all Show documentation
Java™ Binding for the OpenGL® API
/* !---- DO NOT EDIT: This file autogenerated by com/jogamp/gluegen/JavaEmitter.java on Thu Aug 07 00:34:50 CEST 2014 ----! */ package com.jogamp.oculusvr; import java.nio.*; import com.jogamp.gluegen.runtime.*; import com.jogamp.common.os.*; import com.jogamp.common.nio.*; import jogamp.common.os.MachineDescriptionRuntime; import com.jogamp.oculusvr.*; import java.security.AccessController; import java.security.PrivilegedAction; public class ovrDistortionMesh { StructAccessor accessor; private static final int mdIdx = MachineDescriptionRuntime.getStatic().ordinal(); private static final int[] ovrDistortionMesh_size = new int[] { 16 /* ARMle_EABI */, 16 /* X86_32_UNIX */, 24 /* X86_64_UNIX */, 16 /* X86_32_MACOS */, 16 /* X86_32_WINDOWS */, 24 /* X86_64_WINDOWS */, 16 /* SPARC_32_SUNOS */ }; private static final int[] pVertexData_offset = new int[] { 0 /* ARMle_EABI */, 0 /* X86_32_UNIX */, 0 /* X86_64_UNIX */, 0 /* X86_32_MACOS */, 0 /* X86_32_WINDOWS */, 0 /* X86_64_WINDOWS */, 0 /* SPARC_32_SUNOS */ }; //private static final int[] pVertexData_size = new int[] { 4 /* ARMle_EABI */, 4 /* X86_32_UNIX */, 8 /* X86_64_UNIX */, 4 /* X86_32_MACOS */, 4 /* X86_32_WINDOWS */, 8 /* X86_64_WINDOWS */, 4 /* SPARC_32_SUNOS */ };// JType[ovrDistortionVertex / 'ovrDistortionVertex', is[compound, descriptor 'LovrDistortionVertex;' //private static final int[] pIndexData_offset = new int[] { 4 /* ARMle_EABI */, 4 /* X86_32_UNIX */, 8 /* X86_64_UNIX */, 4 /* X86_32_MACOS */, 4 /* X86_32_WINDOWS */, 8 /* X86_64_WINDOWS */, 4 /* SPARC_32_SUNOS */ }; //private static final int[] pIndexData_size = new int[] { 4 /* ARMle_EABI */, 4 /* X86_32_UNIX */, 8 /* X86_64_UNIX */, 4 /* X86_32_MACOS */, 4 /* X86_32_WINDOWS */, 8 /* X86_64_WINDOWS */, 4 /* SPARC_32_SUNOS */ };// JType[ANON / NIL, primitivePointerType = SHORT, is[C-Primitive-Pointer, descriptor 'ANON_NIO' private static final int[] VertexCount_offset = new int[] { 8 /* ARMle_EABI */, 8 /* X86_32_UNIX */, 16 /* X86_64_UNIX */, 8 /* X86_32_MACOS */, 8 /* X86_32_WINDOWS */, 16 /* X86_64_WINDOWS */, 8 /* SPARC_32_SUNOS */ }; //private static final int[] VertexCount_size = new int[] { 4 /* ARMle_EABI */, 4 /* X86_32_UNIX */, 4 /* X86_64_UNIX */, 4 /* X86_32_MACOS */, 4 /* X86_32_WINDOWS */, 4 /* X86_64_WINDOWS */, 4 /* SPARC_32_SUNOS */ }; private static final int[] IndexCount_offset = new int[] { 12 /* ARMle_EABI */, 12 /* X86_32_UNIX */, 20 /* X86_64_UNIX */, 12 /* X86_32_MACOS */, 12 /* X86_32_WINDOWS */, 20 /* X86_64_WINDOWS */, 12 /* SPARC_32_SUNOS */ }; //private static final int[] IndexCount_size = new int[] { 4 /* ARMle_EABI */, 4 /* X86_32_UNIX */, 4 /* X86_64_UNIX */, 4 /* X86_32_MACOS */, 4 /* X86_32_WINDOWS */, 4 /* X86_64_WINDOWS */, 4 /* SPARC_32_SUNOS */ }; public static int size() { return ovrDistortionMesh_size[mdIdx]; } public static ovrDistortionMesh create() { return create(Buffers.newDirectByteBuffer(size())); } public static ovrDistortionMesh create(java.nio.ByteBuffer buf) { return new ovrDistortionMesh(buf); } ovrDistortionMesh(java.nio.ByteBuffer buf) { accessor = new StructAccessor(buf); } public java.nio.ByteBuffer getBuffer() { return accessor.getBuffer(); } // SKIP setter for complex-pointer type in struct: ovrDistortionMesh.pVertexData: CType['ovrDistortionVertex *', size [fixed false, lnx64 8], [pointer*1]] /** Entry point to C language function:
, covering an array of lengthovrDistortionVertex * getPVertexData(ovrDistortionMesh * const this0, const int32_t elem_offset)
, covering an array of lengthgetVertexCount()
*/ private native ByteBuffer getPVertexData0(ByteBuffer jthis0, int elem_offset); /** Getter for native field: CType['ovrDistortionVertex *', size [fixed false, lnx64 8], [pointer*1]], with array length ofgetVertexCount()
*/ public ovrDistortionVertex[] getPVertexData(final int offset, ovrDistortionVertex result[]) { final int arrayLength = getVertexCount(); if( offset + result.length > arrayLength ) { throw new IndexOutOfBoundsException("offset "+offset+" + result.length "+result.length+" > array-length "+arrayLength); }; final ByteBuffer source = getBuffer(); for(int index=0; indexunsigned short * getPIndexData(ovrDistortionMesh * const this0, const int32_t arrayLength) getIndexCount()
*/ private native ByteBuffer getPIndexData0(ByteBuffer jthis0, int arrayLength); /** Getter for native field: CType['short *', size [fixed false, lnx64 8], [pointer*1]], with array length ofgetIndexCount()
*/ public ShortBuffer getPIndexData() { final int arrayLength = getIndexCount(); final ByteBuffer _res = getPIndexData0(getBuffer(), arrayLength); if (_res == null) return null; return Buffers.nativeOrder(_res).asShortBuffer(); } /** Setter for native field: CType['int', size [fixed false, lnx64 4], [int]] */ public ovrDistortionMesh setVertexCount(int val) { accessor.setIntAt(VertexCount_offset[mdIdx], val, MachineDescriptionRuntime.getStatic().md.intSizeInBytes()); return this; } /** Getter for native field: CType['int', size [fixed false, lnx64 4], [int]] */ public int getVertexCount() { return accessor.getIntAt(VertexCount_offset[mdIdx], MachineDescriptionRuntime.getStatic().md.intSizeInBytes()); } /** Setter for native field: CType['int', size [fixed false, lnx64 4], [int]] */ public ovrDistortionMesh setIndexCount(int val) { accessor.setIntAt(IndexCount_offset[mdIdx], val, MachineDescriptionRuntime.getStatic().md.intSizeInBytes()); return this; } /** Getter for native field: CType['int', size [fixed false, lnx64 4], [int]] */ public int getIndexCount() { return accessor.getIntAt(IndexCount_offset[mdIdx], MachineDescriptionRuntime.getStatic().md.intSizeInBytes()); } }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy