Package org.lwjgl.openvr
Class VROverlayProjection
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VROverlayProjection>
org.lwjgl.openvr.VROverlayProjection
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VROverlayProjection
extends org.lwjgl.system.Struct<VROverlayProjection>
implements org.lwjgl.system.NativeResource
Defines the project used in an overlay that is using
SetOverlayTransformProjection.
Layout
struct VROverlayProjection_t {
float fLeft();
float fRight();
float fTop();
float fBottom();
}-
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVROverlayProjection(ByteBuffer container) Creates aVROverlayProjectioninstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VROverlayProjectioncalloc()Returns a newVROverlayProjectioninstance allocated withmemCalloc.static VROverlayProjection.Buffercalloc(int capacity) Returns a newVROverlayProjection.Bufferinstance allocated withmemCalloc.static VROverlayProjection.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVROverlayProjection.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayProjectioncalloc(org.lwjgl.system.MemoryStack stack) Returns a newVROverlayProjectioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayProjectioncreate()Returns a newVROverlayProjectioninstance allocated withBufferUtils.static VROverlayProjection.Buffercreate(int capacity) Returns a newVROverlayProjection.Bufferinstance allocated withBufferUtils.static VROverlayProjectioncreate(long address) Returns a newVROverlayProjectioninstance for the specified memory address.static VROverlayProjection.Buffercreate(long address, int capacity) Create aVROverlayProjection.Bufferinstance at the specified memory.static @Nullable VROverlayProjectioncreateSafe(long address) static @Nullable VROverlayProjection.BuffercreateSafe(long address, int capacity) floatfBottom()tangent of the bottom side of the frustumfBottom(float value) Sets the specified value to thefBottom()field.floatfLeft()tangent of the left side of the frustumfLeft(float value) Sets the specified value to thefLeft()field.floatfRight()tangent of the right side of the frustumfRight(float value) Sets the specified value to thefRight()field.floatfTop()tangent of the top side of the frustumfTop(float value) Sets the specified value to thefTop()field.static VROverlayProjectionmalloc()Returns a newVROverlayProjectioninstance allocated withmemAlloc.static VROverlayProjection.Buffermalloc(int capacity) Returns a newVROverlayProjection.Bufferinstance allocated withmemAlloc.static VROverlayProjection.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVROverlayProjection.Bufferinstance allocated on the specifiedMemoryStack.static VROverlayProjectionmalloc(org.lwjgl.system.MemoryStack stack) Returns a newVROverlayProjectioninstance allocated on the specifiedMemoryStack.static floatnfBottom(long struct) Unsafe version offBottom().static voidnfBottom(long struct, float value) Unsafe version offBottom.static floatnfLeft(long struct) Unsafe version offLeft().static voidnfLeft(long struct, float value) Unsafe version offLeft.static floatnfRight(long struct) Unsafe version offRight().static voidnfRight(long struct, float value) Unsafe version offRight.static floatnfTop(long struct) Unsafe version offTop().static voidnfTop(long struct, float value) Unsafe version offTop.set(float fLeft, float fRight, float fTop, float fBottom) Initializes this struct with the specified values.set(VROverlayProjection src) Copies the specified struct data to this struct.intsizeof()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. -
FLEFT
public static final int FLEFTThe struct member offsets. -
FRIGHT
public static final int FRIGHTThe struct member offsets. -
FTOP
public static final int FTOPThe struct member offsets. -
FBOTTOM
public static final int FBOTTOMThe struct member offsets.
-
-
Constructor Details
-
VROverlayProjection
Creates aVROverlayProjectioninstance 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<VROverlayProjection>
-
fLeft
public float fLeft()tangent of the left side of the frustum -
fRight
public float fRight()tangent of the right side of the frustum -
fTop
public float fTop()tangent of the top side of the frustum -
fBottom
public float fBottom()tangent of the bottom side of the frustum -
fLeft
Sets the specified value to thefLeft()field. -
fRight
Sets the specified value to thefRight()field. -
fTop
Sets the specified value to thefTop()field. -
fBottom
Sets the specified value to thefBottom()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 newVROverlayProjectioninstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVROverlayProjectioninstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVROverlayProjectioninstance allocated withBufferUtils. -
create
Returns a newVROverlayProjectioninstance for the specified memory address. -
createSafe
-
malloc
Returns a newVROverlayProjection.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVROverlayProjection.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVROverlayProjection.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVROverlayProjection.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVROverlayProjectioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVROverlayProjectioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVROverlayProjection.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVROverlayProjection.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nfLeft
public static float nfLeft(long struct) Unsafe version offLeft(). -
nfRight
public static float nfRight(long struct) Unsafe version offRight(). -
nfTop
public static float nfTop(long struct) Unsafe version offTop(). -
nfBottom
public static float nfBottom(long struct) Unsafe version offBottom(). -
nfLeft
public static void nfLeft(long struct, float value) Unsafe version offLeft. -
nfRight
public static void nfRight(long struct, float value) Unsafe version offRight. -
nfTop
public static void nfTop(long struct, float value) Unsafe version offTop. -
nfBottom
public static void nfBottom(long struct, float value) Unsafe version offBottom.
-