Package org.lwjgl.ovr
Class OVRErrorInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Provides information about the last error.
Layout
struct ovrErrorInfo {
ovrResult Result()
;
char ErrorString()
[512];
}
-
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 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
ConstructorDescriptionOVRErrorInfo
(ByteBuffer container) Creates aOVRErrorInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRErrorInfo
calloc()
Returns a newOVRErrorInfo
instance allocated withmemCalloc
.static OVRErrorInfo.Buffer
calloc
(int capacity) Returns a newOVRErrorInfo.Buffer
instance allocated withmemCalloc
.static OVRErrorInfo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newOVRErrorInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRErrorInfo
calloc
(MemoryStack stack) Returns a newOVRErrorInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRErrorInfo
Deprecated.static OVRErrorInfo.Buffer
callocStack
(int capacity) Deprecated.static OVRErrorInfo.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static OVRErrorInfo
callocStack
(MemoryStack stack) Deprecated.static OVRErrorInfo
create()
Returns a newOVRErrorInfo
instance allocated withBufferUtils
.static OVRErrorInfo.Buffer
create
(int capacity) Returns a newOVRErrorInfo.Buffer
instance allocated withBufferUtils
.static OVRErrorInfo
create
(long address) Returns a newOVRErrorInfo
instance for the specified memory address.static OVRErrorInfo.Buffer
create
(long address, int capacity) Create aOVRErrorInfo.Buffer
instance at the specified memory.static OVRErrorInfo
createSafe
(long address) static OVRErrorInfo.Buffer
createSafe
(long address, int capacity) a UTF8-encoded null-terminated English string describing the problem.a UTF8-encoded null-terminated English string describing the problem.static OVRErrorInfo
malloc()
Returns a newOVRErrorInfo
instance allocated withmemAlloc
.static OVRErrorInfo.Buffer
malloc
(int capacity) Returns a newOVRErrorInfo.Buffer
instance allocated withmemAlloc
.static OVRErrorInfo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newOVRErrorInfo.Buffer
instance allocated on the specifiedMemoryStack
.static OVRErrorInfo
malloc
(MemoryStack stack) Returns a newOVRErrorInfo
instance allocated on the specifiedMemoryStack
.static OVRErrorInfo
Deprecated.static OVRErrorInfo.Buffer
mallocStack
(int capacity) Deprecated.static OVRErrorInfo.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static OVRErrorInfo
mallocStack
(MemoryStack stack) Deprecated.static ByteBuffer
nErrorString
(long struct) Unsafe version ofErrorString()
.static String
nErrorStringString
(long struct) Unsafe version ofErrorStringString()
.static int
nResult
(long struct) Unsafe version ofResult()
.int
Result()
the result from the last API call that generated an errorovrResult
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. -
RESULT
public static final int RESULTThe struct member offsets. -
ERRORSTRING
public static final int ERRORSTRINGThe struct member offsets.
-
-
Constructor Details
-
OVRErrorInfo
Creates aOVRErrorInfo
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<OVRErrorInfo>
-
Result
public int Result()the result from the last API call that generated an errorovrResult
-
ErrorString
a UTF8-encoded null-terminated English string describing the problem. The format of this string is subject to change in future versions -
ErrorStringString
a UTF8-encoded null-terminated English string describing the problem. The format of this string is subject to change in future versions -
malloc
Returns a newOVRErrorInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newOVRErrorInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newOVRErrorInfo
instance allocated withBufferUtils
. -
create
Returns a newOVRErrorInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRErrorInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newOVRErrorInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newOVRErrorInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aOVRErrorInfo.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 newOVRErrorInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newOVRErrorInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newOVRErrorInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newOVRErrorInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nResult
public static int nResult(long struct) Unsafe version ofResult()
. -
nErrorString
Unsafe version ofErrorString()
. -
nErrorStringString
Unsafe version ofErrorStringString()
.
-