Package org.lwjgl.ovr
Class OVRGraphicsLuid
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Identifies a graphics device in a platform-specific way.
For Windows this is a LUID type.
Layout
struct ovrGraphicsLuid {
char Reserved()
[8];
}
-
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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionOVRGraphicsLuid
(ByteBuffer container) Creates aOVRGraphicsLuid
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRGraphicsLuid
calloc()
Returns a newOVRGraphicsLuid
instance allocated withmemCalloc
.static OVRGraphicsLuid.Buffer
calloc
(int capacity) Returns a newOVRGraphicsLuid.Buffer
instance allocated withmemCalloc
.static OVRGraphicsLuid.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newOVRGraphicsLuid.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRGraphicsLuid
calloc
(MemoryStack stack) Returns a newOVRGraphicsLuid
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRGraphicsLuid
Deprecated.static OVRGraphicsLuid.Buffer
callocStack
(int capacity) Deprecated.static OVRGraphicsLuid.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static OVRGraphicsLuid
callocStack
(MemoryStack stack) Deprecated.static OVRGraphicsLuid
create()
Returns a newOVRGraphicsLuid
instance allocated withBufferUtils
.static OVRGraphicsLuid.Buffer
create
(int capacity) Returns a newOVRGraphicsLuid.Buffer
instance allocated withBufferUtils
.static OVRGraphicsLuid
create
(long address) Returns a newOVRGraphicsLuid
instance for the specified memory address.static OVRGraphicsLuid.Buffer
create
(long address, int capacity) Create aOVRGraphicsLuid.Buffer
instance at the specified memory.static OVRGraphicsLuid
createSafe
(long address) static OVRGraphicsLuid.Buffer
createSafe
(long address, int capacity) static OVRGraphicsLuid
malloc()
Returns a newOVRGraphicsLuid
instance allocated withmemAlloc
.static OVRGraphicsLuid.Buffer
malloc
(int capacity) Returns a newOVRGraphicsLuid.Buffer
instance allocated withmemAlloc
.static OVRGraphicsLuid.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newOVRGraphicsLuid.Buffer
instance allocated on the specifiedMemoryStack
.static OVRGraphicsLuid
malloc
(MemoryStack stack) Returns a newOVRGraphicsLuid
instance allocated on the specifiedMemoryStack
.static OVRGraphicsLuid
Deprecated.static OVRGraphicsLuid.Buffer
mallocStack
(int capacity) Deprecated.static OVRGraphicsLuid.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static OVRGraphicsLuid
mallocStack
(MemoryStack stack) Deprecated.static ByteBuffer
nReserved
(long struct) Unsafe version ofReserved()
.static byte
nReserved
(long struct, int index) Unsafe version ofReserved
.Reserved()
public definition reserves space for graphics API-specific implementation.byte
Reserved
(int index) public definition reserves space for graphics API-specific implementation.int
sizeof()
Returnssizeof(struct)
.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. -
RESERVED
public static final int RESERVEDThe struct member offsets.
-
-
Constructor Details
-
OVRGraphicsLuid
Creates aOVRGraphicsLuid
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<OVRGraphicsLuid>
-
Reserved
public definition reserves space for graphics API-specific implementation. -
Reserved
public byte Reserved(int index) public definition reserves space for graphics API-specific implementation. -
malloc
Returns a newOVRGraphicsLuid
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newOVRGraphicsLuid
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newOVRGraphicsLuid
instance allocated withBufferUtils
. -
create
Returns a newOVRGraphicsLuid
instance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRGraphicsLuid.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newOVRGraphicsLuid.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newOVRGraphicsLuid.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aOVRGraphicsLuid.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 newOVRGraphicsLuid
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newOVRGraphicsLuid
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newOVRGraphicsLuid.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newOVRGraphicsLuid.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nReserved
Unsafe version ofReserved()
. -
nReserved
public static byte nReserved(long struct, int index) Unsafe version ofReserved
.
-