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
.ovrLayerHeader
is used as a base member in these larger structs. This struct cannot be used by itself except for the case thatType
isOVR.ovrLayerType_Disabled
.Member documentation
Type
– described byovrLayerType
. One of:LayerType_Disabled
LayerType_EyeFov
LayerType_EyeMatrix
LayerType_Quad
Flags
– described byovrLayerFlags
Layout
struct ovrLayerHeader { ovrLayerType Type; unsigned int Flags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
OVRLayerHeader.Buffer
An array ofOVRLayerHeader
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The 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 aOVRLayerHeader
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static OVRLayerHeader
calloc()
Returns a newOVRLayerHeader
instance allocated withmemCalloc
.static OVRLayerHeader.Buffer
calloc(int capacity)
Returns a newOVRLayerHeader.Buffer
instance allocated withmemCalloc
.static OVRLayerHeader
callocStack()
Returns a newOVRLayerHeader
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRLayerHeader.Buffer
callocStack(int capacity)
Returns a newOVRLayerHeader.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRLayerHeader.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newOVRLayerHeader.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRLayerHeader
callocStack(MemoryStack stack)
Returns a newOVRLayerHeader
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.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 ornull
if the address isNULL
.static OVRLayerHeader.Buffer
create(long address, int capacity)
Create aOVRLayerHeader.Buffer
instance at the specified memory.int
Flags()
Returns the value of theFlags
field.OVRLayerHeader
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
mallocStack()
Returns a newOVRLayerHeader
instance allocated on the thread-localMemoryStack
.static OVRLayerHeader.Buffer
mallocStack(int capacity)
Returns a newOVRLayerHeader.Buffer
instance allocated on the thread-localMemoryStack
.static OVRLayerHeader.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newOVRLayerHeader.Buffer
instance allocated on the specifiedMemoryStack
.static OVRLayerHeader
mallocStack(MemoryStack stack)
Returns a newOVRLayerHeader
instance allocated on the specifiedMemoryStack
.OVRLayerHeader
nset(long struct)
Unsafe version ofset
.OVRLayerHeader
set(int Type, int Flags)
Initializes this struct with the specified values.OVRLayerHeader
set(OVRLayerHeader src)
Copies the specified struct data to this struct.int
sizeof()
Returns thesizeof(struct)
.int
Type()
Returns the value of theType
field.OVRLayerHeader
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
-
-
-
-
Constructor Detail
-
OVRLayerHeader
public OVRLayerHeader(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
Description copied from class:Struct
Returns thesizeof(struct)
.
-
Type
public int Type()
Returns the value of theType
field.
-
Flags
public int Flags()
Returns the value of theFlags
field.
-
Type
public OVRLayerHeader Type(int value)
Sets the specified value to theType
field.
-
Flags
public OVRLayerHeader Flags(int value)
Sets the specified value to theFlags
field.
-
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 newOVRLayerHeader
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRLayerHeader calloc()
Returns a newOVRLayerHeader
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRLayerHeader create()
Returns a newOVRLayerHeader
instance allocated withBufferUtils
.
-
create
public static OVRLayerHeader create(long address)
Returns a newOVRLayerHeader
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static OVRLayerHeader.Buffer malloc(int capacity)
Returns a newOVRLayerHeader.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRLayerHeader.Buffer calloc(int capacity)
Returns a newOVRLayerHeader.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRLayerHeader.Buffer create(int capacity)
Returns a newOVRLayerHeader.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRLayerHeader.Buffer create(long address, int capacity)
Create aOVRLayerHeader.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static OVRLayerHeader mallocStack()
Returns a newOVRLayerHeader
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRLayerHeader callocStack()
Returns a newOVRLayerHeader
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRLayerHeader mallocStack(MemoryStack stack)
Returns a newOVRLayerHeader
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRLayerHeader callocStack(MemoryStack stack)
Returns a newOVRLayerHeader
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRLayerHeader.Buffer callocStack(int capacity)
Returns a newOVRLayerHeader.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static OVRLayerHeader.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newOVRLayerHeader.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-