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.NativeResourceLayout
struct VRTextureDepthInfo_t { void * handle;HmdMatrix44_tmProjection;HmdVector2_tvRange; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVRTextureDepthInfo.BufferAn array ofVRTextureDepthInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intHANDLE
MPROJECTIONThe struct member offsets.static intSIZEOFThe struct size in bytes.static intVRANGEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VRTextureDepthInfo(java.nio.ByteBuffer container)Creates aVRTextureDepthInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VRTextureDepthInfocalloc()Returns a newVRTextureDepthInfoinstance allocated withmemCalloc.static VRTextureDepthInfo.Buffercalloc(int capacity)Returns a newVRTextureDepthInfo.Bufferinstance allocated withmemCalloc.static VRTextureDepthInfocallocStack()Returns a newVRTextureDepthInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VRTextureDepthInfo.BuffercallocStack(int capacity)Returns a newVRTextureDepthInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VRTextureDepthInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRTextureDepthInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRTextureDepthInfocallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVRTextureDepthInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 VRTextureDepthInfocreateSafe(long address)static VRTextureDepthInfo.BuffercreateSafe(long address, int capacity)longhandle()Returns the value of thehandlefield.VRTextureDepthInfohandle(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 VRTextureDepthInfomallocStack()Returns a newVRTextureDepthInfoinstance allocated on the thread-localMemoryStack.static VRTextureDepthInfo.BuffermallocStack(int capacity)Returns a newVRTextureDepthInfo.Bufferinstance allocated on the thread-localMemoryStack.static VRTextureDepthInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRTextureDepthInfo.Bufferinstance allocated on the specifiedMemoryStack.static VRTextureDepthInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVRTextureDepthInfoinstance allocated on the specifiedMemoryStack.HmdMatrix44mProjection()Returns aHmdMatrix44view of themProjectionfield.VRTextureDepthInfomProjection(java.util.function.Consumer<HmdMatrix44> consumer)Passes themProjectionfield to the specifiedConsumer.VRTextureDepthInfomProjection(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.VRTextureDepthInfoset(long handle, HmdMatrix44 mProjection, HmdVector2 vRange)Initializes this struct with the specified values.VRTextureDepthInfoset(VRTextureDepthInfo 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.HmdVector2vRange()Returns aHmdVector2view of thevRangefield.VRTextureDepthInfovRange(java.util.function.Consumer<HmdVector2> consumer)Passes thevRangefield to the specifiedConsumer.VRTextureDepthInfovRange(HmdVector2 value)Copies the specifiedHmdVector2to thevRangefield.
-
-
-
Constructor Detail
-
VRTextureDepthInfo
public VRTextureDepthInfo(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
handle
public long handle()
Returns the value of thehandlefield.
-
mProjection
public HmdMatrix44 mProjection()
Returns aHmdMatrix44view of themProjectionfield.
-
vRange
public HmdVector2 vRange()
Returns aHmdVector2view of thevRangefield.
-
handle
public VRTextureDepthInfo handle(long value)
Sets the specified value to thehandlefield.
-
mProjection
public VRTextureDepthInfo mProjection(HmdMatrix44 value)
Copies the specifiedHmdMatrix44to themProjectionfield.
-
mProjection
public VRTextureDepthInfo mProjection(java.util.function.Consumer<HmdMatrix44> consumer)
Passes themProjectionfield to the specifiedConsumer.
-
vRange
public VRTextureDepthInfo vRange(HmdVector2 value)
Copies the specifiedHmdVector2to thevRangefield.
-
vRange
public VRTextureDepthInfo vRange(java.util.function.Consumer<HmdVector2> consumer)
Passes thevRangefield 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 newVRTextureDepthInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VRTextureDepthInfo calloc()
Returns a newVRTextureDepthInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VRTextureDepthInfo create()
Returns a newVRTextureDepthInfoinstance allocated withBufferUtils.
-
create
public static VRTextureDepthInfo create(long address)
Returns a newVRTextureDepthInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VRTextureDepthInfo createSafe(long address)
-
malloc
public static VRTextureDepthInfo.Buffer malloc(int capacity)
Returns a newVRTextureDepthInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VRTextureDepthInfo.Buffer calloc(int capacity)
Returns a newVRTextureDepthInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VRTextureDepthInfo.Buffer create(int capacity)
Returns a newVRTextureDepthInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VRTextureDepthInfo.Buffer create(long address, int capacity)
Create aVRTextureDepthInfo.Bufferinstance 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 newVRTextureDepthInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VRTextureDepthInfo callocStack()
Returns a newVRTextureDepthInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VRTextureDepthInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureDepthInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VRTextureDepthInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureDepthInfoinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VRTextureDepthInfo.Buffer callocStack(int capacity)
Returns a newVRTextureDepthInfo.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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
-
-