Package org.lwjgl.openvr
Class VRTextureWithPoseAndDepth
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VRTextureWithPoseAndDepth
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VRTextureWithPoseAndDepth extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct VRTextureWithPoseAndDepth_t { void * handle; ETextureType eType; EColorSpace eColorSpace;HmdMatrix34_tmDeviceToAbsoluteTracking;VRTextureDepthInfo_tdepth; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVRTextureWithPoseAndDepth.BufferAn array ofVRTextureWithPoseAndDepthstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDEPTH
ECOLORSPACE
ETYPE
HANDLE
MDEVICETOABSOLUTETRACKINGThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VRTextureWithPoseAndDepth(java.nio.ByteBuffer container)Creates aVRTextureWithPoseAndDepthinstance 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 VRTextureWithPoseAndDepthcalloc()Returns a newVRTextureWithPoseAndDepthinstance allocated withmemCalloc.static VRTextureWithPoseAndDepth.Buffercalloc(int capacity)Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated withmemCalloc.static VRTextureWithPoseAndDepth.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRTextureWithPoseAndDepthcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithPoseAndDepthinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRTextureWithPoseAndDepthcallocStack()Deprecated.static VRTextureWithPoseAndDepth.BuffercallocStack(int capacity)Deprecated.static VRTextureWithPoseAndDepth.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VRTextureWithPoseAndDepthcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VRTextureWithPoseAndDepthcreate()Returns a newVRTextureWithPoseAndDepthinstance allocated withBufferUtils.static VRTextureWithPoseAndDepth.Buffercreate(int capacity)Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated withBufferUtils.static VRTextureWithPoseAndDepthcreate(long address)Returns a newVRTextureWithPoseAndDepthinstance for the specified memory address.static VRTextureWithPoseAndDepth.Buffercreate(long address, int capacity)Create aVRTextureWithPoseAndDepth.Bufferinstance at the specified memory.static VRTextureWithPoseAndDepthcreateSafe(long address)static VRTextureWithPoseAndDepth.BuffercreateSafe(long address, int capacity)VRTextureDepthInfodepth()VRTextureWithPoseAndDepthdepth(java.util.function.Consumer<VRTextureDepthInfo> consumer)Passes thedepthfield to the specifiedConsumer.VRTextureWithPoseAndDepthdepth(VRTextureDepthInfo value)Copies the specifiedVRTextureDepthInfoto thedepthfield.inteColorSpace()VRTextureWithPoseAndDeptheColorSpace(int value)Sets the specified value to theeColorSpacefield.inteType()VRTextureWithPoseAndDeptheType(int value)Sets the specified value to theeTypefield.longhandle()VRTextureWithPoseAndDepthhandle(long value)Sets the specified value to thehandlefield.static VRTextureWithPoseAndDepthmalloc()Returns a newVRTextureWithPoseAndDepthinstance allocated withmemAlloc.static VRTextureWithPoseAndDepth.Buffermalloc(int capacity)Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated withmemAlloc.static VRTextureWithPoseAndDepth.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated on the specifiedMemoryStack.static VRTextureWithPoseAndDepthmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithPoseAndDepthinstance allocated on the specifiedMemoryStack.static VRTextureWithPoseAndDepthmallocStack()Deprecated.static VRTextureWithPoseAndDepth.BuffermallocStack(int capacity)Deprecated.static VRTextureWithPoseAndDepth.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VRTextureWithPoseAndDepthmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.HmdMatrix34mDeviceToAbsoluteTracking()VRTextureWithPoseAndDepthmDeviceToAbsoluteTracking(java.util.function.Consumer<HmdMatrix34> consumer)Passes themDeviceToAbsoluteTrackingfield to the specifiedConsumer.VRTextureWithPoseAndDepthmDeviceToAbsoluteTracking(HmdMatrix34 value)Copies the specifiedHmdMatrix34to themDeviceToAbsoluteTrackingfield.static VRTextureDepthInfondepth(long struct)Unsafe version ofdepth().static voidndepth(long struct, VRTextureDepthInfo value)Unsafe version ofdepth.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.VRTextureWithPoseAndDepthset(long handle, int eType, int eColorSpace, HmdMatrix34 mDeviceToAbsoluteTracking, VRTextureDepthInfo depth)Initializes this struct with the specified values.VRTextureWithPoseAndDepthset(VRTextureWithPoseAndDepth src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VRTextureWithPoseAndDepth
public VRTextureWithPoseAndDepth(java.nio.ByteBuffer container)
Creates aVRTextureWithPoseAndDepthinstance 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()
- Returns:
- a
HmdMatrix34view of themDeviceToAbsoluteTrackingfield.
-
depth
public VRTextureDepthInfo depth()
- Returns:
- a
VRTextureDepthInfoview of thedepthfield.
-
handle
public VRTextureWithPoseAndDepth handle(long value)
Sets the specified value to thehandlefield.
-
eType
public VRTextureWithPoseAndDepth eType(int value)
Sets the specified value to theeTypefield.
-
eColorSpace
public VRTextureWithPoseAndDepth eColorSpace(int value)
Sets the specified value to theeColorSpacefield.
-
mDeviceToAbsoluteTracking
public VRTextureWithPoseAndDepth mDeviceToAbsoluteTracking(HmdMatrix34 value)
Copies the specifiedHmdMatrix34to themDeviceToAbsoluteTrackingfield.
-
mDeviceToAbsoluteTracking
public VRTextureWithPoseAndDepth mDeviceToAbsoluteTracking(java.util.function.Consumer<HmdMatrix34> consumer)
Passes themDeviceToAbsoluteTrackingfield to the specifiedConsumer.
-
depth
public VRTextureWithPoseAndDepth depth(VRTextureDepthInfo value)
Copies the specifiedVRTextureDepthInfoto thedepthfield.
-
depth
public VRTextureWithPoseAndDepth depth(java.util.function.Consumer<VRTextureDepthInfo> consumer)
Passes thedepthfield to the specifiedConsumer.
-
set
public VRTextureWithPoseAndDepth set(long handle, int eType, int eColorSpace, HmdMatrix34 mDeviceToAbsoluteTracking, VRTextureDepthInfo depth)
Initializes this struct with the specified values.
-
set
public VRTextureWithPoseAndDepth set(VRTextureWithPoseAndDepth src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VRTextureWithPoseAndDepth malloc()
Returns a newVRTextureWithPoseAndDepthinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VRTextureWithPoseAndDepth calloc()
Returns a newVRTextureWithPoseAndDepthinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VRTextureWithPoseAndDepth create()
Returns a newVRTextureWithPoseAndDepthinstance allocated withBufferUtils.
-
create
public static VRTextureWithPoseAndDepth create(long address)
Returns a newVRTextureWithPoseAndDepthinstance for the specified memory address.
-
createSafe
@Nullable public static VRTextureWithPoseAndDepth createSafe(long address)
-
malloc
public static VRTextureWithPoseAndDepth.Buffer malloc(int capacity)
Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VRTextureWithPoseAndDepth.Buffer calloc(int capacity)
Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VRTextureWithPoseAndDepth.Buffer create(int capacity)
Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VRTextureWithPoseAndDepth.Buffer create(long address, int capacity)
Create aVRTextureWithPoseAndDepth.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VRTextureWithPoseAndDepth.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VRTextureWithPoseAndDepth mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VRTextureWithPoseAndDepth callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VRTextureWithPoseAndDepth mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VRTextureWithPoseAndDepth callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VRTextureWithPoseAndDepth.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VRTextureWithPoseAndDepth.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VRTextureWithPoseAndDepth.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 VRTextureWithPoseAndDepth.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VRTextureWithPoseAndDepth malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPoseAndDepthinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VRTextureWithPoseAndDepth calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPoseAndDepthinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VRTextureWithPoseAndDepth.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VRTextureWithPoseAndDepth.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPoseAndDepth.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().
-
ndepth
public static VRTextureDepthInfo ndepth(long struct)
Unsafe version ofdepth().
-
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.
-
ndepth
public static void ndepth(long struct, VRTextureDepthInfo value)Unsafe version ofdepth.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-