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.Layout
struct ovrTimewarpProjectionDesc { floatProjection22(); floatProjection23(); floatProjection32(); }
-
-
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 Deprecated 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 OVRTimewarpProjectionDesc.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRTimewarpProjectionDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTimewarpProjectionDesccalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRTimewarpProjectionDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTimewarpProjectionDesccallocStack()Deprecated.static OVRTimewarpProjectionDesc.BuffercallocStack(int capacity)Deprecated.static OVRTimewarpProjectionDesc.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static OVRTimewarpProjectionDesccallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 OVRTimewarpProjectionDesc.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRTimewarpProjectionDesc.Bufferinstance allocated on the specifiedMemoryStack.static OVRTimewarpProjectionDescmalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRTimewarpProjectionDescinstance allocated on the specifiedMemoryStack.static OVRTimewarpProjectionDescmallocStack()Deprecated.static OVRTimewarpProjectionDesc.BuffermallocStack(int capacity)Deprecated.static OVRTimewarpProjectionDesc.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static OVRTimewarpProjectionDescmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static floatnProjection22(long struct)Unsafe version ofProjection22().static floatnProjection23(long struct)Unsafe version ofProjection23().static floatnProjection32(long struct)Unsafe version ofProjection32().floatProjection22()projection matrix element [2][2]floatProjection23()projection matrix element [2][3]floatProjection32()projection matrix element [3][2]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()
projection matrix element [2][2]
-
Projection23
public float Projection23()
projection matrix element [2][3]
-
Projection32
public float Projection32()
projection matrix element [3][2]
-
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
@Deprecated public static OVRTimewarpProjectionDesc mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRTimewarpProjectionDesc callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRTimewarpProjectionDesc mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRTimewarpProjectionDesc callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRTimewarpProjectionDesc.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static OVRTimewarpProjectionDesc.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRTimewarpProjectionDesc.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 OVRTimewarpProjectionDesc.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static OVRTimewarpProjectionDesc malloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTimewarpProjectionDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static OVRTimewarpProjectionDesc calloc(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
-
malloc
public static OVRTimewarpProjectionDesc.Buffer malloc(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
-
calloc
public static OVRTimewarpProjectionDesc.Buffer calloc(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().
-
-