Package org.lwjgl.ovr
Class OVRExternalCamera
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRExternalCamera
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRExternalCamera extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceMember documentation
Name[32]– camera identifier: vid + pid + serial number etc.
Layout
struct ovrExternalCamera { char Name[32];ovrCameraIntrinsicsIntrinsics;ovrCameraExtrinsicsExtrinsics; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRExternalCamera.BufferAn array ofOVRExternalCamerastructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intEXTRINSICS
INTRINSICS
NAMEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description OVRExternalCamera(java.nio.ByteBuffer container)Creates aOVRExternalCamerainstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRExternalCameracalloc()Returns a newOVRExternalCamerainstance allocated withmemCalloc.static OVRExternalCamera.Buffercalloc(int capacity)Returns a newOVRExternalCamera.Bufferinstance allocated withmemCalloc.static OVRExternalCameracallocStack()Returns a newOVRExternalCamerainstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRExternalCamera.BuffercallocStack(int capacity)Returns a newOVRExternalCamera.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRExternalCamera.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRExternalCamera.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRExternalCameracallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRExternalCamerainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRExternalCameracreate()Returns a newOVRExternalCamerainstance allocated withBufferUtils.static OVRExternalCamera.Buffercreate(int capacity)Returns a newOVRExternalCamera.Bufferinstance allocated withBufferUtils.static OVRExternalCameracreate(long address)Returns a newOVRExternalCamerainstance for the specified memory address.static OVRExternalCamera.Buffercreate(long address, int capacity)Create aOVRExternalCamera.Bufferinstance at the specified memory.static OVRExternalCameracreateSafe(long address)static OVRExternalCamera.BuffercreateSafe(long address, int capacity)OVRCameraExtrinsicsExtrinsics()Returns aOVRCameraExtrinsicsview of theExtrinsicsfield.OVRCameraIntrinsicsIntrinsics()Returns aOVRCameraIntrinsicsview of theIntrinsicsfield.static OVRExternalCameramalloc()Returns a newOVRExternalCamerainstance allocated withmemAlloc.static OVRExternalCamera.Buffermalloc(int capacity)Returns a newOVRExternalCamera.Bufferinstance allocated withmemAlloc.static OVRExternalCameramallocStack()Returns a newOVRExternalCamerainstance allocated on the thread-localMemoryStack.static OVRExternalCamera.BuffermallocStack(int capacity)Returns a newOVRExternalCamera.Bufferinstance allocated on the thread-localMemoryStack.static OVRExternalCamera.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRExternalCamera.Bufferinstance allocated on the specifiedMemoryStack.static OVRExternalCameramallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRExternalCamerainstance allocated on the specifiedMemoryStack.java.nio.ByteBufferName()Returns aByteBufferview of theNamefield.java.lang.StringNameString()Decodes the null-terminated string stored in theNamefield.static OVRCameraExtrinsicsnExtrinsics(long struct)Unsafe version ofExtrinsics().static OVRCameraIntrinsicsnIntrinsics(long struct)Unsafe version ofIntrinsics().static java.nio.ByteBuffernName(long struct)Unsafe version ofName().static java.lang.StringnNameString(long struct)Unsafe version ofNameString().intsizeof()
-
-
-
Constructor Detail
-
OVRExternalCamera
public OVRExternalCamera(java.nio.ByteBuffer container)
Creates aOVRExternalCamerainstance 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
-
Name
public java.nio.ByteBuffer Name()
Returns aByteBufferview of theNamefield.
-
NameString
public java.lang.String NameString()
Decodes the null-terminated string stored in theNamefield.
-
Intrinsics
public OVRCameraIntrinsics Intrinsics()
Returns aOVRCameraIntrinsicsview of theIntrinsicsfield.
-
Extrinsics
public OVRCameraExtrinsics Extrinsics()
Returns aOVRCameraExtrinsicsview of theExtrinsicsfield.
-
malloc
public static OVRExternalCamera malloc()
Returns a newOVRExternalCamerainstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRExternalCamera calloc()
Returns a newOVRExternalCamerainstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRExternalCamera create()
Returns a newOVRExternalCamerainstance allocated withBufferUtils.
-
create
public static OVRExternalCamera create(long address)
Returns a newOVRExternalCamerainstance for the specified memory address.
-
createSafe
@Nullable public static OVRExternalCamera createSafe(long address)
-
malloc
public static OVRExternalCamera.Buffer malloc(int capacity)
Returns a newOVRExternalCamera.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRExternalCamera.Buffer calloc(int capacity)
Returns a newOVRExternalCamera.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRExternalCamera.Buffer create(int capacity)
Returns a newOVRExternalCamera.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRExternalCamera.Buffer create(long address, int capacity)
Create aOVRExternalCamera.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static OVRExternalCamera.Buffer createSafe(long address, int capacity)
-
mallocStack
public static OVRExternalCamera mallocStack()
Returns a newOVRExternalCamerainstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRExternalCamera callocStack()
Returns a newOVRExternalCamerainstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRExternalCamera mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRExternalCamerainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRExternalCamera callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRExternalCamerainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static OVRExternalCamera.Buffer mallocStack(int capacity)
Returns a newOVRExternalCamera.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRExternalCamera.Buffer callocStack(int capacity)
Returns a newOVRExternalCamera.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRExternalCamera.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRExternalCamera.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static OVRExternalCamera.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRExternalCamera.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nName
public static java.nio.ByteBuffer nName(long struct)
Unsafe version ofName().
-
nNameString
public static java.lang.String nNameString(long struct)
Unsafe version ofNameString().
-
nIntrinsics
public static OVRCameraIntrinsics nIntrinsics(long struct)
Unsafe version ofIntrinsics().
-
nExtrinsics
public static OVRCameraExtrinsics nExtrinsics(long struct)
Unsafe version ofExtrinsics().
-
-