Package org.lwjgl.ovr
Class OVRLayerHeader
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Defines properties shared by all ovrLayer structs, such as
OVRLayerEyeFov
.
ovrLayerHeader
is used as a base member in these larger structs. This struct cannot be used by itself except for the case that Type
is
LayerType_Disabled
.
Layout
struct ovrLayerHeader {
ovrLayerType Type()
;
unsigned int Flags()
;
char[128];
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionOVRLayerHeader
(ByteBuffer container) Creates aOVRLayerHeader
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRLayerHeader
calloc()
Returns a newOVRLayerHeader
instance allocated withmemCalloc
.static OVRLayerHeader.Buffer
calloc
(int capacity) Returns a newOVRLayerHeader.Buffer
instance allocated withmemCalloc
.static OVRLayerHeader.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newOVRLayerHeader.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRLayerHeader
calloc
(MemoryStack stack) Returns a newOVRLayerHeader
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRLayerHeader
Deprecated.static OVRLayerHeader.Buffer
callocStack
(int capacity) Deprecated.static OVRLayerHeader.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static OVRLayerHeader
callocStack
(MemoryStack stack) Deprecated.static OVRLayerHeader
create()
Returns a newOVRLayerHeader
instance allocated withBufferUtils
.static OVRLayerHeader.Buffer
create
(int capacity) Returns a newOVRLayerHeader.Buffer
instance allocated withBufferUtils
.static OVRLayerHeader
create
(long address) Returns a newOVRLayerHeader
instance for the specified memory address.static OVRLayerHeader.Buffer
create
(long address, int capacity) Create aOVRLayerHeader.Buffer
instance at the specified memory.static OVRLayerHeader
createSafe
(long address) static OVRLayerHeader.Buffer
createSafe
(long address, int capacity) int
Flags()
described byovrLayerFlags
Flags
(int value) Sets the specified value to theFlags()
field.static OVRLayerHeader
malloc()
Returns a newOVRLayerHeader
instance allocated withmemAlloc
.static OVRLayerHeader.Buffer
malloc
(int capacity) Returns a newOVRLayerHeader.Buffer
instance allocated withmemAlloc
.static OVRLayerHeader.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newOVRLayerHeader.Buffer
instance allocated on the specifiedMemoryStack
.static OVRLayerHeader
malloc
(MemoryStack stack) Returns a newOVRLayerHeader
instance allocated on the specifiedMemoryStack
.static OVRLayerHeader
Deprecated.static OVRLayerHeader.Buffer
mallocStack
(int capacity) Deprecated.static OVRLayerHeader.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static OVRLayerHeader
mallocStack
(MemoryStack stack) Deprecated.static int
nFlags
(long struct) Unsafe version ofFlags()
.static void
nFlags
(long struct, int value) Unsafe version ofFlags
.static int
nType
(long struct) Unsafe version ofType()
.static void
nType
(long struct, int value) Unsafe version ofType
.set
(int Type, int Flags) Initializes this struct with the specified values.set
(OVRLayerHeader src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
Type()
described byovrLayerType
.Type
(int value) Sets the specified value to theType()
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets.
-
-
Constructor Details
-
OVRLayerHeader
Creates aOVRLayerHeader
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<OVRLayerHeader>
-
Type
public int Type() -
Flags
public int Flags()described byovrLayerFlags
-
Type
Sets the specified value to theType()
field. -
Flags
Sets the specified value to theFlags()
field. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newOVRLayerHeader
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newOVRLayerHeader
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newOVRLayerHeader
instance allocated withBufferUtils
. -
create
Returns a newOVRLayerHeader
instance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRLayerHeader.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newOVRLayerHeader.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newOVRLayerHeader.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aOVRLayerHeader.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newOVRLayerHeader
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newOVRLayerHeader
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newOVRLayerHeader.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newOVRLayerHeader.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nType
public static int nType(long struct) Unsafe version ofType()
. -
nFlags
public static int nFlags(long struct) Unsafe version ofFlags()
. -
nType
public static void nType(long struct, int value) Unsafe version ofType
. -
nFlags
public static void nFlags(long struct, int value) Unsafe version ofFlags
.
-