Package org.lwjgl.openvr
Class VRTextureBounds
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Allows 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/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionVRTextureBounds
(ByteBuffer container) Creates aVRTextureBounds
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VRTextureBounds
calloc()
Returns a newVRTextureBounds
instance allocated withmemCalloc
.static VRTextureBounds.Buffer
calloc
(int capacity) Returns a newVRTextureBounds.Buffer
instance allocated withmemCalloc
.static VRTextureBounds.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVRTextureBounds.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VRTextureBounds
calloc
(MemoryStack stack) Returns a newVRTextureBounds
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VRTextureBounds
Deprecated.static VRTextureBounds.Buffer
callocStack
(int capacity) Deprecated.static VRTextureBounds.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static VRTextureBounds
callocStack
(MemoryStack stack) Deprecated.static VRTextureBounds
create()
Returns a newVRTextureBounds
instance allocated withBufferUtils
.static VRTextureBounds.Buffer
create
(int capacity) Returns a newVRTextureBounds.Buffer
instance allocated withBufferUtils
.static VRTextureBounds
create
(long address) Returns a newVRTextureBounds
instance for the specified memory address.static VRTextureBounds.Buffer
create
(long address, int capacity) Create aVRTextureBounds.Buffer
instance at the specified memory.static VRTextureBounds
createSafe
(long address) static VRTextureBounds.Buffer
createSafe
(long address, int capacity) static VRTextureBounds
malloc()
Returns a newVRTextureBounds
instance allocated withmemAlloc
.static VRTextureBounds.Buffer
malloc
(int capacity) Returns a newVRTextureBounds.Buffer
instance allocated withmemAlloc
.static VRTextureBounds.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVRTextureBounds.Buffer
instance allocated on the specifiedMemoryStack
.static VRTextureBounds
malloc
(MemoryStack stack) Returns a newVRTextureBounds
instance allocated on the specifiedMemoryStack
.static VRTextureBounds
Deprecated.static VRTextureBounds.Buffer
mallocStack
(int capacity) Deprecated.static VRTextureBounds.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static VRTextureBounds
mallocStack
(MemoryStack stack) Deprecated.static float
nuMax
(long struct) Unsafe version ofuMax()
.static void
nuMax
(long struct, float value) Unsafe version ofuMax
.static float
nuMin
(long struct) Unsafe version ofuMin()
.static void
nuMin
(long struct, float value) Unsafe version ofuMin
.static float
nvMax
(long struct) Unsafe version ofvMax()
.static void
nvMax
(long struct, float value) Unsafe version ofvMax
.static float
nvMin
(long struct) Unsafe version ofvMin()
.static void
nvMin
(long struct, float value) Unsafe version ofvMin
.set
(float uMin, float vMin, float uMax, float vMax) Initializes this struct with the specified values.set
(VRTextureBounds src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.float
uMax()
uMax
(float value) Sets the specified value to theuMax
field.float
uMin()
uMin
(float value) Sets the specified value to theuMin
field.float
vMax()
vMax
(float value) Sets the specified value to thevMax
field.float
vMin()
vMin
(float value) Sets the specified value to thevMin
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
UMIN
public static final int UMINThe struct member offsets. -
VMIN
public static final int VMINThe struct member offsets. -
UMAX
public static final int UMAXThe struct member offsets. -
VMAX
public static final int VMAXThe struct member offsets.
-
-
Constructor Details
-
VRTextureBounds
Creates aVRTextureBounds
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VRTextureBounds>
-
uMin
public float uMin()- Returns:
- the value of the
uMin
field.
-
vMin
public float vMin()- Returns:
- the value of the
vMin
field.
-
uMax
public float uMax()- Returns:
- the value of the
uMax
field.
-
vMax
public float vMax()- Returns:
- the value of the
vMax
field.
-
uMin
Sets the specified value to theuMin
field. -
vMin
Sets the specified value to thevMin
field. -
uMax
Sets the specified value to theuMax
field. -
vMax
Sets the specified value to thevMax
field. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVRTextureBounds
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVRTextureBounds
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVRTextureBounds
instance allocated withBufferUtils
. -
create
Returns a newVRTextureBounds
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVRTextureBounds.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVRTextureBounds.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVRTextureBounds.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVRTextureBounds.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVRTextureBounds
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVRTextureBounds
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVRTextureBounds.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVRTextureBounds.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
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
.
-