Package org.lwjgl.openvr
Class VRTextureDepthInfo
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VRTextureDepthInfo>
org.lwjgl.openvr.VRTextureDepthInfo
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VRTextureDepthInfo
extends org.lwjgl.system.Struct<VRTextureDepthInfo>
implements org.lwjgl.system.NativeResource
Layout
struct VRTextureDepthInfo_t {
void * handle;
HmdMatrix44_t mProjection;
HmdVector2_t vRange;
}-
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 size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVRTextureDepthInfo(ByteBuffer container) Creates aVRTextureDepthInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VRTextureDepthInfocalloc()Returns a newVRTextureDepthInfoinstance allocated withmemCalloc.static VRTextureDepthInfo.Buffercalloc(int capacity) Returns a newVRTextureDepthInfo.Bufferinstance allocated withmemCalloc.static VRTextureDepthInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVRTextureDepthInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRTextureDepthInfocalloc(org.lwjgl.system.MemoryStack stack) Returns a newVRTextureDepthInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRTextureDepthInfoDeprecated.static VRTextureDepthInfo.BuffercallocStack(int capacity) Deprecated.static VRTextureDepthInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VRTextureDepthInfocallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static VRTextureDepthInfocreate()Returns a newVRTextureDepthInfoinstance allocated withBufferUtils.static VRTextureDepthInfo.Buffercreate(int capacity) Returns a newVRTextureDepthInfo.Bufferinstance allocated withBufferUtils.static VRTextureDepthInfocreate(long address) Returns a newVRTextureDepthInfoinstance for the specified memory address.static VRTextureDepthInfo.Buffercreate(long address, int capacity) Create aVRTextureDepthInfo.Bufferinstance at the specified memory.static @Nullable VRTextureDepthInfocreateSafe(long address) static @Nullable VRTextureDepthInfo.BuffercreateSafe(long address, int capacity) longhandle()handle(long value) Sets the specified value to thehandlefield.static VRTextureDepthInfomalloc()Returns a newVRTextureDepthInfoinstance allocated withmemAlloc.static VRTextureDepthInfo.Buffermalloc(int capacity) Returns a newVRTextureDepthInfo.Bufferinstance allocated withmemAlloc.static VRTextureDepthInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVRTextureDepthInfo.Bufferinstance allocated on the specifiedMemoryStack.static VRTextureDepthInfomalloc(org.lwjgl.system.MemoryStack stack) Returns a newVRTextureDepthInfoinstance allocated on the specifiedMemoryStack.static VRTextureDepthInfoDeprecated.static VRTextureDepthInfo.BuffermallocStack(int capacity) Deprecated.static VRTextureDepthInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VRTextureDepthInfomallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.mProjection(Consumer<HmdMatrix44> consumer) Passes themProjectionfield to the specifiedConsumer.mProjection(HmdMatrix44 value) Copies the specifiedHmdMatrix44to themProjectionfield.static longnhandle(long struct) Unsafe version ofhandle().static voidnhandle(long struct, long value) Unsafe version ofhandle.static HmdMatrix44nmProjection(long struct) Unsafe version ofmProjection().static voidnmProjection(long struct, HmdMatrix44 value) Unsafe version ofmProjection.static HmdVector2nvRange(long struct) Unsafe version ofvRange().static voidnvRange(long struct, HmdVector2 value) Unsafe version ofvRange.set(long handle, HmdMatrix44 mProjection, HmdVector2 vRange) Initializes this struct with the specified values.set(VRTextureDepthInfo src) Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct) Validates pointer members that should not beNULL.vRange()vRange(Consumer<HmdVector2> consumer) Passes thevRangefield to the specifiedConsumer.vRange(HmdVector2 value) Copies the specifiedHmdVector2to thevRangefield.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. -
MPROJECTION
public static final int MPROJECTIONThe struct member offsets. -
VRANGE
public static final int VRANGEThe struct member offsets.
-
-
Constructor Details
-
VRTextureDepthInfo
Creates aVRTextureDepthInfoinstance 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<VRTextureDepthInfo>
-
handle
public long handle()- Returns:
- the value of the
handlefield.
-
mProjection
- Returns:
- a
HmdMatrix44view of themProjectionfield.
-
vRange
- Returns:
- a
HmdVector2view of thevRangefield.
-
handle
Sets the specified value to thehandlefield. -
mProjection
Copies the specifiedHmdMatrix44to themProjectionfield. -
mProjection
Passes themProjectionfield to the specifiedConsumer. -
vRange
Copies the specifiedHmdVector2to thevRangefield. -
vRange
Passes thevRangefield to the specifiedConsumer. -
set
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 newVRTextureDepthInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVRTextureDepthInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVRTextureDepthInfoinstance allocated withBufferUtils. -
create
Returns a newVRTextureDepthInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVRTextureDepthInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVRTextureDepthInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVRTextureDepthInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVRTextureDepthInfo.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 VRTextureDepthInfo.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 VRTextureDepthInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVRTextureDepthInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVRTextureDepthInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVRTextureDepthInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVRTextureDepthInfo.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(). -
nmProjection
Unsafe version ofmProjection(). -
nvRange
Unsafe version ofvRange(). -
nhandle
public static void nhandle(long struct, long value) Unsafe version ofhandle. -
nmProjection
Unsafe version ofmProjection. -
nvRange
Unsafe version ofvRange. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-