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.NativeResourceLayout
struct ovrExternalCamera { charName()[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 Deprecated 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 OVRExternalCamera.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRExternalCamera.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRExternalCameracalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRExternalCamerainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRExternalCameracallocStack()Deprecated.static OVRExternalCamera.BuffercallocStack(int capacity)Deprecated.static OVRExternalCamera.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static OVRExternalCameracallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()OVRCameraIntrinsicsIntrinsics()static OVRExternalCameramalloc()Returns a newOVRExternalCamerainstance allocated withmemAlloc.static OVRExternalCamera.Buffermalloc(int capacity)Returns a newOVRExternalCamera.Bufferinstance allocated withmemAlloc.static OVRExternalCamera.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRExternalCamera.Bufferinstance allocated on the specifiedMemoryStack.static OVRExternalCameramalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRExternalCamerainstance allocated on the specifiedMemoryStack.static OVRExternalCameramallocStack()Deprecated.static OVRExternalCamera.BuffermallocStack(int capacity)Deprecated.static OVRExternalCamera.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static OVRExternalCameramallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.java.nio.ByteBufferName()camera identifier: vid + pid + serial number etc.java.lang.StringNameString()camera identifier: vid + pid + serial number etc.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, NameString
public java.nio.ByteBuffer Name() public java.lang.String NameString()
camera identifier: vid + pid + serial number etc.
-
Intrinsics
public OVRCameraIntrinsics Intrinsics()
- Returns:
- a
OVRCameraIntrinsicsview of theIntrinsicsfield.
-
Extrinsics
public OVRCameraExtrinsics Extrinsics()
- Returns:
- a
OVRCameraExtrinsicsview 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
@Deprecated public static OVRExternalCamera mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRExternalCamera callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRExternalCamera mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRExternalCamera callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRExternalCamera.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static OVRExternalCamera.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRExternalCamera.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 OVRExternalCamera.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static OVRExternalCamera malloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRExternalCamerainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static OVRExternalCamera calloc(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
-
malloc
public static OVRExternalCamera.Buffer malloc(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
-
calloc
public static OVRExternalCamera.Buffer calloc(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().
-
-