Package org.lwjgl.openvr
Class VROverlayView_t
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VROverlayView_t
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VROverlayView_t extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct VROverlayView_t { VROverlayHandle_t overlayHandle;Texture_ttexture;VRTextureBounds_ttextureBounds; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVROverlayView_t.BufferAn array ofVROverlayView_tstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intOVERLAYHANDLEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTEXTURE
TEXTUREBOUNDSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VROverlayView_t(java.nio.ByteBuffer container)Creates aVROverlayView_tinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VROverlayView_tcalloc()Returns a newVROverlayView_tinstance allocated withmemCalloc.static VROverlayView_t.Buffercalloc(int capacity)Returns a newVROverlayView_t.Bufferinstance allocated withmemCalloc.static VROverlayView_t.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVROverlayView_t.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayView_tcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVROverlayView_tinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayView_tcreate()Returns a newVROverlayView_tinstance allocated withBufferUtils.static VROverlayView_t.Buffercreate(int capacity)Returns a newVROverlayView_t.Bufferinstance allocated withBufferUtils.static VROverlayView_tcreate(long address)Returns a newVROverlayView_tinstance for the specified memory address.static VROverlayView_t.Buffercreate(long address, int capacity)Create aVROverlayView_t.Bufferinstance at the specified memory.static VROverlayView_tcreateSafe(long address)static VROverlayView_t.BuffercreateSafe(long address, int capacity)static VROverlayView_tmalloc()Returns a newVROverlayView_tinstance allocated withmemAlloc.static VROverlayView_t.Buffermalloc(int capacity)Returns a newVROverlayView_t.Bufferinstance allocated withmemAlloc.static VROverlayView_t.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVROverlayView_t.Bufferinstance allocated on the specifiedMemoryStack.static VROverlayView_tmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVROverlayView_tinstance allocated on the specifiedMemoryStack.static longnoverlayHandle(long struct)Unsafe version ofoverlayHandle().static Texturentexture(long struct)Unsafe version oftexture().static VRTextureBoundsntextureBounds(long struct)Unsafe version oftextureBounds().longoverlayHandle()intsizeof()Texturetexture()VRTextureBoundstextureBounds()
-
-
-
Constructor Detail
-
VROverlayView_t
public VROverlayView_t(java.nio.ByteBuffer container)
Creates aVROverlayView_tinstance 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
-
overlayHandle
public long overlayHandle()
- Returns:
- the value of the
overlayHandlefield.
-
textureBounds
public VRTextureBounds textureBounds()
- Returns:
- a
VRTextureBoundsview of thetextureBoundsfield.
-
malloc
public static VROverlayView_t malloc()
Returns a newVROverlayView_tinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VROverlayView_t calloc()
Returns a newVROverlayView_tinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VROverlayView_t create()
Returns a newVROverlayView_tinstance allocated withBufferUtils.
-
create
public static VROverlayView_t create(long address)
Returns a newVROverlayView_tinstance for the specified memory address.
-
createSafe
@Nullable public static VROverlayView_t createSafe(long address)
-
malloc
public static VROverlayView_t.Buffer malloc(int capacity)
Returns a newVROverlayView_t.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VROverlayView_t.Buffer calloc(int capacity)
Returns a newVROverlayView_t.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VROverlayView_t.Buffer create(int capacity)
Returns a newVROverlayView_t.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VROverlayView_t.Buffer create(long address, int capacity)
Create aVROverlayView_t.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VROverlayView_t.Buffer createSafe(long address, int capacity)
-
malloc
public static VROverlayView_t malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayView_tinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VROverlayView_t calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayView_tinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VROverlayView_t.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayView_t.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VROverlayView_t.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayView_t.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
noverlayHandle
public static long noverlayHandle(long struct)
Unsafe version ofoverlayHandle().
-
ntextureBounds
public static VRTextureBounds ntextureBounds(long struct)
Unsafe version oftextureBounds().
-
-