Package org.lwjgl.ovr
Class OVRErrorInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRErrorInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRErrorInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceProvides information about the last error.Layout
struct ovrErrorInfo { ovrResultResult(); charErrorString()[512]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRErrorInfo.BufferAn array ofOVRErrorInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intERRORSTRING
RESULTThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description OVRErrorInfo(java.nio.ByteBuffer container)Creates aOVRErrorInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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 OVRErrorInfocallocStack()Deprecated.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 OVRErrorInfocreateSafe(long address)static OVRErrorInfo.BuffercreateSafe(long address, int capacity)java.nio.ByteBufferErrorString()a UTF8-encoded null-terminated English string describing the problem.java.lang.StringErrorStringString()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 OVRErrorInfomallocStack()Deprecated.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 java.nio.ByteBuffernErrorString(long struct)Unsafe version ofErrorString().static java.lang.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()
-
-
-
Constructor Detail
-
OVRErrorInfo
public OVRErrorInfo(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
Result
public int Result()
the result from the last API call that generated an errorovrResult
-
ErrorString, ErrorStringString
public java.nio.ByteBuffer ErrorString() public java.lang.String ErrorStringString()
a UTF8-encoded null-terminated English string describing the problem. The format of this string is subject to change in future versions
-
malloc
public static OVRErrorInfo malloc()
Returns a newOVRErrorInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRErrorInfo calloc()
Returns a newOVRErrorInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRErrorInfo create()
Returns a newOVRErrorInfoinstance allocated withBufferUtils.
-
create
public static OVRErrorInfo create(long address)
Returns a newOVRErrorInfoinstance for the specified memory address.
-
createSafe
@Nullable public static OVRErrorInfo createSafe(long address)
-
malloc
public static OVRErrorInfo.Buffer malloc(int capacity)
Returns a newOVRErrorInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRErrorInfo.Buffer calloc(int capacity)
Returns a newOVRErrorInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRErrorInfo.Buffer create(int capacity)
Returns a newOVRErrorInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRErrorInfo.Buffer create(long address, int capacity)
Create aOVRErrorInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static OVRErrorInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static OVRErrorInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRErrorInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRErrorInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRErrorInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRErrorInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static OVRErrorInfo.Buffer callocStack(int capacity)
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
public static OVRErrorInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRErrorInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static OVRErrorInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRErrorInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static OVRErrorInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRErrorInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static OVRErrorInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRErrorInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nResult
public static int nResult(long struct)
Unsafe version ofResult().
-
nErrorString
public static java.nio.ByteBuffer nErrorString(long struct)
Unsafe version ofErrorString().
-
nErrorStringString
public static java.lang.String nErrorStringString(long struct)
Unsafe version ofErrorStringString().
-
-