Package org.lwjgl.openvr
Class VRTextureWithPose
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VRTextureWithPose>
org.lwjgl.openvr.VRTextureWithPose
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VRTextureWithPose
extends org.lwjgl.system.Struct<VRTextureWithPose>
implements org.lwjgl.system.NativeResource
Allows specifying pose used to render provided scene texture (if different from value returned by
WaitGetPoses).
Layout
struct VRTextureWithPose_t {
void * handle;
ETextureType eType;
EColorSpace eColorSpace;
HmdMatrix34_t mDeviceToAbsoluteTracking();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVRTextureWithPose(ByteBuffer container) Creates aVRTextureWithPoseinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 VRTextureWithPoseDeprecated.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 @Nullable VRTextureWithPosecreateSafe(long address) static @Nullable VRTextureWithPose.BuffercreateSafe(long address, int capacity) inteColorSpace(int value) Sets the specified value to theeColorSpacefield.inteType()eType(int value) Sets the specified value to theeTypefield.longhandle()handle(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 VRTextureWithPoseDeprecated.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.actual pose used to render scene texturesmDeviceToAbsoluteTracking(Consumer<HmdMatrix34> consumer) Passes themDeviceToAbsoluteTracking()field to the specifiedConsumer.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.set(long handle, int eType, int eColorSpace, HmdMatrix34 mDeviceToAbsoluteTracking) Initializes this struct with the specified values.set(VRTextureWithPose src) Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
HANDLE
public static final int HANDLEThe struct member offsets. -
ETYPE
public static final int ETYPEThe struct member offsets. -
ECOLORSPACE
public static final int ECOLORSPACEThe struct member offsets. -
MDEVICETOABSOLUTETRACKING
public static final int MDEVICETOABSOLUTETRACKINGThe struct member offsets.
-
-
Constructor Details
-
VRTextureWithPose
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VRTextureWithPose>
-
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
actual pose used to render scene textures -
handle
Sets the specified value to thehandlefield. -
eType
Sets the specified value to theeTypefield. -
eColorSpace
Sets the specified value to theeColorSpacefield. -
mDeviceToAbsoluteTracking
Copies the specifiedHmdMatrix34to themDeviceToAbsoluteTracking()field. -
mDeviceToAbsoluteTracking
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
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVRTextureWithPoseinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVRTextureWithPoseinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVRTextureWithPoseinstance allocated withBufferUtils. -
create
Returns a newVRTextureWithPoseinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVRTextureWithPose.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVRTextureWithPose.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVRTextureWithPose.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVRTextureWithPose.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
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
Returns a newVRTextureWithPoseinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVRTextureWithPoseinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVRTextureWithPose.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVRTextureWithPose.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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
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
Unsafe version ofmDeviceToAbsoluteTracking. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-