Package org.lwjgl.openvr
Class VRTextureWithDepth
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VRTextureWithDepth
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VRTextureWithDepth extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct VRTextureWithDepth_t {VRTextureDepthInfo_tdepth; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVRTextureWithDepth.BufferAn array ofVRTextureWithDepthstructs.
-
Constructor Summary
Constructors Constructor Description VRTextureWithDepth(java.nio.ByteBuffer container)Creates aVRTextureWithDepthinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VRTextureWithDepthcalloc()Returns a newVRTextureWithDepthinstance allocated withmemCalloc.static VRTextureWithDepth.Buffercalloc(int capacity)Returns a newVRTextureWithDepth.Bufferinstance allocated withmemCalloc.static VRTextureWithDepthcallocStack()Returns a newVRTextureWithDepthinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VRTextureWithDepth.BuffercallocStack(int capacity)Returns a newVRTextureWithDepth.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VRTextureWithDepth.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithDepth.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRTextureWithDepthcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithDepthinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRTextureWithDepthcreate()Returns a newVRTextureWithDepthinstance allocated withBufferUtils.static VRTextureWithDepth.Buffercreate(int capacity)Returns a newVRTextureWithDepth.Bufferinstance allocated withBufferUtils.static VRTextureWithDepthcreate(long address)Returns a newVRTextureWithDepthinstance for the specified memory address.static VRTextureWithDepth.Buffercreate(long address, int capacity)Create aVRTextureWithDepth.Bufferinstance at the specified memory.static VRTextureWithDepthcreateSafe(long address)static VRTextureWithDepth.BuffercreateSafe(long address, int capacity)VRTextureDepthInfodepth()Returns aVRTextureDepthInfoview of thedepthfield.VRTextureWithDepthdepth(java.util.function.Consumer<VRTextureDepthInfo> consumer)Passes thedepthfield to the specifiedConsumer.VRTextureWithDepthdepth(VRTextureDepthInfo value)Copies the specifiedVRTextureDepthInfoto thedepthfield.static VRTextureWithDepthmalloc()Returns a newVRTextureWithDepthinstance allocated withmemAlloc.static VRTextureWithDepth.Buffermalloc(int capacity)Returns a newVRTextureWithDepth.Bufferinstance allocated withmemAlloc.static VRTextureWithDepthmallocStack()Returns a newVRTextureWithDepthinstance allocated on the thread-localMemoryStack.static VRTextureWithDepth.BuffermallocStack(int capacity)Returns a newVRTextureWithDepth.Bufferinstance allocated on the thread-localMemoryStack.static VRTextureWithDepth.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithDepth.Bufferinstance allocated on the specifiedMemoryStack.static VRTextureWithDepthmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVRTextureWithDepthinstance allocated on the specifiedMemoryStack.static VRTextureDepthInfondepth(long struct)Unsafe version ofdepth().static voidndepth(long struct, VRTextureDepthInfo value)Unsafe version ofdepth.VRTextureWithDepthset(VRTextureWithDepth 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
-
VRTextureWithDepth
public VRTextureWithDepth(java.nio.ByteBuffer container)
Creates aVRTextureWithDepthinstance 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 VRTextureWithDepth depth(VRTextureDepthInfo value)
Copies the specifiedVRTextureDepthInfoto thedepthfield.
-
depth
public VRTextureWithDepth depth(java.util.function.Consumer<VRTextureDepthInfo> consumer)
Passes thedepthfield to the specifiedConsumer.
-
set
public VRTextureWithDepth set(VRTextureWithDepth src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VRTextureWithDepth malloc()
Returns a newVRTextureWithDepthinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VRTextureWithDepth calloc()
Returns a newVRTextureWithDepthinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VRTextureWithDepth create()
Returns a newVRTextureWithDepthinstance allocated withBufferUtils.
-
create
public static VRTextureWithDepth create(long address)
Returns a newVRTextureWithDepthinstance for the specified memory address.
-
createSafe
@Nullable public static VRTextureWithDepth createSafe(long address)
-
malloc
public static VRTextureWithDepth.Buffer malloc(int capacity)
Returns a newVRTextureWithDepth.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VRTextureWithDepth.Buffer calloc(int capacity)
Returns a newVRTextureWithDepth.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VRTextureWithDepth.Buffer create(int capacity)
Returns a newVRTextureWithDepth.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VRTextureWithDepth.Buffer create(long address, int capacity)
Create aVRTextureWithDepth.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VRTextureWithDepth.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VRTextureWithDepth mallocStack()
Returns a newVRTextureWithDepthinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VRTextureWithDepth callocStack()
Returns a newVRTextureWithDepthinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VRTextureWithDepth mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithDepthinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VRTextureWithDepth callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithDepthinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VRTextureWithDepth.Buffer mallocStack(int capacity)
Returns a newVRTextureWithDepth.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VRTextureWithDepth.Buffer callocStack(int capacity)
Returns a newVRTextureWithDepth.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VRTextureWithDepth.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithDepth.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VRTextureWithDepth.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithDepth.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
-
-