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.NativeResource
Combines texture layout descriptors.Layout
union ovrTextureLayoutDesc_Union {
ovrTextureLayoutOctilinear
Octilinear[ovrEye_Count]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OVRTextureLayoutDescUnion.Buffer
An array ofOVRTextureLayoutDescUnion
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
OCTILINEAR
The struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description OVRTextureLayoutDescUnion(java.nio.ByteBuffer container)
Creates aOVRTextureLayoutDescUnion
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRTextureLayoutDescUnion
calloc()
Returns a newOVRTextureLayoutDescUnion
instance allocated withmemCalloc
.static OVRTextureLayoutDescUnion.Buffer
calloc(int capacity)
Returns a newOVRTextureLayoutDescUnion.Buffer
instance allocated withmemCalloc
.static OVRTextureLayoutDescUnion
callocStack()
Returns a newOVRTextureLayoutDescUnion
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRTextureLayoutDescUnion.Buffer
callocStack(int capacity)
Returns a newOVRTextureLayoutDescUnion.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRTextureLayoutDescUnion.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutDescUnion.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRTextureLayoutDescUnion
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutDescUnion
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRTextureLayoutDescUnion
create()
Returns a newOVRTextureLayoutDescUnion
instance allocated withBufferUtils
.static OVRTextureLayoutDescUnion.Buffer
create(int capacity)
Returns a newOVRTextureLayoutDescUnion.Buffer
instance allocated withBufferUtils
.static OVRTextureLayoutDescUnion
create(long address)
Returns a newOVRTextureLayoutDescUnion
instance for the specified memory address.static OVRTextureLayoutDescUnion.Buffer
create(long address, int capacity)
Create aOVRTextureLayoutDescUnion.Buffer
instance at the specified memory.static OVRTextureLayoutDescUnion
createSafe(long address)
static OVRTextureLayoutDescUnion.Buffer
createSafe(long address, int capacity)
static OVRTextureLayoutDescUnion
malloc()
Returns a newOVRTextureLayoutDescUnion
instance allocated withmemAlloc
.static OVRTextureLayoutDescUnion.Buffer
malloc(int capacity)
Returns a newOVRTextureLayoutDescUnion.Buffer
instance allocated withmemAlloc
.static OVRTextureLayoutDescUnion
mallocStack()
Returns a newOVRTextureLayoutDescUnion
instance allocated on the thread-localMemoryStack
.static OVRTextureLayoutDescUnion.Buffer
mallocStack(int capacity)
Returns a newOVRTextureLayoutDescUnion.Buffer
instance allocated on the thread-localMemoryStack
.static OVRTextureLayoutDescUnion.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutDescUnion.Buffer
instance allocated on the specifiedMemoryStack
.static OVRTextureLayoutDescUnion
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutDescUnion
instance allocated on the specifiedMemoryStack
.static OVRTextureLayoutOctilinear.Buffer
nOctilinear(long struct)
Unsafe version ofOctilinear()
.static OVRTextureLayoutOctilinear
nOctilinear(long struct, int index)
Unsafe version ofOctilinear
.static void
nOctilinear(long struct, int index, OVRTextureLayoutOctilinear value)
Unsafe version ofOctilinear
.static void
nOctilinear(long struct, OVRTextureLayoutOctilinear.Buffer value)
Unsafe version ofOctilinear
.OVRTextureLayoutOctilinear.Buffer
Octilinear()
Returns aOVRTextureLayoutOctilinear
.Buffer view of theOctilinear
field.OVRTextureLayoutOctilinear
Octilinear(int index)
Returns aOVRTextureLayoutOctilinear
view of the struct at the specified index of theOctilinear
field.OVRTextureLayoutDescUnion
Octilinear(int index, java.util.function.Consumer<OVRTextureLayoutOctilinear> consumer)
Passes the element atindex
of theOctilinear
field to the specifiedConsumer
.OVRTextureLayoutDescUnion
Octilinear(int index, OVRTextureLayoutOctilinear value)
Copies the specifiedOVRTextureLayoutOctilinear
at the specified index of theOctilinear
field.OVRTextureLayoutDescUnion
Octilinear(java.util.function.Consumer<OVRTextureLayoutOctilinear.Buffer> consumer)
Passes theOctilinear
field to the specifiedConsumer
.OVRTextureLayoutDescUnion
Octilinear(OVRTextureLayoutOctilinear.Buffer value)
Copies the specifiedOVRTextureLayoutOctilinear.Buffer
to theOctilinear
field.OVRTextureLayoutDescUnion
set(OVRTextureLayoutDescUnion src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
OVRTextureLayoutDescUnion
public OVRTextureLayoutDescUnion(java.nio.ByteBuffer container)
Creates aOVRTextureLayoutDescUnion
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
Octilinear
public OVRTextureLayoutOctilinear.Buffer Octilinear()
Returns aOVRTextureLayoutOctilinear
.Buffer view of theOctilinear
field.
-
Octilinear
public OVRTextureLayoutOctilinear Octilinear(int index)
Returns aOVRTextureLayoutOctilinear
view of the struct at the specified index of theOctilinear
field.
-
Octilinear
public OVRTextureLayoutDescUnion Octilinear(OVRTextureLayoutOctilinear.Buffer value)
Copies the specifiedOVRTextureLayoutOctilinear.Buffer
to theOctilinear
field.
-
Octilinear
public OVRTextureLayoutDescUnion Octilinear(int index, OVRTextureLayoutOctilinear value)
Copies the specifiedOVRTextureLayoutOctilinear
at the specified index of theOctilinear
field.
-
Octilinear
public OVRTextureLayoutDescUnion Octilinear(java.util.function.Consumer<OVRTextureLayoutOctilinear.Buffer> consumer)
Passes theOctilinear
field to the specifiedConsumer
.
-
Octilinear
public OVRTextureLayoutDescUnion Octilinear(int index, java.util.function.Consumer<OVRTextureLayoutOctilinear> consumer)
Passes the element atindex
of theOctilinear
field 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 newOVRTextureLayoutDescUnion
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRTextureLayoutDescUnion calloc()
Returns a newOVRTextureLayoutDescUnion
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRTextureLayoutDescUnion create()
Returns a newOVRTextureLayoutDescUnion
instance allocated withBufferUtils
.
-
create
public static OVRTextureLayoutDescUnion create(long address)
Returns a newOVRTextureLayoutDescUnion
instance for the specified memory address.
-
createSafe
@Nullable public static OVRTextureLayoutDescUnion createSafe(long address)
-
malloc
public static OVRTextureLayoutDescUnion.Buffer malloc(int capacity)
Returns a newOVRTextureLayoutDescUnion.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRTextureLayoutDescUnion.Buffer calloc(int capacity)
Returns a newOVRTextureLayoutDescUnion.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRTextureLayoutDescUnion.Buffer create(int capacity)
Returns a newOVRTextureLayoutDescUnion.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRTextureLayoutDescUnion.Buffer create(long address, int capacity)
Create aOVRTextureLayoutDescUnion.Buffer
instance 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 newOVRTextureLayoutDescUnion
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRTextureLayoutDescUnion callocStack()
Returns a newOVRTextureLayoutDescUnion
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRTextureLayoutDescUnion mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutDescUnion
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRTextureLayoutDescUnion callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutDescUnion
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRTextureLayoutDescUnion.Buffer callocStack(int capacity)
Returns a newOVRTextureLayoutDescUnion.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-