Package org.lwjgl.openvr
Class VRTextureBounds
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VRTextureBounds
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VRTextureBounds extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceAllows the application to control what part of the provided texture will be used in the frame buffer.Layout
struct VRTextureBounds_t { float uMin; float vMin; float uMax; float vMax; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVRTextureBounds.BufferAn array ofVRTextureBoundsstructs.
-
Constructor Summary
Constructors Constructor Description VRTextureBounds(java.nio.ByteBuffer container)Creates aVRTextureBoundsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VRTextureBoundscalloc()Returns a newVRTextureBoundsinstance allocated withmemCalloc.static VRTextureBounds.Buffercalloc(int capacity)Returns a newVRTextureBounds.Bufferinstance allocated withmemCalloc.static VRTextureBoundscallocStack()Returns a newVRTextureBoundsinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VRTextureBounds.BuffercallocStack(int capacity)Returns a newVRTextureBounds.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VRTextureBounds.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRTextureBounds.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRTextureBoundscallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVRTextureBoundsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRTextureBoundscreate()Returns a newVRTextureBoundsinstance allocated withBufferUtils.static VRTextureBounds.Buffercreate(int capacity)Returns a newVRTextureBounds.Bufferinstance allocated withBufferUtils.static VRTextureBoundscreate(long address)Returns a newVRTextureBoundsinstance for the specified memory address.static VRTextureBounds.Buffercreate(long address, int capacity)Create aVRTextureBounds.Bufferinstance at the specified memory.static VRTextureBoundscreateSafe(long address)static VRTextureBounds.BuffercreateSafe(long address, int capacity)static VRTextureBoundsmalloc()Returns a newVRTextureBoundsinstance allocated withmemAlloc.static VRTextureBounds.Buffermalloc(int capacity)Returns a newVRTextureBounds.Bufferinstance allocated withmemAlloc.static VRTextureBoundsmallocStack()Returns a newVRTextureBoundsinstance allocated on the thread-localMemoryStack.static VRTextureBounds.BuffermallocStack(int capacity)Returns a newVRTextureBounds.Bufferinstance allocated on the thread-localMemoryStack.static VRTextureBounds.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRTextureBounds.Bufferinstance allocated on the specifiedMemoryStack.static VRTextureBoundsmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVRTextureBoundsinstance allocated on the specifiedMemoryStack.static floatnuMax(long struct)Unsafe version ofuMax().static voidnuMax(long struct, float value)Unsafe version ofuMax.static floatnuMin(long struct)Unsafe version ofuMin().static voidnuMin(long struct, float value)Unsafe version ofuMin.static floatnvMax(long struct)Unsafe version ofvMax().static voidnvMax(long struct, float value)Unsafe version ofvMax.static floatnvMin(long struct)Unsafe version ofvMin().static voidnvMin(long struct, float value)Unsafe version ofvMin.VRTextureBoundsset(float uMin, float vMin, float uMax, float vMax)Initializes this struct with the specified values.VRTextureBoundsset(VRTextureBounds src)Copies the specified struct data to this struct.intsizeof()floatuMax()Returns the value of theuMaxfield.VRTextureBoundsuMax(float value)Sets the specified value to theuMaxfield.floatuMin()Returns the value of theuMinfield.VRTextureBoundsuMin(float value)Sets the specified value to theuMinfield.floatvMax()Returns the value of thevMaxfield.VRTextureBoundsvMax(float value)Sets the specified value to thevMaxfield.floatvMin()Returns the value of thevMinfield.VRTextureBoundsvMin(float value)Sets the specified value to thevMinfield.
-
-
-
Constructor Detail
-
VRTextureBounds
public VRTextureBounds(java.nio.ByteBuffer container)
Creates aVRTextureBoundsinstance 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
-
uMin
public float uMin()
Returns the value of theuMinfield.
-
vMin
public float vMin()
Returns the value of thevMinfield.
-
uMax
public float uMax()
Returns the value of theuMaxfield.
-
vMax
public float vMax()
Returns the value of thevMaxfield.
-
uMin
public VRTextureBounds uMin(float value)
Sets the specified value to theuMinfield.
-
vMin
public VRTextureBounds vMin(float value)
Sets the specified value to thevMinfield.
-
uMax
public VRTextureBounds uMax(float value)
Sets the specified value to theuMaxfield.
-
vMax
public VRTextureBounds vMax(float value)
Sets the specified value to thevMaxfield.
-
set
public VRTextureBounds set(float uMin, float vMin, float uMax, float vMax)
Initializes this struct with the specified values.
-
set
public VRTextureBounds set(VRTextureBounds src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VRTextureBounds malloc()
Returns a newVRTextureBoundsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VRTextureBounds calloc()
Returns a newVRTextureBoundsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VRTextureBounds create()
Returns a newVRTextureBoundsinstance allocated withBufferUtils.
-
create
public static VRTextureBounds create(long address)
Returns a newVRTextureBoundsinstance for the specified memory address.
-
createSafe
@Nullable public static VRTextureBounds createSafe(long address)
-
malloc
public static VRTextureBounds.Buffer malloc(int capacity)
Returns a newVRTextureBounds.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VRTextureBounds.Buffer calloc(int capacity)
Returns a newVRTextureBounds.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VRTextureBounds.Buffer create(int capacity)
Returns a newVRTextureBounds.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VRTextureBounds.Buffer create(long address, int capacity)
Create aVRTextureBounds.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VRTextureBounds.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VRTextureBounds mallocStack()
Returns a newVRTextureBoundsinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VRTextureBounds callocStack()
Returns a newVRTextureBoundsinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VRTextureBounds mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureBoundsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VRTextureBounds callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureBoundsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VRTextureBounds.Buffer mallocStack(int capacity)
Returns a newVRTextureBounds.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VRTextureBounds.Buffer callocStack(int capacity)
Returns a newVRTextureBounds.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VRTextureBounds.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureBounds.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VRTextureBounds.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRTextureBounds.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nuMin
public static float nuMin(long struct)
Unsafe version ofuMin().
-
nvMin
public static float nvMin(long struct)
Unsafe version ofvMin().
-
nuMax
public static float nuMax(long struct)
Unsafe version ofuMax().
-
nvMax
public static float nvMax(long struct)
Unsafe version ofvMax().
-
nuMin
public static void nuMin(long struct, float value)Unsafe version ofuMin.
-
nvMin
public static void nvMin(long struct, float value)Unsafe version ofvMin.
-
nuMax
public static void nuMax(long struct, float value)Unsafe version ofuMax.
-
nvMax
public static void nvMax(long struct, float value)Unsafe version ofvMax.
-
-