Package org.lwjgl.openvr
Class HmdMatrix34
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.HmdMatrix34
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class HmdMatrix34 extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct HmdMatrix34_t { float m[12]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHmdMatrix34.BufferAn array ofHmdMatrix34structs.
-
Constructor Summary
Constructors Constructor Description HmdMatrix34(java.nio.ByteBuffer container)Creates aHmdMatrix34instance 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 HmdMatrix34calloc()Returns a newHmdMatrix34instance allocated withmemCalloc.static HmdMatrix34.Buffercalloc(int capacity)Returns a newHmdMatrix34.Bufferinstance allocated withmemCalloc.static HmdMatrix34.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newHmdMatrix34.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HmdMatrix34calloc(org.lwjgl.system.MemoryStack stack)Returns a newHmdMatrix34instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HmdMatrix34callocStack()Deprecated.static HmdMatrix34.BuffercallocStack(int capacity)Deprecated.static HmdMatrix34.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static HmdMatrix34callocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static HmdMatrix34create()Returns a newHmdMatrix34instance allocated withBufferUtils.static HmdMatrix34.Buffercreate(int capacity)Returns a newHmdMatrix34.Bufferinstance allocated withBufferUtils.static HmdMatrix34create(long address)Returns a newHmdMatrix34instance for the specified memory address.static HmdMatrix34.Buffercreate(long address, int capacity)Create aHmdMatrix34.Bufferinstance at the specified memory.static HmdMatrix34createSafe(long address)static HmdMatrix34.BuffercreateSafe(long address, int capacity)java.nio.FloatBufferm()floatm(int index)HmdMatrix34m(int index, float value)Sets the specified value at the specified index of themfield.HmdMatrix34m(java.nio.FloatBuffer value)Copies the specifiedFloatBufferto themfield.static HmdMatrix34malloc()Returns a newHmdMatrix34instance allocated withmemAlloc.static HmdMatrix34.Buffermalloc(int capacity)Returns a newHmdMatrix34.Bufferinstance allocated withmemAlloc.static HmdMatrix34.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newHmdMatrix34.Bufferinstance allocated on the specifiedMemoryStack.static HmdMatrix34malloc(org.lwjgl.system.MemoryStack stack)Returns a newHmdMatrix34instance allocated on the specifiedMemoryStack.static HmdMatrix34mallocStack()Deprecated.static HmdMatrix34.BuffermallocStack(int capacity)Deprecated.static HmdMatrix34.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static HmdMatrix34mallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static java.nio.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, java.nio.FloatBuffer value)Unsafe version ofm.HmdMatrix34set(HmdMatrix34 src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
HmdMatrix34
public HmdMatrix34(java.nio.ByteBuffer container)
Creates aHmdMatrix34instance 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
-
m
public java.nio.FloatBuffer m()
- Returns:
- a
FloatBufferview of themfield.
-
m
public float m(int index)
- Returns:
- the value at the specified index of the
mfield.
-
m
public HmdMatrix34 m(java.nio.FloatBuffer value)
Copies the specifiedFloatBufferto themfield.
-
m
public HmdMatrix34 m(int index, float value)
Sets the specified value at the specified index of themfield.
-
set
public HmdMatrix34 set(HmdMatrix34 src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static HmdMatrix34 malloc()
Returns a newHmdMatrix34instance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static HmdMatrix34 calloc()
Returns a newHmdMatrix34instance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static HmdMatrix34 create()
Returns a newHmdMatrix34instance allocated withBufferUtils.
-
create
public static HmdMatrix34 create(long address)
Returns a newHmdMatrix34instance for the specified memory address.
-
createSafe
@Nullable public static HmdMatrix34 createSafe(long address)
-
malloc
public static HmdMatrix34.Buffer malloc(int capacity)
Returns a newHmdMatrix34.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static HmdMatrix34.Buffer calloc(int capacity)
Returns a newHmdMatrix34.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static HmdMatrix34.Buffer create(int capacity)
Returns a newHmdMatrix34.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static HmdMatrix34.Buffer create(long address, int capacity)
Create aHmdMatrix34.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static HmdMatrix34.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static HmdMatrix34 mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static HmdMatrix34 callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static HmdMatrix34 mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static HmdMatrix34 callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static HmdMatrix34.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static HmdMatrix34.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static HmdMatrix34.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 HmdMatrix34.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static HmdMatrix34 malloc(org.lwjgl.system.MemoryStack stack)
Returns a newHmdMatrix34instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static HmdMatrix34 calloc(org.lwjgl.system.MemoryStack stack)
Returns a newHmdMatrix34instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static HmdMatrix34.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHmdMatrix34.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static HmdMatrix34.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHmdMatrix34.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nm
public static java.nio.FloatBuffer nm(long struct)
Unsafe version ofm().
-
nm
public static float nm(long struct, int index)Unsafe version ofm.
-
nm
public static void nm(long struct, java.nio.FloatBuffer value)Unsafe version ofm.
-
nm
public static void nm(long struct, int index, float value)Unsafe version ofm.
-
-