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

com.jogamp.oculusvr.ovrTextureHeader 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 Fri Mar 27 16:58:04 CET 2015 ----! */


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.MachineDataInfoRuntime;

import com.jogamp.oculusvr.*;
import java.security.AccessController;
import java.security.PrivilegedAction;

public class ovrTextureHeader {

  StructAccessor accessor;

  private static final int mdIdx = MachineDataInfoRuntime.getStatic().ordinal();
  private final MachineDataInfo md;

  private static final int[] ovrTextureHeader_size = new int[] { 32 /* ARM_MIPS_32 */, 32 /* X86_32_UNIX */, 32 /* X86_32_MACOS */, 32 /* PPC_32_UNIX */, 32 /* SPARC_32_SUNOS */, 32 /* X86_32_WINDOWS */, 32 /* LP64_UNIX */, 32 /* X86_64_WINDOWS */  };
  private static final int[] API_offset = new int[] { 0 /* ARM_MIPS_32 */, 0 /* X86_32_UNIX */, 0 /* X86_32_MACOS */, 0 /* PPC_32_UNIX */, 0 /* SPARC_32_SUNOS */, 0 /* X86_32_WINDOWS */, 0 /* LP64_UNIX */, 0 /* X86_64_WINDOWS */ };
//private static final int[] API_size = new int[] { 4 /* ARM_MIPS_32 */, 4 /* X86_32_UNIX */, 4 /* X86_32_MACOS */, 4 /* PPC_32_UNIX */, 4 /* SPARC_32_SUNOS */, 4 /* X86_32_WINDOWS */, 4 /* LP64_UNIX */, 4 /* X86_64_WINDOWS */  };
  private static final int[] TextureSize_offset = new int[] { 4 /* ARM_MIPS_32 */, 4 /* X86_32_UNIX */, 4 /* X86_32_MACOS */, 4 /* PPC_32_UNIX */, 4 /* SPARC_32_SUNOS */, 4 /* X86_32_WINDOWS */, 4 /* LP64_UNIX */, 4 /* X86_64_WINDOWS */ };
  private static final int[] TextureSize_size = new int[] { 8 /* ARM_MIPS_32 */, 8 /* X86_32_UNIX */, 8 /* X86_32_MACOS */, 8 /* PPC_32_UNIX */, 8 /* SPARC_32_SUNOS */, 8 /* X86_32_WINDOWS */, 8 /* LP64_UNIX */, 8 /* X86_64_WINDOWS */  };
  private static final int[] RenderViewport_offset = new int[] { 12 /* ARM_MIPS_32 */, 12 /* X86_32_UNIX */, 12 /* X86_32_MACOS */, 12 /* PPC_32_UNIX */, 12 /* SPARC_32_SUNOS */, 12 /* X86_32_WINDOWS */, 12 /* LP64_UNIX */, 12 /* X86_64_WINDOWS */ };
  private static final int[] RenderViewport_size = new int[] { 16 /* ARM_MIPS_32 */, 16 /* X86_32_UNIX */, 16 /* X86_32_MACOS */, 16 /* PPC_32_UNIX */, 16 /* SPARC_32_SUNOS */, 16 /* X86_32_WINDOWS */, 16 /* LP64_UNIX */, 16 /* X86_64_WINDOWS */  };
  private static final int[] _PAD0__offset = new int[] { 28 /* ARM_MIPS_32 */, 28 /* X86_32_UNIX */, 28 /* X86_32_MACOS */, 28 /* PPC_32_UNIX */, 28 /* SPARC_32_SUNOS */, 28 /* X86_32_WINDOWS */, 28 /* LP64_UNIX */, 28 /* X86_64_WINDOWS */ };
//private static final int[] _PAD0__size = new int[] { 4 /* ARM_MIPS_32 */, 4 /* X86_32_UNIX */, 4 /* X86_32_MACOS */, 4 /* PPC_32_UNIX */, 4 /* SPARC_32_SUNOS */, 4 /* X86_32_WINDOWS */, 4 /* LP64_UNIX */, 4 /* X86_64_WINDOWS */  };

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

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

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

  ovrTextureHeader(java.nio.ByteBuffer buf) {
    md = MachineDataInfo.StaticConfig.values()[mdIdx].md;
    accessor = new StructAccessor(buf);
  }

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

  /** Setter for native field API: CType[(EnumType) typedef 'ovrRenderAPIType', size [fixed true, lnx64 4], [const[type , false], enum  [const ] {42: ovrHmd_None = 0, ovrHmd_DK1 = 3, ovrHmd_DKHD = 4, ovrHmd_DK2 = 6, ovrHmd_Other = 7, ovrHmdCap_Present = 1, ovrHmdCap_Available = 2, ovrHmdCap_Captured = 4, ovrHmdCap_ExtendDesktop = 8, ovrHmdCap_NoMirrorToWindow = 8192, ovrHmdCap_DisplayOff = 64, ovrHmdCap_LowPersistence = 128, ovrHmdCap_DynamicPrediction = 512, ovrHmdCap_DirectPentile = 1024, ovrHmdCap_NoVSync = 4096, ovrHmdCap_Writable_Mask = 13040, ovrHmdCap_Service_Mask = 8944, ovrTrackingCap_Orientation = 16, ovrTrackingCap_MagYawCorrection = 32, ovrTrackingCap_Position = 64, ovrTrackingCap_Idle = 256, ovrDistortionCap_Chromatic = 1, ovrDistortionCap_TimeWarp = 2, ovrDistortionCap_Vignette = 8, ovrDistortionCap_NoRestore = 16, ovrDistortionCap_FlipInput = 32, ovrDistortionCap_SRGB = 64, ovrDistortionCap_Overdrive = 128, ovrDistortionCap_HqDistortion = 256, ovrDistortionCap_LinuxDevFullscreen = 512, ovrDistortionCap_ComputeShader = 1024, ovrDistortionCap_ProfileNoTimewarpSpinWaits = 65536, ovrEye_Left = 0, ovrEye_Right = 1, ovrEye_Count = 2, ovrStatus_OrientationTracked = 1, ovrStatus_PositionTracked = 2, ovrStatus_CameraPoseTracked = 4, ovrStatus_PositionConnected = 32, ovrStatus_HmdConnected = 128, ovrRenderAPI_None = 0, ovrRenderAPI_Count = 1, }, int]] */
  public ovrTextureHeader setAPI(int val) {
    accessor.setIntAt(API_offset[mdIdx], val);
    return this;
  }

  /** Getter for native field API: CType[(EnumType) typedef 'ovrRenderAPIType', size [fixed true, lnx64 4], [const[type , false], enum  [const ] {42: ovrHmd_None = 0, ovrHmd_DK1 = 3, ovrHmd_DKHD = 4, ovrHmd_DK2 = 6, ovrHmd_Other = 7, ovrHmdCap_Present = 1, ovrHmdCap_Available = 2, ovrHmdCap_Captured = 4, ovrHmdCap_ExtendDesktop = 8, ovrHmdCap_NoMirrorToWindow = 8192, ovrHmdCap_DisplayOff = 64, ovrHmdCap_LowPersistence = 128, ovrHmdCap_DynamicPrediction = 512, ovrHmdCap_DirectPentile = 1024, ovrHmdCap_NoVSync = 4096, ovrHmdCap_Writable_Mask = 13040, ovrHmdCap_Service_Mask = 8944, ovrTrackingCap_Orientation = 16, ovrTrackingCap_MagYawCorrection = 32, ovrTrackingCap_Position = 64, ovrTrackingCap_Idle = 256, ovrDistortionCap_Chromatic = 1, ovrDistortionCap_TimeWarp = 2, ovrDistortionCap_Vignette = 8, ovrDistortionCap_NoRestore = 16, ovrDistortionCap_FlipInput = 32, ovrDistortionCap_SRGB = 64, ovrDistortionCap_Overdrive = 128, ovrDistortionCap_HqDistortion = 256, ovrDistortionCap_LinuxDevFullscreen = 512, ovrDistortionCap_ComputeShader = 1024, ovrDistortionCap_ProfileNoTimewarpSpinWaits = 65536, ovrEye_Left = 0, ovrEye_Right = 1, ovrEye_Count = 2, ovrStatus_OrientationTracked = 1, ovrStatus_PositionTracked = 2, ovrStatus_CameraPoseTracked = 4, ovrStatus_PositionConnected = 32, ovrStatus_HmdConnected = 128, ovrRenderAPI_None = 0, ovrRenderAPI_Count = 1, }, int]] */
  public int getAPI() {
    return accessor.getIntAt(API_offset[mdIdx]);
  }

  /** Getter for native field TextureSize: CType[(StructType) typedef 'ovrSizei', size [fixed false, lnx64 8], [const[false], struct{ovrSizei_: 2, }]] */
  public ovrSizei getTextureSize() {
    return ovrSizei.create( accessor.slice( TextureSize_offset[mdIdx], TextureSize_size[mdIdx] ) );
 }

  /** Getter for native field RenderViewport: CType[(StructType) typedef 'ovrRecti', size [fixed false, lnx64 16], [const[false], struct{ovrRecti_: 2, }]] */
  public ovrRecti getRenderViewport() {
    return ovrRecti.create( accessor.slice( RenderViewport_offset[mdIdx], RenderViewport_size[mdIdx] ) );
 }

  /** Setter for native field _PAD0_: CType[(IntType) typedef 'uint32_t', size [fixed true, lnx64 4], [const[false], int]] */
  public ovrTextureHeader set_PAD0_(int val) {
    accessor.setIntAt(_PAD0__offset[mdIdx], val);
    return this;
  }

  /** Getter for native field _PAD0_: CType[(IntType) typedef 'uint32_t', size [fixed true, lnx64 4], [const[false], int]] */
  public int get_PAD0_() {
    return accessor.getIntAt(_PAD0__offset[mdIdx]);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy