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

com.jogamp.oculusvr.ovrPosef Maven / Gradle / Ivy

/* !---- 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 ovrPosef {

  StructAccessor accessor;

  private static final int mdIdx = MachineDescriptionRuntime.getStatic().ordinal();

  private static final int[] ovrPosef_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[] Orientation_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[] Orientation_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[] Position_offset = 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[] Position_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 */  };

  public static int size() {
    return ovrPosef_size[mdIdx];
  }

  public static ovrPosef create() {
    return create(Buffers.newDirectByteBuffer(size()));
  }

  public static ovrPosef create(java.nio.ByteBuffer buf) {
      return new ovrPosef(buf);
  }

  ovrPosef(java.nio.ByteBuffer buf) {
    accessor = new StructAccessor(buf);
  }

  public java.nio.ByteBuffer getBuffer() {
    return accessor.getBuffer();
  }

  /** Getter for native field: CType['ovrQuatf' (typedef), size [fixed false, lnx64 16], [struct{4}]] */
  public ovrQuatf getOrientation() {
    return ovrQuatf.create( accessor.slice( Orientation_offset[mdIdx], Orientation_size[mdIdx] ) );
 }

  /** Getter for native field: CType['ovrVector3f' (typedef), size [fixed false, lnx64 12], [struct{3}]] */
  public ovrVector3f getPosition() {
    return ovrVector3f.create( accessor.slice( Position_offset[mdIdx], Position_size[mdIdx] ) );
 }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy