Package org.lwjgl.openvr
Class VRTextureWithPose
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VRTextureWithPose
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VRTextureWithPose extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Allows specifying pose used to render provided scene texture (if different from value returned byWaitGetPoses
).Member documentation
mDeviceToAbsoluteTracking
– actual pose used to render scene textures
Layout
struct VRTextureWithPose_t {
HmdMatrix34_t
mDeviceToAbsoluteTracking; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VRTextureWithPose.Buffer
An array ofVRTextureWithPose
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
MDEVICETOABSOLUTETRACKING
The struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VRTextureWithPose(java.nio.ByteBuffer container)
Creates aVRTextureWithPose
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 VRTextureWithPose
calloc()
Returns a newVRTextureWithPose
instance allocated withmemCalloc
.static VRTextureWithPose.Buffer
calloc(int capacity)
Returns a newVRTextureWithPose.Buffer
instance allocated withmemCalloc
.static VRTextureWithPose
callocStack()
Returns a newVRTextureWithPose
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VRTextureWithPose.Buffer
callocStack(int capacity)
Returns a newVRTextureWithPose.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VRTextureWithPose.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPose.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VRTextureWithPose
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPose
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VRTextureWithPose
create()
Returns a newVRTextureWithPose
instance allocated withBufferUtils
.static VRTextureWithPose.Buffer
create(int capacity)
Returns a newVRTextureWithPose.Buffer
instance allocated withBufferUtils
.static VRTextureWithPose
create(long address)
Returns a newVRTextureWithPose
instance for the specified memory address.static VRTextureWithPose.Buffer
create(long address, int capacity)
Create aVRTextureWithPose.Buffer
instance at the specified memory.static VRTextureWithPose
createSafe(long address)
static VRTextureWithPose.Buffer
createSafe(long address, int capacity)
static VRTextureWithPose
malloc()
Returns a newVRTextureWithPose
instance allocated withmemAlloc
.static VRTextureWithPose.Buffer
malloc(int capacity)
Returns a newVRTextureWithPose.Buffer
instance allocated withmemAlloc
.static VRTextureWithPose
mallocStack()
Returns a newVRTextureWithPose
instance allocated on the thread-localMemoryStack
.static VRTextureWithPose.Buffer
mallocStack(int capacity)
Returns a newVRTextureWithPose.Buffer
instance allocated on the thread-localMemoryStack
.static VRTextureWithPose.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPose.Buffer
instance allocated on the specifiedMemoryStack
.static VRTextureWithPose
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPose
instance allocated on the specifiedMemoryStack
.HmdMatrix34
mDeviceToAbsoluteTracking()
Returns aHmdMatrix34
view of themDeviceToAbsoluteTracking
field.VRTextureWithPose
mDeviceToAbsoluteTracking(java.util.function.Consumer<HmdMatrix34> consumer)
Passes themDeviceToAbsoluteTracking
field to the specifiedConsumer
.VRTextureWithPose
mDeviceToAbsoluteTracking(HmdMatrix34 value)
Copies the specifiedHmdMatrix34
to themDeviceToAbsoluteTracking
field.static HmdMatrix34
nmDeviceToAbsoluteTracking(long struct)
Unsafe version ofmDeviceToAbsoluteTracking()
.static void
nmDeviceToAbsoluteTracking(long struct, HmdMatrix34 value)
Unsafe version ofmDeviceToAbsoluteTracking
.VRTextureWithPose
set(VRTextureWithPose src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
VRTextureWithPose
public VRTextureWithPose(java.nio.ByteBuffer container)
Creates aVRTextureWithPose
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
-
mDeviceToAbsoluteTracking
public HmdMatrix34 mDeviceToAbsoluteTracking()
Returns aHmdMatrix34
view of themDeviceToAbsoluteTracking
field.
-
mDeviceToAbsoluteTracking
public VRTextureWithPose mDeviceToAbsoluteTracking(HmdMatrix34 value)
Copies the specifiedHmdMatrix34
to themDeviceToAbsoluteTracking
field.
-
mDeviceToAbsoluteTracking
public VRTextureWithPose mDeviceToAbsoluteTracking(java.util.function.Consumer<HmdMatrix34> consumer)
Passes themDeviceToAbsoluteTracking
field to the specifiedConsumer
.
-
set
public VRTextureWithPose set(VRTextureWithPose src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VRTextureWithPose malloc()
Returns a newVRTextureWithPose
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VRTextureWithPose calloc()
Returns a newVRTextureWithPose
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VRTextureWithPose create()
Returns a newVRTextureWithPose
instance allocated withBufferUtils
.
-
create
public static VRTextureWithPose create(long address)
Returns a newVRTextureWithPose
instance for the specified memory address.
-
createSafe
@Nullable public static VRTextureWithPose createSafe(long address)
-
malloc
public static VRTextureWithPose.Buffer malloc(int capacity)
Returns a newVRTextureWithPose.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VRTextureWithPose.Buffer calloc(int capacity)
Returns a newVRTextureWithPose.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VRTextureWithPose.Buffer create(int capacity)
Returns a newVRTextureWithPose.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VRTextureWithPose.Buffer create(long address, int capacity)
Create aVRTextureWithPose.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VRTextureWithPose.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VRTextureWithPose mallocStack()
Returns a newVRTextureWithPose
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VRTextureWithPose callocStack()
Returns a newVRTextureWithPose
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VRTextureWithPose mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPose
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VRTextureWithPose callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPose
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VRTextureWithPose.Buffer mallocStack(int capacity)
Returns a newVRTextureWithPose.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VRTextureWithPose.Buffer callocStack(int capacity)
Returns a newVRTextureWithPose.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VRTextureWithPose.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPose.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VRTextureWithPose.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPose.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nmDeviceToAbsoluteTracking
public static HmdMatrix34 nmDeviceToAbsoluteTracking(long struct)
Unsafe version ofmDeviceToAbsoluteTracking()
.
-
nmDeviceToAbsoluteTracking
public static void nmDeviceToAbsoluteTracking(long struct, HmdMatrix34 value)
Unsafe version ofmDeviceToAbsoluteTracking
.
-
-