Package org.lwjgl.openvr
Class VRTextureBounds
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VRTextureBounds>
org.lwjgl.openvr.VRTextureBounds
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VRTextureBounds
extends org.lwjgl.system.Struct<VRTextureBounds>
implements org.lwjgl.system.NativeResource
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVRTextureBounds(ByteBuffer container) Creates aVRTextureBoundsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VRTextureBoundscalloc()Returns a newVRTextureBoundsinstance allocated withmemCalloc.static VRTextureBounds.Buffercalloc(int capacity) Returns a newVRTextureBounds.Bufferinstance allocated withmemCalloc.static VRTextureBounds.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVRTextureBounds.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRTextureBoundscalloc(org.lwjgl.system.MemoryStack stack) Returns a newVRTextureBoundsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRTextureBoundsDeprecated.static VRTextureBounds.BuffercallocStack(int capacity) Deprecated.static VRTextureBounds.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VRTextureBoundscallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.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 @Nullable VRTextureBoundscreateSafe(long address) static @Nullable 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 VRTextureBounds.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVRTextureBounds.Bufferinstance allocated on the specifiedMemoryStack.static VRTextureBoundsmalloc(org.lwjgl.system.MemoryStack stack) Returns a newVRTextureBoundsinstance allocated on the specifiedMemoryStack.static VRTextureBoundsDeprecated.static VRTextureBounds.BuffermallocStack(int capacity) Deprecated.static VRTextureBounds.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VRTextureBoundsmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.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.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.intsizeof()floatuMax()uMax(float value) Sets the specified value to theuMaxfield.floatuMin()uMin(float value) Sets the specified value to theuMinfield.floatvMax()vMax(float value) Sets the specified value to thevMaxfield.floatvMin()vMin(float value) Sets the specified value to thevMinfield.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VRTextureBounds>
-
uMin
public float uMin()- Returns:
- the value of the
uMinfield.
-
vMin
public float vMin()- Returns:
- the value of the
vMinfield.
-
uMax
public float uMax()- Returns:
- the value of the
uMaxfield.
-
vMax
public float vMax()- Returns:
- the value of the
vMaxfield.
-
uMin
Sets the specified value to theuMinfield. -
vMin
Sets the specified value to thevMinfield. -
uMax
Sets the specified value to theuMaxfield. -
vMax
Sets the specified value to thevMaxfield. -
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 newVRTextureBoundsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVRTextureBoundsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVRTextureBoundsinstance allocated withBufferUtils. -
create
Returns a newVRTextureBoundsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVRTextureBounds.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVRTextureBounds.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVRTextureBounds.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVRTextureBounds.Bufferinstance 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 public static VRTextureBounds.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static VRTextureBounds.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVRTextureBoundsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVRTextureBoundsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVRTextureBounds.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVRTextureBounds.Bufferinstance allocated on the specifiedMemoryStackand 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.
-