Package org.lwjgl.ovr
Class OVRLayerHeader
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRLayerHeader
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class OVRLayerHeader extends Struct
Defines properties shared by all ovrLayer structs, such asOVRLayerEyeFov.ovrLayerHeaderis used as a base member in these larger structs. This struct cannot be used by itself except for the case thatTypeisOVR.ovrLayerType_Disabled.Member documentation
Type– described byovrLayerType. One of:LayerType_DisabledLayerType_EyeFovLayerType_EyeMatrixLayerType_QuadFlags– described byovrLayerFlags
Layout
struct ovrLayerHeader { ovrLayerType Type; unsigned int Flags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classOVRLayerHeader.BufferAn array ofOVRLayerHeaderstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description OVRLayerHeader(java.nio.ByteBuffer container)Creates aOVRLayerHeaderinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static OVRLayerHeadercalloc()Returns a newOVRLayerHeaderinstance allocated withmemCalloc.static OVRLayerHeader.Buffercalloc(int capacity)Returns a newOVRLayerHeader.Bufferinstance allocated withmemCalloc.static OVRLayerHeadercallocStack()Returns a newOVRLayerHeaderinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRLayerHeader.BuffercallocStack(int capacity)Returns a newOVRLayerHeader.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRLayerHeader.BuffercallocStack(int capacity, MemoryStack stack)Returns a newOVRLayerHeader.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRLayerHeadercallocStack(MemoryStack stack)Returns a newOVRLayerHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRLayerHeadercreate()Returns a newOVRLayerHeaderinstance allocated withBufferUtils.static OVRLayerHeader.Buffercreate(int capacity)Returns a newOVRLayerHeader.Bufferinstance allocated withBufferUtils.static OVRLayerHeadercreate(long address)Returns a newOVRLayerHeaderinstance for the specified memory address ornullif the address isNULL.static OVRLayerHeader.Buffercreate(long address, int capacity)Create aOVRLayerHeader.Bufferinstance at the specified memory.intFlags()Returns the value of theFlagsfield.OVRLayerHeaderFlags(int value)Sets the specified value to theFlagsfield.static OVRLayerHeadermalloc()Returns a newOVRLayerHeaderinstance allocated withmemAlloc.static OVRLayerHeader.Buffermalloc(int capacity)Returns a newOVRLayerHeader.Bufferinstance allocated withmemAlloc.static OVRLayerHeadermallocStack()Returns a newOVRLayerHeaderinstance allocated on the thread-localMemoryStack.static OVRLayerHeader.BuffermallocStack(int capacity)Returns a newOVRLayerHeader.Bufferinstance allocated on the thread-localMemoryStack.static OVRLayerHeader.BuffermallocStack(int capacity, MemoryStack stack)Returns a newOVRLayerHeader.Bufferinstance allocated on the specifiedMemoryStack.static OVRLayerHeadermallocStack(MemoryStack stack)Returns a newOVRLayerHeaderinstance allocated on the specifiedMemoryStack.OVRLayerHeadernset(long struct)Unsafe version ofset.OVRLayerHeaderset(int Type, int Flags)Initializes this struct with the specified values.OVRLayerHeaderset(OVRLayerHeader src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intType()Returns the value of theTypefield.OVRLayerHeaderType(int value)Sets the specified value to theTypefield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
OVRLayerHeader
public OVRLayerHeader(java.nio.ByteBuffer container)
Creates aOVRLayerHeaderinstance 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()
Description copied from class:StructReturns thesizeof(struct).
-
Type
public int Type()
Returns the value of theTypefield.
-
Flags
public int Flags()
Returns the value of theFlagsfield.
-
Type
public OVRLayerHeader Type(int value)
Sets the specified value to theTypefield.
-
Flags
public OVRLayerHeader Flags(int value)
Sets the specified value to theFlagsfield.
-
set
public OVRLayerHeader set(int Type, int Flags)
Initializes this struct with the specified values.
-
nset
public OVRLayerHeader nset(long struct)
Unsafe version ofset.
-
set
public OVRLayerHeader set(OVRLayerHeader src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static OVRLayerHeader malloc()
Returns a newOVRLayerHeaderinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRLayerHeader calloc()
Returns a newOVRLayerHeaderinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRLayerHeader create()
Returns a newOVRLayerHeaderinstance allocated withBufferUtils.
-
create
public static OVRLayerHeader create(long address)
Returns a newOVRLayerHeaderinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static OVRLayerHeader.Buffer malloc(int capacity)
Returns a newOVRLayerHeader.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRLayerHeader.Buffer calloc(int capacity)
Returns a newOVRLayerHeader.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRLayerHeader.Buffer create(int capacity)
Returns a newOVRLayerHeader.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRLayerHeader.Buffer create(long address, int capacity)
Create aOVRLayerHeader.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static OVRLayerHeader mallocStack()
Returns a newOVRLayerHeaderinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRLayerHeader callocStack()
Returns a newOVRLayerHeaderinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRLayerHeader mallocStack(MemoryStack stack)
Returns a newOVRLayerHeaderinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRLayerHeader callocStack(MemoryStack stack)
Returns a newOVRLayerHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static OVRLayerHeader.Buffer mallocStack(int capacity)
Returns a newOVRLayerHeader.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRLayerHeader.Buffer callocStack(int capacity)
Returns a newOVRLayerHeader.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRLayerHeader.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newOVRLayerHeader.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static OVRLayerHeader.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newOVRLayerHeader.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-