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.NativeResourceAllows 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_tmDeviceToAbsoluteTracking; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVRTextureWithPose.BufferAn array ofVRTextureWithPosestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMDEVICETOABSOLUTETRACKINGThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VRTextureWithPose(java.nio.ByteBuffer container)Creates aVRTextureWithPoseinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VRTextureWithPosecalloc()Returns a newVRTextureWithPoseinstance allocated withmemCalloc.static VRTextureWithPose.Buffercalloc(int capacity)Returns a newVRTextureWithPose.Bufferinstance allocated withmemCalloc.static VRTextureWithPosecallocStack()Returns a newVRTextureWithPoseinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VRTextureWithPose.BuffercallocStack(int capacity)Returns a newVRTextureWithPose.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VRTextureWithPose.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithPose.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRTextureWithPosecallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithPoseinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRTextureWithPosecreate()Returns a newVRTextureWithPoseinstance allocated withBufferUtils.static VRTextureWithPose.Buffercreate(int capacity)Returns a newVRTextureWithPose.Bufferinstance allocated withBufferUtils.static VRTextureWithPosecreate(long address)Returns a newVRTextureWithPoseinstance for the specified memory address.static VRTextureWithPose.Buffercreate(long address, int capacity)Create aVRTextureWithPose.Bufferinstance at the specified memory.static VRTextureWithPosecreateSafe(long address)static VRTextureWithPose.BuffercreateSafe(long address, int capacity)static VRTextureWithPosemalloc()Returns a newVRTextureWithPoseinstance allocated withmemAlloc.static VRTextureWithPose.Buffermalloc(int capacity)Returns a newVRTextureWithPose.Bufferinstance allocated withmemAlloc.static VRTextureWithPosemallocStack()Returns a newVRTextureWithPoseinstance allocated on the thread-localMemoryStack.static VRTextureWithPose.BuffermallocStack(int capacity)Returns a newVRTextureWithPose.Bufferinstance allocated on the thread-localMemoryStack.static VRTextureWithPose.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithPose.Bufferinstance allocated on the specifiedMemoryStack.static VRTextureWithPosemallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithPoseinstance allocated on the specifiedMemoryStack.HmdMatrix34mDeviceToAbsoluteTracking()Returns aHmdMatrix34view of themDeviceToAbsoluteTrackingfield.VRTextureWithPosemDeviceToAbsoluteTracking(java.util.function.Consumer<HmdMatrix34> consumer)Passes themDeviceToAbsoluteTrackingfield to the specifiedConsumer.VRTextureWithPosemDeviceToAbsoluteTracking(HmdMatrix34 value)Copies the specifiedHmdMatrix34to themDeviceToAbsoluteTrackingfield.static HmdMatrix34nmDeviceToAbsoluteTracking(long struct)Unsafe version ofmDeviceToAbsoluteTracking().static voidnmDeviceToAbsoluteTracking(long struct, HmdMatrix34 value)Unsafe version ofmDeviceToAbsoluteTracking.VRTextureWithPoseset(VRTextureWithPose src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
VRTextureWithPose
public VRTextureWithPose(java.nio.ByteBuffer container)
Creates aVRTextureWithPoseinstance 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
-
mDeviceToAbsoluteTracking
public HmdMatrix34 mDeviceToAbsoluteTracking()
Returns aHmdMatrix34view of themDeviceToAbsoluteTrackingfield.
-
mDeviceToAbsoluteTracking
public VRTextureWithPose mDeviceToAbsoluteTracking(HmdMatrix34 value)
Copies the specifiedHmdMatrix34to themDeviceToAbsoluteTrackingfield.
-
mDeviceToAbsoluteTracking
public VRTextureWithPose mDeviceToAbsoluteTracking(java.util.function.Consumer<HmdMatrix34> consumer)
Passes themDeviceToAbsoluteTrackingfield 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 newVRTextureWithPoseinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VRTextureWithPose calloc()
Returns a newVRTextureWithPoseinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VRTextureWithPose create()
Returns a newVRTextureWithPoseinstance allocated withBufferUtils.
-
create
public static VRTextureWithPose create(long address)
Returns a newVRTextureWithPoseinstance for the specified memory address.
-
createSafe
@Nullable public static VRTextureWithPose createSafe(long address)
-
malloc
public static VRTextureWithPose.Buffer malloc(int capacity)
Returns a newVRTextureWithPose.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VRTextureWithPose.Buffer calloc(int capacity)
Returns a newVRTextureWithPose.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VRTextureWithPose.Buffer create(int capacity)
Returns a newVRTextureWithPose.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VRTextureWithPose.Buffer create(long address, int capacity)
Create aVRTextureWithPose.Bufferinstance 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 newVRTextureWithPoseinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VRTextureWithPose callocStack()
Returns a newVRTextureWithPoseinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VRTextureWithPose mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPoseinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VRTextureWithPose callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPoseinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VRTextureWithPose.Buffer callocStack(int capacity)
Returns a newVRTextureWithPose.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-