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.NativeResourceDefines 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 thatTypeisLayerType_Disabled.Member documentation
Type– described byovrLayerType. One of:LayerType_DisabledLayerType_EyeFovLayerType_EyeFovDepthLayerType_QuadLayerType_EyeMatrixLayerType_EyeFovMultiresLayerType_CylinderLayerType_CubeFlags– described byovrLayerFlags
Layout
struct ovrLayerHeader { ovrLayerType Type; unsigned int Flags; char[128]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRLayerHeader.BufferAn array ofOVRLayerHeaderstructs.
-
Constructor Summary
Constructors Constructor 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 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, org.lwjgl.system.MemoryStack stack)Returns a newOVRLayerHeader.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRLayerHeadercallocStack(org.lwjgl.system.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.static OVRLayerHeader.Buffercreate(long address, int capacity)Create aOVRLayerHeader.Bufferinstance at the specified memory.static OVRLayerHeadercreateSafe(long address)static OVRLayerHeader.BuffercreateSafe(long address, int capacity)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, org.lwjgl.system.MemoryStack stack)Returns a newOVRLayerHeader.Bufferinstance allocated on the specifiedMemoryStack.static OVRLayerHeadermallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRLayerHeaderinstance allocated on the specifiedMemoryStack.static intnFlags(long struct)Unsafe version ofFlags().static voidnFlags(long struct, int value)Unsafe version ofFlags.static intnType(long struct)Unsafe version ofType().static voidnType(long struct, int value)Unsafe version ofType.OVRLayerHeaderset(int Type, int Flags)Initializes this struct with the specified values.OVRLayerHeaderset(OVRLayerHeader src)Copies the specified struct data to this struct.intsizeof()intType()Returns the value of theTypefield.OVRLayerHeaderType(int value)Sets the specified value to theTypefield.
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.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.
-
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.
-
createSafe
@Nullable public static OVRLayerHeader createSafe(long address)
-
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
-
createSafe
@Nullable public static OVRLayerHeader.Buffer createSafe(long address, int 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(org.lwjgl.system.MemoryStack stack)
Returns a newOVRLayerHeaderinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRLayerHeader callocStack(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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
-
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.
-
-