Package org.lwjgl.ovr
Class OVRErrorInfo
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRErrorInfo>
org.lwjgl.ovr.OVRErrorInfo
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRErrorInfo
extends org.lwjgl.system.Struct<OVRErrorInfo>
implements org.lwjgl.system.NativeResource
Provides information about the last error.
Layout
struct ovrErrorInfo {
ovrResult Result();
char ErrorString()[512];
}-
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 member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRErrorInfo(ByteBuffer container) Creates aOVRErrorInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRErrorInfocalloc()Returns a newOVRErrorInfoinstance allocated withmemCalloc.static OVRErrorInfo.Buffercalloc(int capacity) Returns a newOVRErrorInfo.Bufferinstance allocated withmemCalloc.static OVRErrorInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRErrorInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRErrorInfocalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRErrorInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRErrorInfoDeprecated.static OVRErrorInfo.BuffercallocStack(int capacity) Deprecated.static OVRErrorInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRErrorInfocallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRErrorInfocreate()Returns a newOVRErrorInfoinstance allocated withBufferUtils.static OVRErrorInfo.Buffercreate(int capacity) Returns a newOVRErrorInfo.Bufferinstance allocated withBufferUtils.static OVRErrorInfocreate(long address) Returns a newOVRErrorInfoinstance for the specified memory address.static OVRErrorInfo.Buffercreate(long address, int capacity) Create aOVRErrorInfo.Bufferinstance at the specified memory.static @Nullable OVRErrorInfocreateSafe(long address) static @Nullable OVRErrorInfo.BuffercreateSafe(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 OVRErrorInfomalloc()Returns a newOVRErrorInfoinstance allocated withmemAlloc.static OVRErrorInfo.Buffermalloc(int capacity) Returns a newOVRErrorInfo.Bufferinstance allocated withmemAlloc.static OVRErrorInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRErrorInfo.Bufferinstance allocated on the specifiedMemoryStack.static OVRErrorInfomalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRErrorInfoinstance allocated on the specifiedMemoryStack.static OVRErrorInfoDeprecated.static OVRErrorInfo.BuffermallocStack(int capacity) Deprecated.static OVRErrorInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRErrorInfomallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static ByteBuffernErrorString(long struct) Unsafe version ofErrorString().static StringnErrorStringString(long struct) Unsafe version ofErrorStringString().static intnResult(long struct) Unsafe version ofResult().intResult()the result from the last API call that generated an errorovrResultintsizeof()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. -
RESULT
public static final int RESULTThe struct member offsets. -
ERRORSTRING
public static final int ERRORSTRINGThe struct member offsets.
-
-
Constructor Details
-
OVRErrorInfo
Creates aOVRErrorInfoinstance 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<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 newOVRErrorInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRErrorInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRErrorInfoinstance allocated withBufferUtils. -
create
Returns a newOVRErrorInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRErrorInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRErrorInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRErrorInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRErrorInfo.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 OVRErrorInfo.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 OVRErrorInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRErrorInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRErrorInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRErrorInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRErrorInfo.Bufferinstance allocated on the specifiedMemoryStackand 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().
-