Package org.lwjgl.openvr
Class VRTextureWithPoseAndDepth
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VRTextureWithPoseAndDepth>
org.lwjgl.openvr.VRTextureWithPoseAndDepth
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VRTextureWithPoseAndDepth
extends org.lwjgl.system.Struct<VRTextureWithPoseAndDepth>
implements org.lwjgl.system.NativeResource
Layout
struct VRTextureWithPoseAndDepth_t {
void * handle;
ETextureType eType;
EColorSpace eColorSpace;
HmdMatrix34_t mDeviceToAbsoluteTracking;
VRTextureDepthInfo_t depth;
}-
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 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
ConstructorsConstructorDescriptionVRTextureWithPoseAndDepth(ByteBuffer container) Creates aVRTextureWithPoseAndDepthinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VRTextureWithPoseAndDepthcalloc()Returns a newVRTextureWithPoseAndDepthinstance allocated withmemCalloc.calloc(int capacity) Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated withmemCalloc.calloc(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 VRTextureWithPoseAndDepthDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VRTextureWithPoseAndDepthcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static VRTextureWithPoseAndDepthcreate()Returns a newVRTextureWithPoseAndDepthinstance allocated withBufferUtils.create(int capacity) Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated withBufferUtils.static VRTextureWithPoseAndDepthcreate(long address) Returns a newVRTextureWithPoseAndDepthinstance for the specified memory address.create(long address, int capacity) Create aVRTextureWithPoseAndDepth.Bufferinstance at the specified memory.static @Nullable VRTextureWithPoseAndDepthcreateSafe(long address) static @Nullable VRTextureWithPoseAndDepth.BuffercreateSafe(long address, int capacity) depth()depth(Consumer<VRTextureDepthInfo> consumer) Passes thedepthfield to the specifiedConsumer.depth(VRTextureDepthInfo value) Copies the specifiedVRTextureDepthInfoto thedepthfield.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 VRTextureWithPoseAndDepthmalloc()Returns a newVRTextureWithPoseAndDepthinstance allocated withmemAlloc.malloc(int capacity) Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated withmemAlloc.malloc(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 VRTextureWithPoseAndDepthDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VRTextureWithPoseAndDepthmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.mDeviceToAbsoluteTracking(Consumer<HmdMatrix34> consumer) Passes themDeviceToAbsoluteTrackingfield to the specifiedConsumer.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.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.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. -
DEPTH
public static final int DEPTHThe struct member offsets.
-
-
Constructor Details
-
VRTextureWithPoseAndDepth
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VRTextureWithPoseAndDepth>
-
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
- Returns:
- a
HmdMatrix34view of themDeviceToAbsoluteTrackingfield.
-
depth
- Returns:
- a
VRTextureDepthInfoview of thedepthfield.
-
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 themDeviceToAbsoluteTrackingfield. -
mDeviceToAbsoluteTracking
Passes themDeviceToAbsoluteTrackingfield to the specifiedConsumer. -
depth
Copies the specifiedVRTextureDepthInfoto thedepthfield. -
depth
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
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVRTextureWithPoseAndDepthinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVRTextureWithPoseAndDepthinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVRTextureWithPoseAndDepthinstance allocated withBufferUtils. -
create
Returns a newVRTextureWithPoseAndDepthinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVRTextureWithPoseAndDepth.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 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
Returns a newVRTextureWithPoseAndDepthinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
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:
capacity- the buffer capacitystack- the stack from which to allocate
-
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:
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
-