com.jogamp.oculusvr.ovrTextureHeader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jogl Show documentation
Show all versions of jogl Show documentation
Java™ Binding for the OpenGL® API (Atomic Jar files)
/* !---- 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 ovrTextureHeader {
StructAccessor accessor;
private static final int mdIdx = MachineDescriptionRuntime.getStatic().ordinal();
private static final int[] ovrTextureHeader_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[] API_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[] API_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[] TextureSize_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[] TextureSize_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[] RenderViewport_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[] RenderViewport_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 */ };
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) {
accessor = new StructAccessor(buf);
}
public java.nio.ByteBuffer getBuffer() {
return accessor.getBuffer();
}
/** Setter for native field: CType['ovrRenderAPIType', size [fixed true, lnx64 4], [enum, int]] */
public ovrTextureHeader setAPI(int val) {
accessor.setIntAt(API_offset[mdIdx], val);
return this;
}
/** Getter for native field: CType['ovrRenderAPIType', size [fixed true, lnx64 4], [enum, int]] */
public int getAPI() {
return accessor.getIntAt(API_offset[mdIdx]);
}
/** Getter for native field: CType['ovrSizei' (typedef), size [fixed false, lnx64 8], [struct{2}]] */
public ovrSizei getTextureSize() {
return ovrSizei.create( accessor.slice( TextureSize_offset[mdIdx], TextureSize_size[mdIdx] ) );
}
/** Getter for native field: CType['ovrRecti' (typedef), size [fixed false, lnx64 16], [struct{2}]] */
public ovrRecti getRenderViewport() {
return ovrRecti.create( accessor.slice( RenderViewport_offset[mdIdx], RenderViewport_size[mdIdx] ) );
}
}