
com.jogamp.oculusvr.ovrPoseStatef 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 ovrPoseStatef {
StructAccessor accessor;
private static final int mdIdx = MachineDescriptionRuntime.getStatic().ordinal();
private static final int[] ovrPoseStatef_size = new int[] { 88 /* ARMle_EABI */, 84 /* X86_32_UNIX */, 88 /* X86_64_UNIX */, 84 /* X86_32_MACOS */, 88 /* X86_32_WINDOWS */, 88 /* X86_64_WINDOWS */, 88 /* SPARC_32_SUNOS */ };
private static final int[] Pose_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[] Pose_size = new int[] { 28 /* ARMle_EABI */, 28 /* X86_32_UNIX */, 28 /* X86_64_UNIX */, 28 /* X86_32_MACOS */, 28 /* X86_32_WINDOWS */, 28 /* X86_64_WINDOWS */, 28 /* SPARC_32_SUNOS */ };
private static final int[] AngularVelocity_offset = new int[] { 28 /* ARMle_EABI */, 28 /* X86_32_UNIX */, 28 /* X86_64_UNIX */, 28 /* X86_32_MACOS */, 28 /* X86_32_WINDOWS */, 28 /* X86_64_WINDOWS */, 28 /* SPARC_32_SUNOS */ };
private static final int[] AngularVelocity_size = new int[] { 12 /* ARMle_EABI */, 12 /* X86_32_UNIX */, 12 /* X86_64_UNIX */, 12 /* X86_32_MACOS */, 12 /* X86_32_WINDOWS */, 12 /* X86_64_WINDOWS */, 12 /* SPARC_32_SUNOS */ };
private static final int[] LinearVelocity_offset = new int[] { 40 /* ARMle_EABI */, 40 /* X86_32_UNIX */, 40 /* X86_64_UNIX */, 40 /* X86_32_MACOS */, 40 /* X86_32_WINDOWS */, 40 /* X86_64_WINDOWS */, 40 /* SPARC_32_SUNOS */ };
private static final int[] LinearVelocity_size = new int[] { 12 /* ARMle_EABI */, 12 /* X86_32_UNIX */, 12 /* X86_64_UNIX */, 12 /* X86_32_MACOS */, 12 /* X86_32_WINDOWS */, 12 /* X86_64_WINDOWS */, 12 /* SPARC_32_SUNOS */ };
private static final int[] AngularAcceleration_offset = new int[] { 52 /* ARMle_EABI */, 52 /* X86_32_UNIX */, 52 /* X86_64_UNIX */, 52 /* X86_32_MACOS */, 52 /* X86_32_WINDOWS */, 52 /* X86_64_WINDOWS */, 52 /* SPARC_32_SUNOS */ };
private static final int[] AngularAcceleration_size = new int[] { 12 /* ARMle_EABI */, 12 /* X86_32_UNIX */, 12 /* X86_64_UNIX */, 12 /* X86_32_MACOS */, 12 /* X86_32_WINDOWS */, 12 /* X86_64_WINDOWS */, 12 /* SPARC_32_SUNOS */ };
private static final int[] LinearAcceleration_offset = new int[] { 64 /* ARMle_EABI */, 64 /* X86_32_UNIX */, 64 /* X86_64_UNIX */, 64 /* X86_32_MACOS */, 64 /* X86_32_WINDOWS */, 64 /* X86_64_WINDOWS */, 64 /* SPARC_32_SUNOS */ };
private static final int[] LinearAcceleration_size = new int[] { 12 /* ARMle_EABI */, 12 /* X86_32_UNIX */, 12 /* X86_64_UNIX */, 12 /* X86_32_MACOS */, 12 /* X86_32_WINDOWS */, 12 /* X86_64_WINDOWS */, 12 /* SPARC_32_SUNOS */ };
private static final int[] TimeInSeconds_offset = new int[] { 80 /* ARMle_EABI */, 76 /* X86_32_UNIX */, 80 /* X86_64_UNIX */, 76 /* X86_32_MACOS */, 80 /* X86_32_WINDOWS */, 80 /* X86_64_WINDOWS */, 80 /* SPARC_32_SUNOS */ };
//private static final int[] TimeInSeconds_size = new int[] { 8 /* ARMle_EABI */, 8 /* X86_32_UNIX */, 8 /* X86_64_UNIX */, 8 /* X86_32_MACOS */, 8 /* X86_32_WINDOWS */, 8 /* X86_64_WINDOWS */, 8 /* SPARC_32_SUNOS */ };
public static int size() {
return ovrPoseStatef_size[mdIdx];
}
public static ovrPoseStatef create() {
return create(Buffers.newDirectByteBuffer(size()));
}
public static ovrPoseStatef create(java.nio.ByteBuffer buf) {
return new ovrPoseStatef(buf);
}
ovrPoseStatef(java.nio.ByteBuffer buf) {
accessor = new StructAccessor(buf);
}
public java.nio.ByteBuffer getBuffer() {
return accessor.getBuffer();
}
/** Getter for native field: CType['ovrPosef' (typedef), size [fixed false, lnx64 28], [struct{2}]] */
public ovrPosef getPose() {
return ovrPosef.create( accessor.slice( Pose_offset[mdIdx], Pose_size[mdIdx] ) );
}
/** Getter for native field: CType['ovrVector3f' (typedef), size [fixed false, lnx64 12], [struct{3}]] */
public ovrVector3f getAngularVelocity() {
return ovrVector3f.create( accessor.slice( AngularVelocity_offset[mdIdx], AngularVelocity_size[mdIdx] ) );
}
/** Getter for native field: CType['ovrVector3f' (typedef), size [fixed false, lnx64 12], [struct{3}]] */
public ovrVector3f getLinearVelocity() {
return ovrVector3f.create( accessor.slice( LinearVelocity_offset[mdIdx], LinearVelocity_size[mdIdx] ) );
}
/** Getter for native field: CType['ovrVector3f' (typedef), size [fixed false, lnx64 12], [struct{3}]] */
public ovrVector3f getAngularAcceleration() {
return ovrVector3f.create( accessor.slice( AngularAcceleration_offset[mdIdx], AngularAcceleration_size[mdIdx] ) );
}
/** Getter for native field: CType['ovrVector3f' (typedef), size [fixed false, lnx64 12], [struct{3}]] */
public ovrVector3f getLinearAcceleration() {
return ovrVector3f.create( accessor.slice( LinearAcceleration_offset[mdIdx], LinearAcceleration_size[mdIdx] ) );
}
/** Setter for native field: CType['double', size [fixed true, lnx64 8], [double]] */
public ovrPoseStatef setTimeInSeconds(double val) {
accessor.setDoubleAt(TimeInSeconds_offset[mdIdx], val);
return this;
}
/** Getter for native field: CType['double', size [fixed true, lnx64 8], [double]] */
public double getTimeInSeconds() {
return accessor.getDoubleAt(TimeInSeconds_offset[mdIdx]);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy