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

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

There is a newer version: 2.3.2
Show newest version
/* !---- DO NOT EDIT: This file autogenerated by com/jogamp/gluegen/JavaEmitter.java on Mon Sep 08 08:44:12 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 ovrVector2i {

  StructAccessor accessor;

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

  private static final int[] ovrVector2i_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 */  };
  private static final int[] x_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[] x_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[] y_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[] y_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 ovrVector2i_size[mdIdx];
  }

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

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

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

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

  /** Setter for native field: CType['int', size [fixed false, lnx64 4], [int]] */
  public ovrVector2i setX(int val) {
    accessor.setIntAt(x_offset[mdIdx], val, MachineDescriptionRuntime.getStatic().md.intSizeInBytes());
    return this;
  }

  /** Getter for native field: CType['int', size [fixed false, lnx64 4], [int]] */
  public int getX() {
    return accessor.getIntAt(x_offset[mdIdx], MachineDescriptionRuntime.getStatic().md.intSizeInBytes());
  }

  /** Setter for native field: CType['int', size [fixed false, lnx64 4], [int]] */
  public ovrVector2i setY(int val) {
    accessor.setIntAt(y_offset[mdIdx], val, MachineDescriptionRuntime.getStatic().md.intSizeInBytes());
    return this;
  }

  /** Getter for native field: CType['int', size [fixed false, lnx64 4], [int]] */
  public int getY() {
    return accessor.getIntAt(y_offset[mdIdx], MachineDescriptionRuntime.getStatic().md.intSizeInBytes());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy