Package org.lwjgl.ovr
Class OVRMatrix4f
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRMatrix4f>
org.lwjgl.ovr.OVRMatrix4f
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRMatrix4f
extends org.lwjgl.system.Struct<OVRMatrix4f>
implements org.lwjgl.system.NativeResource
A 4x4 matrix with float components.
Layout
struct ovrMatrix4f {
float M[16];
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRMatrix4f(ByteBuffer container) Creates aOVRMatrix4finstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRMatrix4fcalloc()Returns a newOVRMatrix4finstance allocated withmemCalloc.static OVRMatrix4f.Buffercalloc(int capacity) Returns a newOVRMatrix4f.Bufferinstance allocated withmemCalloc.static OVRMatrix4f.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRMatrix4f.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRMatrix4fcalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRMatrix4finstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRMatrix4fDeprecated.static OVRMatrix4f.BuffercallocStack(int capacity) Deprecated.static OVRMatrix4f.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRMatrix4fcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRMatrix4fcreate()Returns a newOVRMatrix4finstance allocated withBufferUtils.static OVRMatrix4f.Buffercreate(int capacity) Returns a newOVRMatrix4f.Bufferinstance allocated withBufferUtils.static OVRMatrix4fcreate(long address) Returns a newOVRMatrix4finstance for the specified memory address.static OVRMatrix4f.Buffercreate(long address, int capacity) Create aOVRMatrix4f.Bufferinstance at the specified memory.static @Nullable OVRMatrix4fcreateSafe(long address) static @Nullable OVRMatrix4f.BuffercreateSafe(long address, int capacity) M()the matrix componentsfloatM(int index) the matrix componentsM(int index, float value) Sets the specified value at the specified index of theMfield.M(FloatBuffer value) Copies the specifiedFloatBufferto theMfield.static OVRMatrix4fmalloc()Returns a newOVRMatrix4finstance allocated withmemAlloc.static OVRMatrix4f.Buffermalloc(int capacity) Returns a newOVRMatrix4f.Bufferinstance allocated withmemAlloc.static OVRMatrix4f.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRMatrix4f.Bufferinstance allocated on the specifiedMemoryStack.static OVRMatrix4fmalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRMatrix4finstance allocated on the specifiedMemoryStack.static OVRMatrix4fDeprecated.static OVRMatrix4f.BuffermallocStack(int capacity) Deprecated.static OVRMatrix4f.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRMatrix4fmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static FloatBuffernM(long struct) Unsafe version ofM.static floatnM(long struct, int index) Unsafe version ofM.static voidnM(long struct, int index, float value) Unsafe version ofM.static voidnM(long struct, FloatBuffer value) Unsafe version ofM.set(OVRMatrix4f src) Copies the specified struct data to this struct.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
M
public static final int MThe struct member offsets.
-
-
Constructor Details
-
OVRMatrix4f
Creates aOVRMatrix4finstance 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<OVRMatrix4f>
-
M
the matrix components -
M
public float M(int index) the matrix components -
M
Copies the specifiedFloatBufferto theMfield. -
M
Sets the specified value at the specified index of theMfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newOVRMatrix4finstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRMatrix4finstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRMatrix4finstance allocated withBufferUtils. -
create
Returns a newOVRMatrix4finstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRMatrix4f.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRMatrix4f.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRMatrix4f.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRMatrix4f.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static OVRMatrix4f.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 OVRMatrix4f.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRMatrix4finstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRMatrix4finstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRMatrix4f.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRMatrix4f.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nM
Unsafe version ofM. -
nM
public static float nM(long struct, int index) Unsafe version ofM. -
nM
Unsafe version ofM. -
nM
public static void nM(long struct, int index, float value) Unsafe version ofM.
-