Top Description Inners Fields Constructors Methods
org.lwjgl.openxr

public Class XrExternalCameraIntrinsicsOCULUS

extends Struct<XrExternalCameraIntrinsicsOCULUS>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Camera intrintics state.
Valid Usage (Implicit)
See Also

XrExtent2Di, XrExternalCameraOCULUS, XrFovf

Layout


struct XrExternalCameraIntrinsicsOCULUS {
    XrTime lastChangeTime;
    XrFovf fov;
    float virtualNearPlaneDistance;
    float virtualFarPlaneDistance;
    XrExtent2Di imageSensorPixelResolution;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
FOV

The struct member offsets.

public static final int
IMAGESENSORPIXELRESOLUTION

The struct member offsets.

public static final int
LASTCHANGETIME

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
VIRTUALFARPLANEDISTANCE

The struct member offsets.

public static final int
VIRTUALNEARPLANEDISTANCE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
XrExternalCameraIntrinsicsOCULUS(ByteBuffer container)

Creates a XrExternalCameraIntrinsicsOCULUS instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static XrExternalCameraIntrinsicsOCULUS
calloc()

Returns a new XrExternalCameraIntrinsicsOCULUS instance allocated with memCalloc.

public static XrExternalCameraIntrinsicsOCULUS.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new XrExternalCameraIntrinsicsOCULUS.Buffer instance allocated with memCalloc.

public static XrExternalCameraIntrinsicsOCULUS
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XrExternalCameraIntrinsicsOCULUS instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static XrExternalCameraIntrinsicsOCULUS.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XrExternalCameraIntrinsicsOCULUS.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected XrExternalCameraIntrinsicsOCULUS
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static XrExternalCameraIntrinsicsOCULUS
create()

Returns a new XrExternalCameraIntrinsicsOCULUS instance allocated with BufferUtils.

public static XrExternalCameraIntrinsicsOCULUS
create(long address)

Returns a new XrExternalCameraIntrinsicsOCULUS instance for the specified memory address.

public static XrExternalCameraIntrinsicsOCULUS.Buffer
create(int
the buffer capacity
capacity
)

Returns a new XrExternalCameraIntrinsicsOCULUS.Buffer instance allocated with BufferUtils.

public static XrExternalCameraIntrinsicsOCULUS.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a XrExternalCameraIntrinsicsOCULUS.Buffer instance at the specified memory.

public static XrExternalCameraIntrinsicsOCULUS
createSafe(long address)

Like create, but returns null if address is NULL.

public static XrExternalCameraIntrinsicsOCULUS.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public XrFovf
fov()

the XrFovf for this camera’s viewport.

public XrExternalCameraIntrinsicsOCULUS
fov(XrFovf value)

Copies the specified XrFovf to the fov field.

public XrExternalCameraIntrinsicsOCULUS
fov(Consumer<XrFovf> consumer)

Passes the fov field to the specified Consumer.

public XrExtent2Di
imageSensorPixelResolution()

the XrExtent2Di specifying the camera’s resolution (in pixels).

public XrExternalCameraIntrinsicsOCULUS
public XrExternalCameraIntrinsicsOCULUS
public long
lastChangeTime()

the XrTime when this camera’s intrinsics last changed.

public XrExternalCameraIntrinsicsOCULUS
lastChangeTime(long value)

Sets the specified value to the lastChangeTime field.

public static XrExternalCameraIntrinsicsOCULUS
malloc()

Returns a new XrExternalCameraIntrinsicsOCULUS instance allocated with memAlloc.

public static XrExternalCameraIntrinsicsOCULUS.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new XrExternalCameraIntrinsicsOCULUS.Buffer instance allocated with memAlloc.

public static XrExternalCameraIntrinsicsOCULUS
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XrExternalCameraIntrinsicsOCULUS instance allocated on the specified MemoryStack.

public static XrExternalCameraIntrinsicsOCULUS.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XrExternalCameraIntrinsicsOCULUS.Buffer instance allocated on the specified MemoryStack.

public static XrFovf
nfov(long struct)

Unsafe version of fov.

public static void
nfov(long struct, XrFovf value)

Unsafe version of fov.

public static XrExtent2Di
public static void
public static long
nlastChangeTime(long struct)

Unsafe version of lastChangeTime.

public static void
nlastChangeTime(long struct, long value)

Unsafe version of lastChangeTime.

public static float
nvirtualFarPlaneDistance(long struct)

Unsafe version of virtualFarPlaneDistance.

public static void
nvirtualFarPlaneDistance(long struct, float value)

Unsafe version of virtualFarPlaneDistance.

public static float
nvirtualNearPlaneDistance(long struct)

Unsafe version of virtualNearPlaneDistance.

public static void
nvirtualNearPlaneDistance(long struct, float value)

Unsafe version of virtualNearPlaneDistance.

public XrExternalCameraIntrinsicsOCULUS
set(long lastChangeTime, XrFovf fov, float virtualNearPlaneDistance, float virtualFarPlaneDistance, XrExtent2Di imageSensorPixelResolution)

Initializes this struct with the specified values.

public XrExternalCameraIntrinsicsOCULUS

Returns:

this struct
set
(XrExternalCameraIntrinsicsOCULUS
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public float
virtualFarPlaneDistance()

the far plane distance of the virtual camera used to match the external camera

public XrExternalCameraIntrinsicsOCULUS
virtualFarPlaneDistance(float value)

Sets the specified value to the virtualFarPlaneDistance field.

public float
virtualNearPlaneDistance()

the near plane distance of the virtual camera used to match the external camera

public XrExternalCameraIntrinsicsOCULUS
virtualNearPlaneDistance(float value)

Sets the specified value to the virtualNearPlaneDistance field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

FOVback to summary
public static final int FOV

The struct member offsets.

IMAGESENSORPIXELRESOLUTIONback to summary
public static final int IMAGESENSORPIXELRESOLUTION

The struct member offsets.

LASTCHANGETIMEback to summary
public static final int LASTCHANGETIME

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

VIRTUALFARPLANEDISTANCEback to summary
public static final int VIRTUALFARPLANEDISTANCE

The struct member offsets.

VIRTUALNEARPLANEDISTANCEback to summary
public static final int VIRTUALNEARPLANEDISTANCE

The struct member offsets.

Constructor Detail

XrExternalCameraIntrinsicsOCULUSback to summary
protected XrExternalCameraIntrinsicsOCULUS(long address, ByteBuffer container)
XrExternalCameraIntrinsicsOCULUSback to summary
public XrExternalCameraIntrinsicsOCULUS(ByteBuffer container)

Creates a XrExternalCameraIntrinsicsOCULUS instance at the current position of the specified ByteBuffer 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

callocback to summary
public static XrExternalCameraIntrinsicsOCULUS calloc()

Returns a new XrExternalCameraIntrinsicsOCULUS instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static XrExternalCameraIntrinsicsOCULUS.Buffer calloc(int capacity)

Returns a new XrExternalCameraIntrinsicsOCULUS.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static XrExternalCameraIntrinsicsOCULUS calloc(MemoryStack stack)

Returns a new XrExternalCameraIntrinsicsOCULUS instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static XrExternalCameraIntrinsicsOCULUS.Buffer calloc(int capacity, MemoryStack stack)

Returns a new XrExternalCameraIntrinsicsOCULUS.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

createback to summary
protected XrExternalCameraIntrinsicsOCULUS create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static XrExternalCameraIntrinsicsOCULUS create()

Returns a new XrExternalCameraIntrinsicsOCULUS instance allocated with BufferUtils.

createback to summary
public static XrExternalCameraIntrinsicsOCULUS create(long address)

Returns a new XrExternalCameraIntrinsicsOCULUS instance for the specified memory address.

createback to summary
public static XrExternalCameraIntrinsicsOCULUS.Buffer create(int capacity)

Returns a new XrExternalCameraIntrinsicsOCULUS.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static XrExternalCameraIntrinsicsOCULUS.Buffer create(long address, int capacity)

Create a XrExternalCameraIntrinsicsOCULUS.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static XrExternalCameraIntrinsicsOCULUS createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static XrExternalCameraIntrinsicsOCULUS.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
fovback to summary
public XrFovf fov()

the XrFovf for this camera’s viewport.

fovback to summary
public XrExternalCameraIntrinsicsOCULUS fov(XrFovf value)

Copies the specified XrFovf to the fov field.

fovback to summary
public XrExternalCameraIntrinsicsOCULUS fov(Consumer<XrFovf> consumer)

Passes the fov field to the specified Consumer.

imageSensorPixelResolutionback to summary
public XrExtent2Di imageSensorPixelResolution()

the XrExtent2Di specifying the camera’s resolution (in pixels).

imageSensorPixelResolutionback to summary
public XrExternalCameraIntrinsicsOCULUS imageSensorPixelResolution(XrExtent2Di value)

Copies the specified XrExtent2Di to the imageSensorPixelResolution field.

imageSensorPixelResolutionback to summary
public XrExternalCameraIntrinsicsOCULUS imageSensorPixelResolution(Consumer<XrExtent2Di> consumer)

Passes the imageSensorPixelResolution field to the specified Consumer.

lastChangeTimeback to summary
public long lastChangeTime()

the XrTime when this camera’s intrinsics last changed.

Annotations
@NativeType:XrTime
lastChangeTimeback to summary
public XrExternalCameraIntrinsicsOCULUS lastChangeTime(long value)

Sets the specified value to the lastChangeTime field.

mallocback to summary
public static XrExternalCameraIntrinsicsOCULUS malloc()

Returns a new XrExternalCameraIntrinsicsOCULUS instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static XrExternalCameraIntrinsicsOCULUS.Buffer malloc(int capacity)

Returns a new XrExternalCameraIntrinsicsOCULUS.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static XrExternalCameraIntrinsicsOCULUS malloc(MemoryStack stack)

Returns a new XrExternalCameraIntrinsicsOCULUS instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static XrExternalCameraIntrinsicsOCULUS.Buffer malloc(int capacity, MemoryStack stack)

Returns a new XrExternalCameraIntrinsicsOCULUS.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

nfovback to summary
public static XrFovf nfov(long struct)

Unsafe version of fov.

nfovback to summary
public static void nfov(long struct, XrFovf value)

Unsafe version of fov.

nimageSensorPixelResolutionback to summary
public static XrExtent2Di nimageSensorPixelResolution(long struct)

Unsafe version of imageSensorPixelResolution.

nimageSensorPixelResolutionback to summary
public static void nimageSensorPixelResolution(long struct, XrExtent2Di value)

Unsafe version of imageSensorPixelResolution.

nlastChangeTimeback to summary
public static long nlastChangeTime(long struct)

Unsafe version of lastChangeTime.

nlastChangeTimeback to summary
public static void nlastChangeTime(long struct, long value)

Unsafe version of lastChangeTime.

nvirtualFarPlaneDistanceback to summary
public static float nvirtualFarPlaneDistance(long struct)

Unsafe version of virtualFarPlaneDistance.

nvirtualFarPlaneDistanceback to summary
public static void nvirtualFarPlaneDistance(long struct, float value)

Unsafe version of virtualFarPlaneDistance.

nvirtualNearPlaneDistanceback to summary
public static float nvirtualNearPlaneDistance(long struct)

Unsafe version of virtualNearPlaneDistance.

nvirtualNearPlaneDistanceback to summary
public static void nvirtualNearPlaneDistance(long struct, float value)

Unsafe version of virtualNearPlaneDistance.

setback to summary
public XrExternalCameraIntrinsicsOCULUS set(long lastChangeTime, XrFovf fov, float virtualNearPlaneDistance, float virtualFarPlaneDistance, XrExtent2Di imageSensorPixelResolution)

Initializes this struct with the specified values.

setback to summary
public XrExternalCameraIntrinsicsOCULUS set(XrExternalCameraIntrinsicsOCULUS src)

Copies the specified struct data to this struct.

Parameters
src:XrExternalCameraIntrinsicsOCULUS

the source struct

Returns:XrExternalCameraIntrinsicsOCULUS

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
virtualFarPlaneDistanceback to summary
public float virtualFarPlaneDistance()

the far plane distance of the virtual camera used to match the external camera

virtualFarPlaneDistanceback to summary
public XrExternalCameraIntrinsicsOCULUS virtualFarPlaneDistance(float value)

Sets the specified value to the virtualFarPlaneDistance field.

virtualNearPlaneDistanceback to summary
public float virtualNearPlaneDistance()

the near plane distance of the virtual camera used to match the external camera

virtualNearPlaneDistanceback to summary
public XrExternalCameraIntrinsicsOCULUS virtualNearPlaneDistance(float value)

Sets the specified value to the virtualNearPlaneDistance field.

org.lwjgl.openxr back to summary

public Class XrExternalCameraIntrinsicsOCULUS.Buffer

extends StructBuffer<XrExternalCameraIntrinsicsOCULUS, XrExternalCameraIntrinsicsOCULUS.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of XrExternalCameraIntrinsicsOCULUS structs.

Field Summary

Modifier and TypeField and Description
private static final XrExternalCameraIntrinsicsOCULUS

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new XrExternalCameraIntrinsicsOCULUS.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public XrFovf

Returns:

a XrFovf view of the XrExternalCameraIntrinsicsOCULUS#fov field.
fov
()

public XrExternalCameraIntrinsicsOCULUS.Buffer
fov(XrFovf value)

Copies the specified XrFovf to the XrExternalCameraIntrinsicsOCULUS#fov field.

public XrExternalCameraIntrinsicsOCULUS.Buffer
fov(Consumer<XrFovf> consumer)

Passes the XrExternalCameraIntrinsicsOCULUS#fov field to the specified Consumer.

protected XrExternalCameraIntrinsicsOCULUS
public XrExtent2Di
public XrExternalCameraIntrinsicsOCULUS.Buffer
public XrExternalCameraIntrinsicsOCULUS.Buffer
public long
public XrExternalCameraIntrinsicsOCULUS.Buffer
lastChangeTime(long value)

Sets the specified value to the XrExternalCameraIntrinsicsOCULUS#lastChangeTime field.

protected XrExternalCameraIntrinsicsOCULUS.Buffer
public float
public XrExternalCameraIntrinsicsOCULUS.Buffer
virtualFarPlaneDistance(float value)

Sets the specified value to the XrExternalCameraIntrinsicsOCULUS#virtualFarPlaneDistance field.

public float
public XrExternalCameraIntrinsicsOCULUS.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final XrExternalCameraIntrinsicsOCULUS ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new XrExternalCameraIntrinsicsOCULUS.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by XrExternalCameraIntrinsicsOCULUS#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

fovback to summary
public XrFovf fov()
Returns:XrFovf

a XrFovf view of the XrExternalCameraIntrinsicsOCULUS#fov field.

fovback to summary
public XrExternalCameraIntrinsicsOCULUS.Buffer fov(XrFovf value)

Copies the specified XrFovf to the XrExternalCameraIntrinsicsOCULUS#fov field.

fovback to summary
public XrExternalCameraIntrinsicsOCULUS.Buffer fov(Consumer<XrFovf> consumer)

Passes the XrExternalCameraIntrinsicsOCULUS#fov field to the specified Consumer.

getElementFactoryback to summary
protected XrExternalCameraIntrinsicsOCULUS getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
imageSensorPixelResolutionback to summary
public XrExtent2Di imageSensorPixelResolution()
Returns:XrExtent2Di

a XrExtent2Di view of the XrExternalCameraIntrinsicsOCULUS#imageSensorPixelResolution field.

imageSensorPixelResolutionback to summary
public XrExternalCameraIntrinsicsOCULUS.Buffer imageSensorPixelResolution(XrExtent2Di value)

Copies the specified XrExtent2Di to the XrExternalCameraIntrinsicsOCULUS#imageSensorPixelResolution field.

imageSensorPixelResolutionback to summary
public XrExternalCameraIntrinsicsOCULUS.Buffer imageSensorPixelResolution(Consumer<XrExtent2Di> consumer)

Passes the XrExternalCameraIntrinsicsOCULUS#imageSensorPixelResolution field to the specified Consumer.

lastChangeTimeback to summary
public long lastChangeTime()
Returns:long

the value of the XrExternalCameraIntrinsicsOCULUS#lastChangeTime field.

Annotations
@NativeType:XrTime
lastChangeTimeback to summary
public XrExternalCameraIntrinsicsOCULUS.Buffer lastChangeTime(long value)

Sets the specified value to the XrExternalCameraIntrinsicsOCULUS#lastChangeTime field.

selfback to summary
protected XrExternalCameraIntrinsicsOCULUS.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
virtualFarPlaneDistanceback to summary
public float virtualFarPlaneDistance()
Returns:float

the value of the XrExternalCameraIntrinsicsOCULUS#virtualFarPlaneDistance field.

virtualFarPlaneDistanceback to summary
public XrExternalCameraIntrinsicsOCULUS.Buffer virtualFarPlaneDistance(float value)

Sets the specified value to the XrExternalCameraIntrinsicsOCULUS#virtualFarPlaneDistance field.

virtualNearPlaneDistanceback to summary
public float virtualNearPlaneDistance()
Returns:float

the value of the XrExternalCameraIntrinsicsOCULUS#virtualNearPlaneDistance field.

virtualNearPlaneDistanceback to summary
public XrExternalCameraIntrinsicsOCULUS.Buffer virtualNearPlaneDistance(float value)

Sets the specified value to the XrExternalCameraIntrinsicsOCULUS#virtualNearPlaneDistance field.