Package org.lwjgl.ovr
Class OVRLayerHeader
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRLayerHeader>
org.lwjgl.ovr.OVRLayerHeader
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRLayerHeader
extends org.lwjgl.system.Struct<OVRLayerHeader>
implements org.lwjgl.system.NativeResource
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRLayerHeader(ByteBuffer container) Creates aOVRLayerHeaderinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRLayerHeadercalloc()Returns a newOVRLayerHeaderinstance allocated withmemCalloc.static OVRLayerHeader.Buffercalloc(int capacity) Returns a newOVRLayerHeader.Bufferinstance allocated withmemCalloc.static OVRLayerHeader.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRLayerHeader.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRLayerHeadercalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRLayerHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRLayerHeaderDeprecated.static OVRLayerHeader.BuffercallocStack(int capacity) Deprecated.static OVRLayerHeader.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRLayerHeadercallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.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 @Nullable OVRLayerHeadercreateSafe(long address) static @Nullable OVRLayerHeader.BuffercreateSafe(long address, int capacity) intFlags()described byovrLayerFlagsFlags(int value) Sets the specified value to theFlags()field.static OVRLayerHeadermalloc()Returns a newOVRLayerHeaderinstance allocated withmemAlloc.static OVRLayerHeader.Buffermalloc(int capacity) Returns a newOVRLayerHeader.Bufferinstance allocated withmemAlloc.static OVRLayerHeader.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRLayerHeader.Bufferinstance allocated on the specifiedMemoryStack.static OVRLayerHeadermalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRLayerHeaderinstance allocated on the specifiedMemoryStack.static OVRLayerHeaderDeprecated.static OVRLayerHeader.BuffermallocStack(int capacity) Deprecated.static OVRLayerHeader.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRLayerHeadermallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.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.set(int Type, int Flags) Initializes this struct with the specified values.set(OVRLayerHeader src) Copies the specified struct data to this struct.intsizeof()intType()described byovrLayerType.Type(int value) Sets the specified value to theType()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<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 newOVRLayerHeaderinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRLayerHeaderinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRLayerHeaderinstance allocated withBufferUtils. -
create
Returns a newOVRLayerHeaderinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRLayerHeader.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRLayerHeader.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRLayerHeader.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRLayerHeader.Bufferinstance 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 public static OVRLayerHeader.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static OVRLayerHeader.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRLayerHeaderinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRLayerHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRLayerHeader.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRLayerHeader.Bufferinstance allocated on the specifiedMemoryStackand 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.
-