com.jogamp.oculusvr.ovrFovPort 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 Fri Oct 10 16:21: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 ovrFovPort {
StructAccessor accessor;
private static final int mdIdx = MachineDescriptionRuntime.getStatic().ordinal();
private static final int[] ovrFovPort_size = new int[] { 16 /* ARMle_EABI */, 16 /* X86_32_UNIX */, 16 /* X86_64_UNIX */, 16 /* X86_32_MACOS */, 16 /* X86_32_WINDOWS */, 16 /* X86_64_WINDOWS */, 16 /* SPARC_32_SUNOS */ };
private static final int[] UpTan_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[] UpTan_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[] DownTan_offset = 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[] DownTan_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[] LeftTan_offset = 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 */ };
//private static final int[] LeftTan_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[] RightTan_offset = 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[] RightTan_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 ovrFovPort_size[mdIdx];
}
public static ovrFovPort create() {
return create(Buffers.newDirectByteBuffer(size()));
}
public static ovrFovPort create(java.nio.ByteBuffer buf) {
return new ovrFovPort(buf);
}
ovrFovPort(java.nio.ByteBuffer buf) {
accessor = new StructAccessor(buf);
}
public java.nio.ByteBuffer getBuffer() {
return accessor.getBuffer();
}
/** Setter for native field: CType['float', size [fixed true, lnx64 4], [float]] */
public ovrFovPort setUpTan(float val) {
accessor.setFloatAt(UpTan_offset[mdIdx], val);
return this;
}
/** Getter for native field: CType['float', size [fixed true, lnx64 4], [float]] */
public float getUpTan() {
return accessor.getFloatAt(UpTan_offset[mdIdx]);
}
/** Setter for native field: CType['float', size [fixed true, lnx64 4], [float]] */
public ovrFovPort setDownTan(float val) {
accessor.setFloatAt(DownTan_offset[mdIdx], val);
return this;
}
/** Getter for native field: CType['float', size [fixed true, lnx64 4], [float]] */
public float getDownTan() {
return accessor.getFloatAt(DownTan_offset[mdIdx]);
}
/** Setter for native field: CType['float', size [fixed true, lnx64 4], [float]] */
public ovrFovPort setLeftTan(float val) {
accessor.setFloatAt(LeftTan_offset[mdIdx], val);
return this;
}
/** Getter for native field: CType['float', size [fixed true, lnx64 4], [float]] */
public float getLeftTan() {
return accessor.getFloatAt(LeftTan_offset[mdIdx]);
}
/** Setter for native field: CType['float', size [fixed true, lnx64 4], [float]] */
public ovrFovPort setRightTan(float val) {
accessor.setFloatAt(RightTan_offset[mdIdx], val);
return this;
}
/** Getter for native field: CType['float', size [fixed true, lnx64 4], [float]] */
public float getRightTan() {
return accessor.getFloatAt(RightTan_offset[mdIdx]);
}
}