Package org.lwjgl.openvr
Class VRTextureWithPoseAndDepth
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VRTextureWithPoseAndDepth
extends Struct<VRTextureWithPoseAndDepth>
implements NativeResource
Layout
struct VRTextureWithPoseAndDepth_t {
void * handle;
ETextureType eType;
EColorSpace eColorSpace;
HmdMatrix34_t
mDeviceToAbsoluteTracking;
VRTextureDepthInfo_t
depth;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionVRTextureWithPoseAndDepth
(ByteBuffer container) Creates aVRTextureWithPoseAndDepth
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VRTextureWithPoseAndDepth
calloc()
Returns a newVRTextureWithPoseAndDepth
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VRTextureWithPoseAndDepth
calloc
(MemoryStack stack) Returns a newVRTextureWithPoseAndDepth
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VRTextureWithPoseAndDepth
Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.static VRTextureWithPoseAndDepth
callocStack
(MemoryStack stack) Deprecated.static VRTextureWithPoseAndDepth
create()
Returns a newVRTextureWithPoseAndDepth
instance allocated withBufferUtils
.create
(int capacity) Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated withBufferUtils
.static VRTextureWithPoseAndDepth
create
(long address) Returns a newVRTextureWithPoseAndDepth
instance for the specified memory address.create
(long address, int capacity) Create aVRTextureWithPoseAndDepth.Buffer
instance at the specified memory.static VRTextureWithPoseAndDepth
createSafe
(long address) createSafe
(long address, int capacity) depth()
depth
(Consumer<VRTextureDepthInfo> consumer) Passes thedepth
field to the specifiedConsumer
.depth
(VRTextureDepthInfo value) Copies the specifiedVRTextureDepthInfo
to thedepth
field.int
eColorSpace
(int value) Sets the specified value to theeColorSpace
field.int
eType()
eType
(int value) Sets the specified value to theeType
field.long
handle()
handle
(long value) Sets the specified value to thehandle
field.static VRTextureWithPoseAndDepth
malloc()
Returns a newVRTextureWithPoseAndDepth
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated on the specifiedMemoryStack
.static VRTextureWithPoseAndDepth
malloc
(MemoryStack stack) Returns a newVRTextureWithPoseAndDepth
instance allocated on the specifiedMemoryStack
.static VRTextureWithPoseAndDepth
Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.static VRTextureWithPoseAndDepth
mallocStack
(MemoryStack stack) Deprecated.mDeviceToAbsoluteTracking
(Consumer<HmdMatrix34> consumer) Passes themDeviceToAbsoluteTracking
field to the specifiedConsumer
.Copies the specifiedHmdMatrix34
to themDeviceToAbsoluteTracking
field.static VRTextureDepthInfo
ndepth
(long struct) Unsafe version ofdepth()
.static void
ndepth
(long struct, VRTextureDepthInfo value) Unsafe version ofdepth
.static int
neColorSpace
(long struct) Unsafe version ofeColorSpace()
.static void
neColorSpace
(long struct, int value) Unsafe version ofeColorSpace
.static int
neType
(long struct) Unsafe version ofeType()
.static void
neType
(long struct, int value) Unsafe version ofeType
.static long
nhandle
(long struct) Unsafe version ofhandle()
.static void
nhandle
(long struct, long value) Unsafe version ofhandle
.static HmdMatrix34
nmDeviceToAbsoluteTracking
(long struct) Unsafe version ofmDeviceToAbsoluteTracking()
.static void
nmDeviceToAbsoluteTracking
(long struct, HmdMatrix34 value) Unsafe version ofmDeviceToAbsoluteTracking
.set
(long handle, int eType, int eColorSpace, HmdMatrix34 mDeviceToAbsoluteTracking, VRTextureDepthInfo depth) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
DEPTH
public static final int DEPTHThe struct member offsets.
-
-
Constructor Details
-
VRTextureWithPoseAndDepth
Creates aVRTextureWithPoseAndDepth
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VRTextureWithPoseAndDepth>
-
handle
public long handle()- Returns:
- the value of the
handle
field.
-
eType
public int eType()- Returns:
- the value of the
eType
field.
-
eColorSpace
public int eColorSpace()- Returns:
- the value of the
eColorSpace
field.
-
mDeviceToAbsoluteTracking
- Returns:
- a
HmdMatrix34
view of themDeviceToAbsoluteTracking
field.
-
depth
- Returns:
- a
VRTextureDepthInfo
view of thedepth
field.
-
handle
Sets the specified value to thehandle
field. -
eType
Sets the specified value to theeType
field. -
eColorSpace
Sets the specified value to theeColorSpace
field. -
mDeviceToAbsoluteTracking
Copies the specifiedHmdMatrix34
to themDeviceToAbsoluteTracking
field. -
mDeviceToAbsoluteTracking
Passes themDeviceToAbsoluteTracking
field to the specifiedConsumer
. -
depth
Copies the specifiedVRTextureDepthInfo
to thedepth
field. -
depth
Passes thedepth
field 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
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVRTextureWithPoseAndDepth
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVRTextureWithPoseAndDepth
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVRTextureWithPoseAndDepth
instance allocated withBufferUtils
. -
create
Returns a newVRTextureWithPoseAndDepth
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVRTextureWithPoseAndDepth.Buffer
instance 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 VRTextureWithPoseAndDepth.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static VRTextureWithPoseAndDepth.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVRTextureWithPoseAndDepth
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVRTextureWithPoseAndDepth
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated on the specifiedMemoryStack
and 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()
. -
ndepth
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
Unsafe version ofmDeviceToAbsoluteTracking
. -
ndepth
Unsafe version ofdepth
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-