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).Layout
struct VRTextureWithPose_t { void * handle; ETextureType eType; EColorSpace eColorSpace;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 intECOLORSPACE
ETYPE
HANDLE
MDEVICETOABSOLUTETRACKINGThe 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 Deprecated 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 VRTextureWithPose.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithPose.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRTextureWithPosecalloc(org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithPoseinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRTextureWithPosecallocStack()Deprecated.static VRTextureWithPose.BuffercallocStack(int capacity)Deprecated.static VRTextureWithPose.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VRTextureWithPosecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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)inteColorSpace()VRTextureWithPoseeColorSpace(int value)Sets the specified value to theeColorSpacefield.inteType()VRTextureWithPoseeType(int value)Sets the specified value to theeTypefield.longhandle()VRTextureWithPosehandle(long value)Sets the specified value to thehandlefield.static VRTextureWithPosemalloc()Returns a newVRTextureWithPoseinstance allocated withmemAlloc.static VRTextureWithPose.Buffermalloc(int capacity)Returns a newVRTextureWithPose.Bufferinstance allocated withmemAlloc.static VRTextureWithPose.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithPose.Bufferinstance allocated on the specifiedMemoryStack.static VRTextureWithPosemalloc(org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithPoseinstance allocated on the specifiedMemoryStack.static VRTextureWithPosemallocStack()Deprecated.static VRTextureWithPose.BuffermallocStack(int capacity)Deprecated.static VRTextureWithPose.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VRTextureWithPosemallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.HmdMatrix34mDeviceToAbsoluteTracking()actual pose used to render scene texturesVRTextureWithPosemDeviceToAbsoluteTracking(java.util.function.Consumer<HmdMatrix34> consumer)Passes themDeviceToAbsoluteTracking()field to the specifiedConsumer.VRTextureWithPosemDeviceToAbsoluteTracking(HmdMatrix34 value)Copies the specifiedHmdMatrix34to themDeviceToAbsoluteTracking()field.static intneColorSpace(long struct)Unsafe version ofeColorSpace().static voidneColorSpace(long struct, int value)Unsafe version ofeColorSpace.static intneType(long struct)Unsafe version ofeType().static voidneType(long struct, int value)Unsafe version ofeType.static longnhandle(long struct)Unsafe version ofhandle().static voidnhandle(long struct, long value)Unsafe version ofhandle.static HmdMatrix34nmDeviceToAbsoluteTracking(long struct)Unsafe version ofmDeviceToAbsoluteTracking().static voidnmDeviceToAbsoluteTracking(long struct, HmdMatrix34 value)Unsafe version ofmDeviceToAbsoluteTracking.VRTextureWithPoseset(long handle, int eType, int eColorSpace, HmdMatrix34 mDeviceToAbsoluteTracking)Initializes this struct with the specified values.VRTextureWithPoseset(VRTextureWithPose src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
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
-
handle
public long handle()
- Returns:
- the value of the
handlefield.
-
eType
public int eType()
- Returns:
- the value of the
eTypefield.
-
eColorSpace
public int eColorSpace()
- Returns:
- the value of the
eColorSpacefield.
-
mDeviceToAbsoluteTracking
public HmdMatrix34 mDeviceToAbsoluteTracking()
actual pose used to render scene textures
-
handle
public VRTextureWithPose handle(long value)
Sets the specified value to thehandlefield.
-
eType
public VRTextureWithPose eType(int value)
Sets the specified value to theeTypefield.
-
eColorSpace
public VRTextureWithPose eColorSpace(int value)
Sets the specified value to theeColorSpacefield.
-
mDeviceToAbsoluteTracking
public VRTextureWithPose mDeviceToAbsoluteTracking(HmdMatrix34 value)
Copies the specifiedHmdMatrix34to themDeviceToAbsoluteTracking()field.
-
mDeviceToAbsoluteTracking
public VRTextureWithPose mDeviceToAbsoluteTracking(java.util.function.Consumer<HmdMatrix34> consumer)
Passes themDeviceToAbsoluteTracking()field to the specifiedConsumer.
-
set
public VRTextureWithPose set(long handle, int eType, int eColorSpace, HmdMatrix34 mDeviceToAbsoluteTracking)
Initializes this struct with the specified values.
-
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
@Deprecated public static VRTextureWithPose mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VRTextureWithPose callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VRTextureWithPose mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VRTextureWithPose callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VRTextureWithPose.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VRTextureWithPose.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VRTextureWithPose.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 VRTextureWithPose.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VRTextureWithPose malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPoseinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VRTextureWithPose calloc(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
-
malloc
public static VRTextureWithPose.Buffer malloc(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
-
calloc
public static VRTextureWithPose.Buffer calloc(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
-
nhandle
public static long nhandle(long struct)
Unsafe version ofhandle().
-
neType
public static int neType(long struct)
Unsafe version ofeType().
-
neColorSpace
public static int neColorSpace(long struct)
Unsafe version ofeColorSpace().
-
nmDeviceToAbsoluteTracking
public static HmdMatrix34 nmDeviceToAbsoluteTracking(long struct)
Unsafe version ofmDeviceToAbsoluteTracking().
-
nhandle
public static void nhandle(long struct, long value)Unsafe version ofhandle.
-
neType
public static void neType(long struct, int value)Unsafe version ofeType.
-
neColorSpace
public static void neColorSpace(long struct, int value)Unsafe version ofeColorSpace.
-
nmDeviceToAbsoluteTracking
public static void nmDeviceToAbsoluteTracking(long struct, HmdMatrix34 value)Unsafe version ofmDeviceToAbsoluteTracking.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-