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 {VRTextureDepthInfo_tdepth; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVRTextureWithPoseAndDepth.BufferAn array ofVRTextureWithPoseAndDepthstructs.
-
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 Modifier and Type Method Description static VRTextureWithPoseAndDepthcalloc()Returns a newVRTextureWithPoseAndDepthinstance allocated withmemCalloc.static VRTextureWithPoseAndDepth.Buffercalloc(int capacity)Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated withmemCalloc.static VRTextureWithPoseAndDepthcallocStack()Returns a newVRTextureWithPoseAndDepthinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VRTextureWithPoseAndDepth.BuffercallocStack(int capacity)Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VRTextureWithPoseAndDepth.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRTextureWithPoseAndDepthcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithPoseAndDepthinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns aVRTextureDepthInfoview of thedepthfield.VRTextureWithPoseAndDepthdepth(java.util.function.Consumer<VRTextureDepthInfo> consumer)Passes thedepthfield to the specifiedConsumer.VRTextureWithPoseAndDepthdepth(VRTextureDepthInfo value)Copies the specifiedVRTextureDepthInfoto thedepthfield.static VRTextureWithPoseAndDepthmalloc()Returns a newVRTextureWithPoseAndDepthinstance allocated withmemAlloc.static VRTextureWithPoseAndDepth.Buffermalloc(int capacity)Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated withmemAlloc.static VRTextureWithPoseAndDepthmallocStack()Returns a newVRTextureWithPoseAndDepthinstance allocated on the thread-localMemoryStack.static VRTextureWithPoseAndDepth.BuffermallocStack(int capacity)Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated on the thread-localMemoryStack.static VRTextureWithPoseAndDepth.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated on the specifiedMemoryStack.static VRTextureWithPoseAndDepthmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithPoseAndDepthinstance allocated on the specifiedMemoryStack.static VRTextureDepthInfondepth(long struct)Unsafe version ofdepth().static voidndepth(long struct, VRTextureDepthInfo value)Unsafe version ofdepth.VRTextureWithPoseAndDepthset(VRTextureWithPoseAndDepth src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
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
-
depth
public VRTextureDepthInfo depth()
Returns aVRTextureDepthInfoview of thedepthfield.
-
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(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
public static VRTextureWithPoseAndDepth mallocStack()
Returns a newVRTextureWithPoseAndDepthinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VRTextureWithPoseAndDepth callocStack()
Returns a newVRTextureWithPoseAndDepthinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VRTextureWithPoseAndDepth mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPoseAndDepthinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VRTextureWithPoseAndDepth callocStack(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
-
mallocStack
public static VRTextureWithPoseAndDepth.Buffer mallocStack(int capacity)
Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VRTextureWithPoseAndDepth.Buffer callocStack(int capacity)
Returns a newVRTextureWithPoseAndDepth.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VRTextureWithPoseAndDepth.Buffer mallocStack(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
-
callocStack
public static VRTextureWithPoseAndDepth.Buffer callocStack(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
-
ndepth
public static VRTextureDepthInfo ndepth(long struct)
Unsafe version ofdepth().
-
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
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-