Package org.lwjgl.openvr
Class HmdMatrix44
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.HmdMatrix44
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class HmdMatrix44 extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct HmdMatrix44_t { float m[16]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HmdMatrix44.Buffer
An array ofHmdMatrix44
structs.
-
Constructor Summary
Constructors Constructor Description HmdMatrix44(java.nio.ByteBuffer container)
Creates aHmdMatrix44
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 HmdMatrix44
calloc()
Returns a newHmdMatrix44
instance allocated withmemCalloc
.static HmdMatrix44.Buffer
calloc(int capacity)
Returns a newHmdMatrix44.Buffer
instance allocated withmemCalloc
.static HmdMatrix44
callocStack()
Returns a newHmdMatrix44
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static HmdMatrix44.Buffer
callocStack(int capacity)
Returns a newHmdMatrix44.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static HmdMatrix44.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHmdMatrix44.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static HmdMatrix44
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newHmdMatrix44
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static HmdMatrix44
create()
Returns a newHmdMatrix44
instance allocated withBufferUtils
.static HmdMatrix44.Buffer
create(int capacity)
Returns a newHmdMatrix44.Buffer
instance allocated withBufferUtils
.static HmdMatrix44
create(long address)
Returns a newHmdMatrix44
instance for the specified memory address.static HmdMatrix44.Buffer
create(long address, int capacity)
Create aHmdMatrix44.Buffer
instance at the specified memory.static HmdMatrix44
createSafe(long address)
static HmdMatrix44.Buffer
createSafe(long address, int capacity)
java.nio.FloatBuffer
m()
Returns aFloatBuffer
view of them
field.float
m(int index)
Returns the value at the specified index of them
field.HmdMatrix44
m(int index, float value)
Sets the specified value at the specified index of them
field.HmdMatrix44
m(java.nio.FloatBuffer value)
Copies the specifiedFloatBuffer
to them
field.static HmdMatrix44
malloc()
Returns a newHmdMatrix44
instance allocated withmemAlloc
.static HmdMatrix44.Buffer
malloc(int capacity)
Returns a newHmdMatrix44.Buffer
instance allocated withmemAlloc
.static HmdMatrix44
mallocStack()
Returns a newHmdMatrix44
instance allocated on the thread-localMemoryStack
.static HmdMatrix44.Buffer
mallocStack(int capacity)
Returns a newHmdMatrix44.Buffer
instance allocated on the thread-localMemoryStack
.static HmdMatrix44.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHmdMatrix44.Buffer
instance allocated on the specifiedMemoryStack
.static HmdMatrix44
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newHmdMatrix44
instance allocated on the specifiedMemoryStack
.static java.nio.FloatBuffer
nm(long struct)
Unsafe version ofm()
.static float
nm(long struct, int index)
Unsafe version ofm
.static void
nm(long struct, int index, float value)
Unsafe version ofm
.static void
nm(long struct, java.nio.FloatBuffer value)
Unsafe version ofm
.HmdMatrix44
set(HmdMatrix44 src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
HmdMatrix44
public HmdMatrix44(java.nio.ByteBuffer container)
Creates aHmdMatrix44
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
-
m
public java.nio.FloatBuffer m()
Returns aFloatBuffer
view of them
field.
-
m
public float m(int index)
Returns the value at the specified index of them
field.
-
m
public HmdMatrix44 m(java.nio.FloatBuffer value)
Copies the specifiedFloatBuffer
to them
field.
-
m
public HmdMatrix44 m(int index, float value)
Sets the specified value at the specified index of them
field.
-
set
public HmdMatrix44 set(HmdMatrix44 src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static HmdMatrix44 malloc()
Returns a newHmdMatrix44
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static HmdMatrix44 calloc()
Returns a newHmdMatrix44
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static HmdMatrix44 create()
Returns a newHmdMatrix44
instance allocated withBufferUtils
.
-
create
public static HmdMatrix44 create(long address)
Returns a newHmdMatrix44
instance for the specified memory address.
-
createSafe
@Nullable public static HmdMatrix44 createSafe(long address)
-
malloc
public static HmdMatrix44.Buffer malloc(int capacity)
Returns a newHmdMatrix44.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static HmdMatrix44.Buffer calloc(int capacity)
Returns a newHmdMatrix44.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static HmdMatrix44.Buffer create(int capacity)
Returns a newHmdMatrix44.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static HmdMatrix44.Buffer create(long address, int capacity)
Create aHmdMatrix44.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static HmdMatrix44.Buffer createSafe(long address, int capacity)
-
mallocStack
public static HmdMatrix44 mallocStack()
Returns a newHmdMatrix44
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static HmdMatrix44 callocStack()
Returns a newHmdMatrix44
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static HmdMatrix44 mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newHmdMatrix44
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static HmdMatrix44 callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newHmdMatrix44
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static HmdMatrix44.Buffer mallocStack(int capacity)
Returns a newHmdMatrix44.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static HmdMatrix44.Buffer callocStack(int capacity)
Returns a newHmdMatrix44.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static HmdMatrix44.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHmdMatrix44.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static HmdMatrix44.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHmdMatrix44.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-