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.NativeResource
Member documentation
Name[32]
– camera identifier: vid + pid + serial number etc.
Layout
struct ovrExternalCamera { char Name[32];
ovrCameraIntrinsics
Intrinsics;ovrCameraExtrinsics
Extrinsics; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OVRExternalCamera.Buffer
An array ofOVRExternalCamera
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
EXTRINSICS
INTRINSICS
NAMEThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description OVRExternalCamera(java.nio.ByteBuffer container)
Creates aOVRExternalCamera
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRExternalCamera
calloc()
Returns a newOVRExternalCamera
instance allocated withmemCalloc
.static OVRExternalCamera.Buffer
calloc(int capacity)
Returns a newOVRExternalCamera.Buffer
instance allocated withmemCalloc
.static OVRExternalCamera
callocStack()
Returns a newOVRExternalCamera
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRExternalCamera.Buffer
callocStack(int capacity)
Returns a newOVRExternalCamera.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRExternalCamera.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRExternalCamera.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRExternalCamera
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRExternalCamera
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRExternalCamera
create()
Returns a newOVRExternalCamera
instance allocated withBufferUtils
.static OVRExternalCamera.Buffer
create(int capacity)
Returns a newOVRExternalCamera.Buffer
instance allocated withBufferUtils
.static OVRExternalCamera
create(long address)
Returns a newOVRExternalCamera
instance for the specified memory address.static OVRExternalCamera.Buffer
create(long address, int capacity)
Create aOVRExternalCamera.Buffer
instance at the specified memory.static OVRExternalCamera
createSafe(long address)
static OVRExternalCamera.Buffer
createSafe(long address, int capacity)
OVRCameraExtrinsics
Extrinsics()
Returns aOVRCameraExtrinsics
view of theExtrinsics
field.OVRCameraIntrinsics
Intrinsics()
Returns aOVRCameraIntrinsics
view of theIntrinsics
field.static OVRExternalCamera
malloc()
Returns a newOVRExternalCamera
instance allocated withmemAlloc
.static OVRExternalCamera.Buffer
malloc(int capacity)
Returns a newOVRExternalCamera.Buffer
instance allocated withmemAlloc
.static OVRExternalCamera
mallocStack()
Returns a newOVRExternalCamera
instance allocated on the thread-localMemoryStack
.static OVRExternalCamera.Buffer
mallocStack(int capacity)
Returns a newOVRExternalCamera.Buffer
instance allocated on the thread-localMemoryStack
.static OVRExternalCamera.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRExternalCamera.Buffer
instance allocated on the specifiedMemoryStack
.static OVRExternalCamera
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRExternalCamera
instance allocated on the specifiedMemoryStack
.java.nio.ByteBuffer
Name()
Returns aByteBuffer
view of theName
field.java.lang.String
NameString()
Decodes the null-terminated string stored in theName
field.static OVRCameraExtrinsics
nExtrinsics(long struct)
Unsafe version ofExtrinsics()
.static OVRCameraIntrinsics
nIntrinsics(long struct)
Unsafe version ofIntrinsics()
.static java.nio.ByteBuffer
nName(long struct)
Unsafe version ofName()
.static java.lang.String
nNameString(long struct)
Unsafe version ofNameString()
.int
sizeof()
-
-
-
Constructor Detail
-
OVRExternalCamera
public OVRExternalCamera(java.nio.ByteBuffer container)
Creates aOVRExternalCamera
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
Name
public java.nio.ByteBuffer Name()
Returns aByteBuffer
view of theName
field.
-
NameString
public java.lang.String NameString()
Decodes the null-terminated string stored in theName
field.
-
Intrinsics
public OVRCameraIntrinsics Intrinsics()
Returns aOVRCameraIntrinsics
view of theIntrinsics
field.
-
Extrinsics
public OVRCameraExtrinsics Extrinsics()
Returns aOVRCameraExtrinsics
view of theExtrinsics
field.
-
malloc
public static OVRExternalCamera malloc()
Returns a newOVRExternalCamera
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRExternalCamera calloc()
Returns a newOVRExternalCamera
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRExternalCamera create()
Returns a newOVRExternalCamera
instance allocated withBufferUtils
.
-
create
public static OVRExternalCamera create(long address)
Returns a newOVRExternalCamera
instance for the specified memory address.
-
createSafe
@Nullable public static OVRExternalCamera createSafe(long address)
-
malloc
public static OVRExternalCamera.Buffer malloc(int capacity)
Returns a newOVRExternalCamera.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRExternalCamera.Buffer calloc(int capacity)
Returns a newOVRExternalCamera.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRExternalCamera.Buffer create(int capacity)
Returns a newOVRExternalCamera.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRExternalCamera.Buffer create(long address, int capacity)
Create aOVRExternalCamera.Buffer
instance 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 newOVRExternalCamera
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRExternalCamera callocStack()
Returns a newOVRExternalCamera
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRExternalCamera mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRExternalCamera
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRExternalCamera callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRExternalCamera
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRExternalCamera.Buffer callocStack(int capacity)
Returns a newOVRExternalCamera.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-
-