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.NativeResourceProjection information forOVRLayerEyeFovDepth.Use the utility function
TimewarpProjectionDesc_FromProjectionto 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 classOVRTimewarpProjectionDesc.BufferAn array ofOVRTimewarpProjectionDescstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPROJECTION22
PROJECTION23
PROJECTION32The struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description OVRTimewarpProjectionDesc(java.nio.ByteBuffer container)Creates aOVRTimewarpProjectionDescinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRTimewarpProjectionDesccalloc()Returns a newOVRTimewarpProjectionDescinstance allocated withmemCalloc.static OVRTimewarpProjectionDesc.Buffercalloc(int capacity)Returns a newOVRTimewarpProjectionDesc.Bufferinstance allocated withmemCalloc.static OVRTimewarpProjectionDesccallocStack()Returns a newOVRTimewarpProjectionDescinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRTimewarpProjectionDesc.BuffercallocStack(int capacity)Returns a newOVRTimewarpProjectionDesc.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRTimewarpProjectionDesc.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRTimewarpProjectionDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTimewarpProjectionDesccallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRTimewarpProjectionDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTimewarpProjectionDesccreate()Returns a newOVRTimewarpProjectionDescinstance allocated withBufferUtils.static OVRTimewarpProjectionDesc.Buffercreate(int capacity)Returns a newOVRTimewarpProjectionDesc.Bufferinstance allocated withBufferUtils.static OVRTimewarpProjectionDesccreate(long address)Returns a newOVRTimewarpProjectionDescinstance for the specified memory address.static OVRTimewarpProjectionDesc.Buffercreate(long address, int capacity)Create aOVRTimewarpProjectionDesc.Bufferinstance at the specified memory.static OVRTimewarpProjectionDesccreateSafe(long address)static OVRTimewarpProjectionDesc.BuffercreateSafe(long address, int capacity)static OVRTimewarpProjectionDescmalloc()Returns a newOVRTimewarpProjectionDescinstance allocated withmemAlloc.static OVRTimewarpProjectionDesc.Buffermalloc(int capacity)Returns a newOVRTimewarpProjectionDesc.Bufferinstance allocated withmemAlloc.static OVRTimewarpProjectionDescmallocStack()Returns a newOVRTimewarpProjectionDescinstance allocated on the thread-localMemoryStack.static OVRTimewarpProjectionDesc.BuffermallocStack(int capacity)Returns a newOVRTimewarpProjectionDesc.Bufferinstance allocated on the thread-localMemoryStack.static OVRTimewarpProjectionDesc.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRTimewarpProjectionDesc.Bufferinstance allocated on the specifiedMemoryStack.static OVRTimewarpProjectionDescmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRTimewarpProjectionDescinstance allocated on the specifiedMemoryStack.static floatnProjection22(long struct)Unsafe version ofProjection22().static floatnProjection23(long struct)Unsafe version ofProjection23().static floatnProjection32(long struct)Unsafe version ofProjection32().floatProjection22()Returns the value of theProjection22field.floatProjection23()Returns the value of theProjection23field.floatProjection32()Returns the value of theProjection32field.intsizeof()
-
-
-
Constructor Detail
-
OVRTimewarpProjectionDesc
public OVRTimewarpProjectionDesc(java.nio.ByteBuffer container)
Creates aOVRTimewarpProjectionDescinstance 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
-
Projection22
public float Projection22()
Returns the value of theProjection22field.
-
Projection23
public float Projection23()
Returns the value of theProjection23field.
-
Projection32
public float Projection32()
Returns the value of theProjection32field.
-
malloc
public static OVRTimewarpProjectionDesc malloc()
Returns a newOVRTimewarpProjectionDescinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRTimewarpProjectionDesc calloc()
Returns a newOVRTimewarpProjectionDescinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRTimewarpProjectionDesc create()
Returns a newOVRTimewarpProjectionDescinstance allocated withBufferUtils.
-
create
public static OVRTimewarpProjectionDesc create(long address)
Returns a newOVRTimewarpProjectionDescinstance for the specified memory address.
-
createSafe
@Nullable public static OVRTimewarpProjectionDesc createSafe(long address)
-
malloc
public static OVRTimewarpProjectionDesc.Buffer malloc(int capacity)
Returns a newOVRTimewarpProjectionDesc.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRTimewarpProjectionDesc.Buffer calloc(int capacity)
Returns a newOVRTimewarpProjectionDesc.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRTimewarpProjectionDesc.Buffer create(int capacity)
Returns a newOVRTimewarpProjectionDesc.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRTimewarpProjectionDesc.Buffer create(long address, int capacity)
Create aOVRTimewarpProjectionDesc.Bufferinstance 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 newOVRTimewarpProjectionDescinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRTimewarpProjectionDesc callocStack()
Returns a newOVRTimewarpProjectionDescinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRTimewarpProjectionDesc mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTimewarpProjectionDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRTimewarpProjectionDesc callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTimewarpProjectionDescinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRTimewarpProjectionDesc.Buffer callocStack(int capacity)
Returns a newOVRTimewarpProjectionDesc.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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().
-
-