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
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class OVRLayerHeader extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
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
isLayerType_Disabled
.Member documentation
Type
– described byovrLayerType
. One of:LayerType_Disabled
LayerType_EyeFov
LayerType_EyeFovDepth
LayerType_Quad
LayerType_EyeMatrix
LayerType_EyeFovMultires
LayerType_Cylinder
LayerType_Cube
Flags
– described byovrLayerFlags
Layout
struct ovrLayerHeader { ovrLayerType Type; unsigned int Flags; char[128]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OVRLayerHeader.Buffer
An array ofOVRLayerHeader
structs.
-
Constructor Summary
Constructors Constructor 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 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, org.lwjgl.system.MemoryStack stack)
Returns a newOVRLayerHeader.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRLayerHeader
callocStack(org.lwjgl.system.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.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()
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, org.lwjgl.system.MemoryStack stack)
Returns a newOVRLayerHeader.Buffer
instance allocated on the specifiedMemoryStack
.static OVRLayerHeader
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRLayerHeader
instance allocated on the specifiedMemoryStack
.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
.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()
int
Type()
Returns the value of theType
field.OVRLayerHeader
Type(int value)
Sets the specified value to theType
field.
-
-
-
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()
- Specified by:
sizeof
in classorg.lwjgl.system.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.
-
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.
-
createSafe
@Nullable public static OVRLayerHeader createSafe(long address)
-
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
-
createSafe
@Nullable public static OVRLayerHeader.Buffer createSafe(long address, int 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(org.lwjgl.system.MemoryStack stack)
Returns a newOVRLayerHeader
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRLayerHeader callocStack(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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
-
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
.
-
-