Package org.lwjgl.openvr
Class VRTextureDepthInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VRTextureDepthInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VRTextureDepthInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct VRTextureDepthInfo_t { void * handle;
HmdMatrix44_t
mProjection;HmdVector2_t
vRange; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VRTextureDepthInfo.Buffer
An array ofVRTextureDepthInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
HANDLE
MPROJECTIONThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
VRANGE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VRTextureDepthInfo(java.nio.ByteBuffer container)
Creates aVRTextureDepthInfo
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 VRTextureDepthInfo
calloc()
Returns a newVRTextureDepthInfo
instance allocated withmemCalloc
.static VRTextureDepthInfo.Buffer
calloc(int capacity)
Returns a newVRTextureDepthInfo.Buffer
instance allocated withmemCalloc
.static VRTextureDepthInfo
callocStack()
Returns a newVRTextureDepthInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VRTextureDepthInfo.Buffer
callocStack(int capacity)
Returns a newVRTextureDepthInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VRTextureDepthInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureDepthInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VRTextureDepthInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureDepthInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VRTextureDepthInfo
create()
Returns a newVRTextureDepthInfo
instance allocated withBufferUtils
.static VRTextureDepthInfo.Buffer
create(int capacity)
Returns a newVRTextureDepthInfo.Buffer
instance allocated withBufferUtils
.static VRTextureDepthInfo
create(long address)
Returns a newVRTextureDepthInfo
instance for the specified memory address.static VRTextureDepthInfo.Buffer
create(long address, int capacity)
Create aVRTextureDepthInfo.Buffer
instance at the specified memory.static VRTextureDepthInfo
createSafe(long address)
static VRTextureDepthInfo.Buffer
createSafe(long address, int capacity)
long
handle()
Returns the value of thehandle
field.VRTextureDepthInfo
handle(long value)
Sets the specified value to thehandle
field.static VRTextureDepthInfo
malloc()
Returns a newVRTextureDepthInfo
instance allocated withmemAlloc
.static VRTextureDepthInfo.Buffer
malloc(int capacity)
Returns a newVRTextureDepthInfo.Buffer
instance allocated withmemAlloc
.static VRTextureDepthInfo
mallocStack()
Returns a newVRTextureDepthInfo
instance allocated on the thread-localMemoryStack
.static VRTextureDepthInfo.Buffer
mallocStack(int capacity)
Returns a newVRTextureDepthInfo.Buffer
instance allocated on the thread-localMemoryStack
.static VRTextureDepthInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureDepthInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VRTextureDepthInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureDepthInfo
instance allocated on the specifiedMemoryStack
.HmdMatrix44
mProjection()
Returns aHmdMatrix44
view of themProjection
field.VRTextureDepthInfo
mProjection(java.util.function.Consumer<HmdMatrix44> consumer)
Passes themProjection
field to the specifiedConsumer
.VRTextureDepthInfo
mProjection(HmdMatrix44 value)
Copies the specifiedHmdMatrix44
to themProjection
field.static long
nhandle(long struct)
Unsafe version ofhandle()
.static void
nhandle(long struct, long value)
Unsafe version ofhandle
.static HmdMatrix44
nmProjection(long struct)
Unsafe version ofmProjection()
.static void
nmProjection(long struct, HmdMatrix44 value)
Unsafe version ofmProjection
.static HmdVector2
nvRange(long struct)
Unsafe version ofvRange()
.static void
nvRange(long struct, HmdVector2 value)
Unsafe version ofvRange
.VRTextureDepthInfo
set(long handle, HmdMatrix44 mProjection, HmdVector2 vRange)
Initializes this struct with the specified values.VRTextureDepthInfo
set(VRTextureDepthInfo 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.HmdVector2
vRange()
Returns aHmdVector2
view of thevRange
field.VRTextureDepthInfo
vRange(java.util.function.Consumer<HmdVector2> consumer)
Passes thevRange
field to the specifiedConsumer
.VRTextureDepthInfo
vRange(HmdVector2 value)
Copies the specifiedHmdVector2
to thevRange
field.
-
-
-
Constructor Detail
-
VRTextureDepthInfo
public VRTextureDepthInfo(java.nio.ByteBuffer container)
Creates aVRTextureDepthInfo
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
-
handle
public long handle()
Returns the value of thehandle
field.
-
mProjection
public HmdMatrix44 mProjection()
Returns aHmdMatrix44
view of themProjection
field.
-
vRange
public HmdVector2 vRange()
Returns aHmdVector2
view of thevRange
field.
-
handle
public VRTextureDepthInfo handle(long value)
Sets the specified value to thehandle
field.
-
mProjection
public VRTextureDepthInfo mProjection(HmdMatrix44 value)
Copies the specifiedHmdMatrix44
to themProjection
field.
-
mProjection
public VRTextureDepthInfo mProjection(java.util.function.Consumer<HmdMatrix44> consumer)
Passes themProjection
field to the specifiedConsumer
.
-
vRange
public VRTextureDepthInfo vRange(HmdVector2 value)
Copies the specifiedHmdVector2
to thevRange
field.
-
vRange
public VRTextureDepthInfo vRange(java.util.function.Consumer<HmdVector2> consumer)
Passes thevRange
field to the specifiedConsumer
.
-
set
public VRTextureDepthInfo set(long handle, HmdMatrix44 mProjection, HmdVector2 vRange)
Initializes this struct with the specified values.
-
set
public VRTextureDepthInfo set(VRTextureDepthInfo src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VRTextureDepthInfo malloc()
Returns a newVRTextureDepthInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VRTextureDepthInfo calloc()
Returns a newVRTextureDepthInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VRTextureDepthInfo create()
Returns a newVRTextureDepthInfo
instance allocated withBufferUtils
.
-
create
public static VRTextureDepthInfo create(long address)
Returns a newVRTextureDepthInfo
instance for the specified memory address.
-
createSafe
@Nullable public static VRTextureDepthInfo createSafe(long address)
-
malloc
public static VRTextureDepthInfo.Buffer malloc(int capacity)
Returns a newVRTextureDepthInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VRTextureDepthInfo.Buffer calloc(int capacity)
Returns a newVRTextureDepthInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VRTextureDepthInfo.Buffer create(int capacity)
Returns a newVRTextureDepthInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VRTextureDepthInfo.Buffer create(long address, int capacity)
Create aVRTextureDepthInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VRTextureDepthInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VRTextureDepthInfo mallocStack()
Returns a newVRTextureDepthInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VRTextureDepthInfo callocStack()
Returns a newVRTextureDepthInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VRTextureDepthInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureDepthInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VRTextureDepthInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureDepthInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VRTextureDepthInfo.Buffer mallocStack(int capacity)
Returns a newVRTextureDepthInfo.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VRTextureDepthInfo.Buffer callocStack(int capacity)
Returns a newVRTextureDepthInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VRTextureDepthInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureDepthInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VRTextureDepthInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureDepthInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nhandle
public static long nhandle(long struct)
Unsafe version ofhandle()
.
-
nmProjection
public static HmdMatrix44 nmProjection(long struct)
Unsafe version ofmProjection()
.
-
nvRange
public static HmdVector2 nvRange(long struct)
Unsafe version ofvRange()
.
-
nhandle
public static void nhandle(long struct, long value)
Unsafe version ofhandle
.
-
nmProjection
public static void nmProjection(long struct, HmdMatrix44 value)
Unsafe version ofmProjection
.
-
nvRange
public static void nvRange(long struct, HmdVector2 value)
Unsafe version ofvRange
.
-
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
-
-