Package org.lwjgl.openvr
Class VROverlayProjection
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VROverlayProjection
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VROverlayProjection extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDefines the project used in an overlay that is usingSetOverlayTransformProjection.Layout
struct VROverlayProjection_t { floatfLeft(); floatfRight(); floatfTop(); floatfBottom(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVROverlayProjection.BufferAn array ofVROverlayProjectionstructs.
-
Constructor Summary
Constructors Constructor Description VROverlayProjection(java.nio.ByteBuffer container)Creates aVROverlayProjectioninstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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 VROverlayProjectioncreateSafe(long address)static VROverlayProjection.BuffercreateSafe(long address, int capacity)floatfBottom()tangent of the bottom side of the frustumVROverlayProjectionfBottom(float value)Sets the specified value to thefBottom()field.floatfLeft()tangent of the left side of the frustumVROverlayProjectionfLeft(float value)Sets the specified value to thefLeft()field.floatfRight()tangent of the right side of the frustumVROverlayProjectionfRight(float value)Sets the specified value to thefRight()field.floatfTop()tangent of the top side of the frustumVROverlayProjectionfTop(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.VROverlayProjectionset(float fLeft, float fRight, float fTop, float fBottom)Initializes this struct with the specified values.VROverlayProjectionset(VROverlayProjection src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
VROverlayProjection
public VROverlayProjection(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public VROverlayProjection fLeft(float value)
Sets the specified value to thefLeft()field.
-
fRight
public VROverlayProjection fRight(float value)
Sets the specified value to thefRight()field.
-
fTop
public VROverlayProjection fTop(float value)
Sets the specified value to thefTop()field.
-
fBottom
public VROverlayProjection fBottom(float value)
Sets the specified value to thefBottom()field.
-
set
public VROverlayProjection set(float fLeft, float fRight, float fTop, float fBottom)
Initializes this struct with the specified values.
-
set
public VROverlayProjection set(VROverlayProjection src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VROverlayProjection malloc()
Returns a newVROverlayProjectioninstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VROverlayProjection calloc()
Returns a newVROverlayProjectioninstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VROverlayProjection create()
Returns a newVROverlayProjectioninstance allocated withBufferUtils.
-
create
public static VROverlayProjection create(long address)
Returns a newVROverlayProjectioninstance for the specified memory address.
-
createSafe
@Nullable public static VROverlayProjection createSafe(long address)
-
malloc
public static VROverlayProjection.Buffer malloc(int capacity)
Returns a newVROverlayProjection.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VROverlayProjection.Buffer calloc(int capacity)
Returns a newVROverlayProjection.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VROverlayProjection.Buffer create(int capacity)
Returns a newVROverlayProjection.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VROverlayProjection.Buffer create(long address, int capacity)
Create aVROverlayProjection.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VROverlayProjection.Buffer createSafe(long address, int capacity)
-
malloc
public static VROverlayProjection malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayProjectioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VROverlayProjection calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayProjectioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VROverlayProjection.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayProjection.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VROverlayProjection.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayProjection.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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.
-
-