
com.jogamp.oculusvr.ovrTexture 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 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 ovrTexture {
StructAccessor accessor;
private static final int mdIdx = MachineDescriptionRuntime.getStatic().ordinal();
private static final int[] ovrTexture_size = new int[] { 60 /* ARMle_EABI */, 60 /* X86_32_UNIX */, 96 /* X86_64_UNIX */, 60 /* X86_32_MACOS */, 60 /* X86_32_WINDOWS */, 96 /* X86_64_WINDOWS */, 60 /* SPARC_32_SUNOS */ };
private static final int[] Header_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[] Header_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 */ };
public static int size() {
return ovrTexture_size[mdIdx];
}
public static ovrTexture create() {
return create(Buffers.newDirectByteBuffer(size()));
}
public static ovrTexture create(java.nio.ByteBuffer buf) {
return new ovrTexture(buf);
}
ovrTexture(java.nio.ByteBuffer buf) {
accessor = new StructAccessor(buf);
}
public java.nio.ByteBuffer getBuffer() {
return accessor.getBuffer();
}
/** Getter for native field: CType['ovrTextureHeader' (typedef), size [fixed false, lnx64 28], [struct{3}]] */
public ovrTextureHeader getHeader() {
return ovrTextureHeader.create( accessor.slice( Header_offset[mdIdx], Header_size[mdIdx] ) );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy