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.NativeResource
Layout
struct VRTextureWithPoseAndDepth_t {
VRTextureDepthInfo_t
depth; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VRTextureWithPoseAndDepth.Buffer
An array ofVRTextureWithPoseAndDepth
structs.
-
Constructor Summary
Constructors Constructor Description VRTextureWithPoseAndDepth(java.nio.ByteBuffer container)
Creates aVRTextureWithPoseAndDepth
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VRTextureWithPoseAndDepth
calloc()
Returns a newVRTextureWithPoseAndDepth
instance allocated withmemCalloc
.static VRTextureWithPoseAndDepth.Buffer
calloc(int capacity)
Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated withmemCalloc
.static VRTextureWithPoseAndDepth
callocStack()
Returns a newVRTextureWithPoseAndDepth
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VRTextureWithPoseAndDepth.Buffer
callocStack(int capacity)
Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VRTextureWithPoseAndDepth.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VRTextureWithPoseAndDepth
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPoseAndDepth
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VRTextureWithPoseAndDepth
create()
Returns a newVRTextureWithPoseAndDepth
instance allocated withBufferUtils
.static VRTextureWithPoseAndDepth.Buffer
create(int capacity)
Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated withBufferUtils
.static VRTextureWithPoseAndDepth
create(long address)
Returns a newVRTextureWithPoseAndDepth
instance for the specified memory address.static VRTextureWithPoseAndDepth.Buffer
create(long address, int capacity)
Create aVRTextureWithPoseAndDepth.Buffer
instance at the specified memory.static VRTextureWithPoseAndDepth
createSafe(long address)
static VRTextureWithPoseAndDepth.Buffer
createSafe(long address, int capacity)
VRTextureDepthInfo
depth()
Returns aVRTextureDepthInfo
view of thedepth
field.VRTextureWithPoseAndDepth
depth(java.util.function.Consumer<VRTextureDepthInfo> consumer)
Passes thedepth
field to the specifiedConsumer
.VRTextureWithPoseAndDepth
depth(VRTextureDepthInfo value)
Copies the specifiedVRTextureDepthInfo
to thedepth
field.static VRTextureWithPoseAndDepth
malloc()
Returns a newVRTextureWithPoseAndDepth
instance allocated withmemAlloc
.static VRTextureWithPoseAndDepth.Buffer
malloc(int capacity)
Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated withmemAlloc
.static VRTextureWithPoseAndDepth
mallocStack()
Returns a newVRTextureWithPoseAndDepth
instance allocated on the thread-localMemoryStack
.static VRTextureWithPoseAndDepth.Buffer
mallocStack(int capacity)
Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated on the thread-localMemoryStack
.static VRTextureWithPoseAndDepth.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated on the specifiedMemoryStack
.static VRTextureWithPoseAndDepth
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPoseAndDepth
instance allocated on the specifiedMemoryStack
.static VRTextureDepthInfo
ndepth(long struct)
Unsafe version ofdepth()
.static void
ndepth(long struct, VRTextureDepthInfo value)
Unsafe version ofdepth
.VRTextureWithPoseAndDepth
set(VRTextureWithPoseAndDepth src)
Copies the specified struct data to this struct.int
sizeof()
static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(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 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
depth
public VRTextureDepthInfo depth()
Returns aVRTextureDepthInfo
view of thedepth
field.
-
depth
public VRTextureWithPoseAndDepth depth(VRTextureDepthInfo value)
Copies the specifiedVRTextureDepthInfo
to thedepth
field.
-
depth
public VRTextureWithPoseAndDepth depth(java.util.function.Consumer<VRTextureDepthInfo> consumer)
Passes thedepth
field 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 newVRTextureWithPoseAndDepth
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VRTextureWithPoseAndDepth calloc()
Returns a newVRTextureWithPoseAndDepth
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VRTextureWithPoseAndDepth create()
Returns a newVRTextureWithPoseAndDepth
instance allocated withBufferUtils
.
-
create
public static VRTextureWithPoseAndDepth create(long address)
Returns a newVRTextureWithPoseAndDepth
instance for the specified memory address.
-
createSafe
@Nullable public static VRTextureWithPoseAndDepth createSafe(long address)
-
malloc
public static VRTextureWithPoseAndDepth.Buffer malloc(int capacity)
Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VRTextureWithPoseAndDepth.Buffer calloc(int capacity)
Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VRTextureWithPoseAndDepth.Buffer create(int capacity)
Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VRTextureWithPoseAndDepth.Buffer create(long address, int capacity)
Create aVRTextureWithPoseAndDepth.Buffer
instance 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 newVRTextureWithPoseAndDepth
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VRTextureWithPoseAndDepth callocStack()
Returns a newVRTextureWithPoseAndDepth
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VRTextureWithPoseAndDepth mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPoseAndDepth
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VRTextureWithPoseAndDepth callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureWithPoseAndDepth
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VRTextureWithPoseAndDepth.Buffer callocStack(int capacity)
Returns a newVRTextureWithPoseAndDepth.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
-
-