Package org.lwjgl.ovr
Class OVRTextureLayoutDescUnion
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRTextureLayoutDescUnion
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRTextureLayoutDescUnion extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceCombines texture layout descriptors.Layout
union ovrTextureLayoutDesc_Union {ovrTextureLayoutOctilinearOctilinear[ovrEye_Count]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRTextureLayoutDescUnion.BufferAn array ofOVRTextureLayoutDescUnionstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intOCTILINEARThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description OVRTextureLayoutDescUnion(java.nio.ByteBuffer container)Creates aOVRTextureLayoutDescUnioninstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRTextureLayoutDescUnioncalloc()Returns a newOVRTextureLayoutDescUnioninstance allocated withmemCalloc.static OVRTextureLayoutDescUnion.Buffercalloc(int capacity)Returns a newOVRTextureLayoutDescUnion.Bufferinstance allocated withmemCalloc.static OVRTextureLayoutDescUnioncallocStack()Returns a newOVRTextureLayoutDescUnioninstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRTextureLayoutDescUnion.BuffercallocStack(int capacity)Returns a newOVRTextureLayoutDescUnion.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRTextureLayoutDescUnion.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRTextureLayoutDescUnion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTextureLayoutDescUnioncallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRTextureLayoutDescUnioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTextureLayoutDescUnioncreate()Returns a newOVRTextureLayoutDescUnioninstance allocated withBufferUtils.static OVRTextureLayoutDescUnion.Buffercreate(int capacity)Returns a newOVRTextureLayoutDescUnion.Bufferinstance allocated withBufferUtils.static OVRTextureLayoutDescUnioncreate(long address)Returns a newOVRTextureLayoutDescUnioninstance for the specified memory address.static OVRTextureLayoutDescUnion.Buffercreate(long address, int capacity)Create aOVRTextureLayoutDescUnion.Bufferinstance at the specified memory.static OVRTextureLayoutDescUnioncreateSafe(long address)static OVRTextureLayoutDescUnion.BuffercreateSafe(long address, int capacity)static OVRTextureLayoutDescUnionmalloc()Returns a newOVRTextureLayoutDescUnioninstance allocated withmemAlloc.static OVRTextureLayoutDescUnion.Buffermalloc(int capacity)Returns a newOVRTextureLayoutDescUnion.Bufferinstance allocated withmemAlloc.static OVRTextureLayoutDescUnionmallocStack()Returns a newOVRTextureLayoutDescUnioninstance allocated on the thread-localMemoryStack.static OVRTextureLayoutDescUnion.BuffermallocStack(int capacity)Returns a newOVRTextureLayoutDescUnion.Bufferinstance allocated on the thread-localMemoryStack.static OVRTextureLayoutDescUnion.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRTextureLayoutDescUnion.Bufferinstance allocated on the specifiedMemoryStack.static OVRTextureLayoutDescUnionmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRTextureLayoutDescUnioninstance allocated on the specifiedMemoryStack.static OVRTextureLayoutOctilinear.BuffernOctilinear(long struct)Unsafe version ofOctilinear().static OVRTextureLayoutOctilinearnOctilinear(long struct, int index)Unsafe version ofOctilinear.static voidnOctilinear(long struct, int index, OVRTextureLayoutOctilinear value)Unsafe version ofOctilinear.static voidnOctilinear(long struct, OVRTextureLayoutOctilinear.Buffer value)Unsafe version ofOctilinear.OVRTextureLayoutOctilinear.BufferOctilinear()Returns aOVRTextureLayoutOctilinear.Buffer view of theOctilinearfield.OVRTextureLayoutOctilinearOctilinear(int index)Returns aOVRTextureLayoutOctilinearview of the struct at the specified index of theOctilinearfield.OVRTextureLayoutDescUnionOctilinear(int index, java.util.function.Consumer<OVRTextureLayoutOctilinear> consumer)Passes the element atindexof theOctilinearfield to the specifiedConsumer.OVRTextureLayoutDescUnionOctilinear(int index, OVRTextureLayoutOctilinear value)Copies the specifiedOVRTextureLayoutOctilinearat the specified index of theOctilinearfield.OVRTextureLayoutDescUnionOctilinear(java.util.function.Consumer<OVRTextureLayoutOctilinear.Buffer> consumer)Passes theOctilinearfield to the specifiedConsumer.OVRTextureLayoutDescUnionOctilinear(OVRTextureLayoutOctilinear.Buffer value)Copies the specifiedOVRTextureLayoutOctilinear.Bufferto theOctilinearfield.OVRTextureLayoutDescUnionset(OVRTextureLayoutDescUnion src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
OVRTextureLayoutDescUnion
public OVRTextureLayoutDescUnion(java.nio.ByteBuffer container)
Creates aOVRTextureLayoutDescUnioninstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
Octilinear
public OVRTextureLayoutOctilinear.Buffer Octilinear()
Returns aOVRTextureLayoutOctilinear.Buffer view of theOctilinearfield.
-
Octilinear
public OVRTextureLayoutOctilinear Octilinear(int index)
Returns aOVRTextureLayoutOctilinearview of the struct at the specified index of theOctilinearfield.
-
Octilinear
public OVRTextureLayoutDescUnion Octilinear(OVRTextureLayoutOctilinear.Buffer value)
Copies the specifiedOVRTextureLayoutOctilinear.Bufferto theOctilinearfield.
-
Octilinear
public OVRTextureLayoutDescUnion Octilinear(int index, OVRTextureLayoutOctilinear value)
Copies the specifiedOVRTextureLayoutOctilinearat the specified index of theOctilinearfield.
-
Octilinear
public OVRTextureLayoutDescUnion Octilinear(java.util.function.Consumer<OVRTextureLayoutOctilinear.Buffer> consumer)
Passes theOctilinearfield to the specifiedConsumer.
-
Octilinear
public OVRTextureLayoutDescUnion Octilinear(int index, java.util.function.Consumer<OVRTextureLayoutOctilinear> consumer)
Passes the element atindexof theOctilinearfield to the specifiedConsumer.
-
set
public OVRTextureLayoutDescUnion set(OVRTextureLayoutDescUnion src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static OVRTextureLayoutDescUnion malloc()
Returns a newOVRTextureLayoutDescUnioninstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRTextureLayoutDescUnion calloc()
Returns a newOVRTextureLayoutDescUnioninstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRTextureLayoutDescUnion create()
Returns a newOVRTextureLayoutDescUnioninstance allocated withBufferUtils.
-
create
public static OVRTextureLayoutDescUnion create(long address)
Returns a newOVRTextureLayoutDescUnioninstance for the specified memory address.
-
createSafe
@Nullable public static OVRTextureLayoutDescUnion createSafe(long address)
-
malloc
public static OVRTextureLayoutDescUnion.Buffer malloc(int capacity)
Returns a newOVRTextureLayoutDescUnion.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRTextureLayoutDescUnion.Buffer calloc(int capacity)
Returns a newOVRTextureLayoutDescUnion.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRTextureLayoutDescUnion.Buffer create(int capacity)
Returns a newOVRTextureLayoutDescUnion.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRTextureLayoutDescUnion.Buffer create(long address, int capacity)
Create aOVRTextureLayoutDescUnion.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static OVRTextureLayoutDescUnion.Buffer createSafe(long address, int capacity)
-
mallocStack
public static OVRTextureLayoutDescUnion mallocStack()
Returns a newOVRTextureLayoutDescUnioninstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRTextureLayoutDescUnion callocStack()
Returns a newOVRTextureLayoutDescUnioninstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRTextureLayoutDescUnion mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutDescUnioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRTextureLayoutDescUnion callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutDescUnioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static OVRTextureLayoutDescUnion.Buffer mallocStack(int capacity)
Returns a newOVRTextureLayoutDescUnion.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRTextureLayoutDescUnion.Buffer callocStack(int capacity)
Returns a newOVRTextureLayoutDescUnion.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRTextureLayoutDescUnion.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutDescUnion.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static OVRTextureLayoutDescUnion.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutDescUnion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nOctilinear
public static OVRTextureLayoutOctilinear.Buffer nOctilinear(long struct)
Unsafe version ofOctilinear().
-
nOctilinear
public static OVRTextureLayoutOctilinear nOctilinear(long struct, int index)
Unsafe version ofOctilinear.
-
nOctilinear
public static void nOctilinear(long struct, OVRTextureLayoutOctilinear.Buffer value)Unsafe version ofOctilinear.
-
nOctilinear
public static void nOctilinear(long struct, int index, OVRTextureLayoutOctilinear value)Unsafe version ofOctilinear.
-
-