Package org.lwjgl.ovr
Class OVRTimewarpProjectionDesc
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRTimewarpProjectionDesc
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class OVRTimewarpProjectionDesc extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Projection information forOVRLayerEyeFovDepth
.Use the utility function
TimewarpProjectionDesc_FromProjection
to generate this structure from the application's projection matrix.Member documentation
Projection22
– projection matrix element [2][2]Projection23
– projection matrix element [2][3]Projection32
– projection matrix element [3][2]
Layout
struct ovrTimewarpProjectionDesc { float Projection22; float Projection23; float Projection32; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OVRTimewarpProjectionDesc.Buffer
An array ofOVRTimewarpProjectionDesc
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
PROJECTION22
PROJECTION23
PROJECTION32The struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description OVRTimewarpProjectionDesc(java.nio.ByteBuffer container)
Creates aOVRTimewarpProjectionDesc
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 OVRTimewarpProjectionDesc
calloc()
Returns a newOVRTimewarpProjectionDesc
instance allocated withmemCalloc
.static OVRTimewarpProjectionDesc.Buffer
calloc(int capacity)
Returns a newOVRTimewarpProjectionDesc.Buffer
instance allocated withmemCalloc
.static OVRTimewarpProjectionDesc
callocStack()
Returns a newOVRTimewarpProjectionDesc
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRTimewarpProjectionDesc.Buffer
callocStack(int capacity)
Returns a newOVRTimewarpProjectionDesc.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRTimewarpProjectionDesc.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTimewarpProjectionDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRTimewarpProjectionDesc
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTimewarpProjectionDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRTimewarpProjectionDesc
create()
Returns a newOVRTimewarpProjectionDesc
instance allocated withBufferUtils
.static OVRTimewarpProjectionDesc.Buffer
create(int capacity)
Returns a newOVRTimewarpProjectionDesc.Buffer
instance allocated withBufferUtils
.static OVRTimewarpProjectionDesc
create(long address)
Returns a newOVRTimewarpProjectionDesc
instance for the specified memory address.static OVRTimewarpProjectionDesc.Buffer
create(long address, int capacity)
Create aOVRTimewarpProjectionDesc.Buffer
instance at the specified memory.static OVRTimewarpProjectionDesc
createSafe(long address)
static OVRTimewarpProjectionDesc.Buffer
createSafe(long address, int capacity)
static OVRTimewarpProjectionDesc
malloc()
Returns a newOVRTimewarpProjectionDesc
instance allocated withmemAlloc
.static OVRTimewarpProjectionDesc.Buffer
malloc(int capacity)
Returns a newOVRTimewarpProjectionDesc.Buffer
instance allocated withmemAlloc
.static OVRTimewarpProjectionDesc
mallocStack()
Returns a newOVRTimewarpProjectionDesc
instance allocated on the thread-localMemoryStack
.static OVRTimewarpProjectionDesc.Buffer
mallocStack(int capacity)
Returns a newOVRTimewarpProjectionDesc.Buffer
instance allocated on the thread-localMemoryStack
.static OVRTimewarpProjectionDesc.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTimewarpProjectionDesc.Buffer
instance allocated on the specifiedMemoryStack
.static OVRTimewarpProjectionDesc
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTimewarpProjectionDesc
instance allocated on the specifiedMemoryStack
.static float
nProjection22(long struct)
Unsafe version ofProjection22()
.static float
nProjection23(long struct)
Unsafe version ofProjection23()
.static float
nProjection32(long struct)
Unsafe version ofProjection32()
.float
Projection22()
Returns the value of theProjection22
field.float
Projection23()
Returns the value of theProjection23
field.float
Projection32()
Returns the value of theProjection32
field.int
sizeof()
-
-
-
Constructor Detail
-
OVRTimewarpProjectionDesc
public OVRTimewarpProjectionDesc(java.nio.ByteBuffer container)
Creates aOVRTimewarpProjectionDesc
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
-
Projection22
public float Projection22()
Returns the value of theProjection22
field.
-
Projection23
public float Projection23()
Returns the value of theProjection23
field.
-
Projection32
public float Projection32()
Returns the value of theProjection32
field.
-
malloc
public static OVRTimewarpProjectionDesc malloc()
Returns a newOVRTimewarpProjectionDesc
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRTimewarpProjectionDesc calloc()
Returns a newOVRTimewarpProjectionDesc
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRTimewarpProjectionDesc create()
Returns a newOVRTimewarpProjectionDesc
instance allocated withBufferUtils
.
-
create
public static OVRTimewarpProjectionDesc create(long address)
Returns a newOVRTimewarpProjectionDesc
instance for the specified memory address.
-
createSafe
@Nullable public static OVRTimewarpProjectionDesc createSafe(long address)
-
malloc
public static OVRTimewarpProjectionDesc.Buffer malloc(int capacity)
Returns a newOVRTimewarpProjectionDesc.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRTimewarpProjectionDesc.Buffer calloc(int capacity)
Returns a newOVRTimewarpProjectionDesc.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRTimewarpProjectionDesc.Buffer create(int capacity)
Returns a newOVRTimewarpProjectionDesc.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRTimewarpProjectionDesc.Buffer create(long address, int capacity)
Create aOVRTimewarpProjectionDesc.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static OVRTimewarpProjectionDesc.Buffer createSafe(long address, int capacity)
-
mallocStack
public static OVRTimewarpProjectionDesc mallocStack()
Returns a newOVRTimewarpProjectionDesc
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRTimewarpProjectionDesc callocStack()
Returns a newOVRTimewarpProjectionDesc
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRTimewarpProjectionDesc mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTimewarpProjectionDesc
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRTimewarpProjectionDesc callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTimewarpProjectionDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static OVRTimewarpProjectionDesc.Buffer mallocStack(int capacity)
Returns a newOVRTimewarpProjectionDesc.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRTimewarpProjectionDesc.Buffer callocStack(int capacity)
Returns a newOVRTimewarpProjectionDesc.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static OVRTimewarpProjectionDesc.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTimewarpProjectionDesc.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static OVRTimewarpProjectionDesc.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTimewarpProjectionDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nProjection22
public static float nProjection22(long struct)
Unsafe version ofProjection22()
.
-
nProjection23
public static float nProjection23(long struct)
Unsafe version ofProjection23()
.
-
nProjection32
public static float nProjection32(long struct)
Unsafe version ofProjection32()
.
-
-