Package org.lwjgl.ovr
Class OVRFovStencilMeshBuffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRFovStencilMeshBuffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRFovStencilMeshBuffer extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceContains the data for the fov-stencil mesh. Parts of the struct are filled by the caller while some parts are filled by the SDK.Layout
struct ovrFovStencilMeshBuffer { intAllocVertexCount(); intUsedVertexCount();ovrVector2f*VertexBuffer(); intAllocIndexCount(); intUsedIndexCount(); uint16_t *IndexBuffer(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRFovStencilMeshBuffer.BufferAn array ofOVRFovStencilMeshBufferstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intALLOCINDEXCOUNT
ALLOCVERTEXCOUNT
INDEXBUFFERThe struct member offsets.static intSIZEOFThe struct size in bytes.static intUSEDINDEXCOUNT
USEDVERTEXCOUNT
VERTEXBUFFERThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description OVRFovStencilMeshBuffer(java.nio.ByteBuffer container)Creates aOVRFovStencilMeshBufferinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intAllocIndexCount()to be filled in by caller ofGetFovStencilOVRFovStencilMeshBufferAllocIndexCount(int value)Sets the specified value to theAllocIndexCount()field.intAllocVertexCount()to be filled in by caller ofGetFovStencilOVRFovStencilMeshBufferAllocVertexCount(int value)Sets the specified value to theAllocVertexCount()field.static OVRFovStencilMeshBuffercalloc()Returns a newOVRFovStencilMeshBufferinstance allocated withmemCalloc.static OVRFovStencilMeshBuffer.Buffercalloc(int capacity)Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated withmemCalloc.static OVRFovStencilMeshBuffer.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRFovStencilMeshBuffercalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRFovStencilMeshBufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRFovStencilMeshBuffercallocStack()Deprecated.static OVRFovStencilMeshBuffer.BuffercallocStack(int capacity)Deprecated.static OVRFovStencilMeshBuffer.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static OVRFovStencilMeshBuffercallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static OVRFovStencilMeshBuffercreate()Returns a newOVRFovStencilMeshBufferinstance allocated withBufferUtils.static OVRFovStencilMeshBuffer.Buffercreate(int capacity)Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated withBufferUtils.static OVRFovStencilMeshBuffercreate(long address)Returns a newOVRFovStencilMeshBufferinstance for the specified memory address.static OVRFovStencilMeshBuffer.Buffercreate(long address, int capacity)Create aOVRFovStencilMeshBuffer.Bufferinstance at the specified memory.static OVRFovStencilMeshBuffercreateSafe(long address)static OVRFovStencilMeshBuffer.BuffercreateSafe(long address, int capacity)java.nio.ShortBufferIndexBuffer()to be allocated by caller and filled in by SDKOVRFovStencilMeshBufferIndexBuffer(java.nio.ShortBuffer value)Sets the address of the specifiedShortBufferto theIndexBuffer()field.static OVRFovStencilMeshBuffermalloc()Returns a newOVRFovStencilMeshBufferinstance allocated withmemAlloc.static OVRFovStencilMeshBuffer.Buffermalloc(int capacity)Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated withmemAlloc.static OVRFovStencilMeshBuffer.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated on the specifiedMemoryStack.static OVRFovStencilMeshBuffermalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRFovStencilMeshBufferinstance allocated on the specifiedMemoryStack.static OVRFovStencilMeshBuffermallocStack()Deprecated.static OVRFovStencilMeshBuffer.BuffermallocStack(int capacity)Deprecated.static OVRFovStencilMeshBuffer.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static OVRFovStencilMeshBuffermallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnAllocIndexCount(long struct)Unsafe version ofAllocIndexCount().static voidnAllocIndexCount(long struct, int value)Sets the specified value to theAllocIndexCountfield of the specifiedstruct.static intnAllocVertexCount(long struct)Unsafe version ofAllocVertexCount().static voidnAllocVertexCount(long struct, int value)Sets the specified value to theAllocVertexCountfield of the specifiedstruct.static java.nio.ShortBuffernIndexBuffer(long struct)Unsafe version ofIndexBuffer.static voidnIndexBuffer(long struct, java.nio.ShortBuffer value)Unsafe version ofIndexBuffer.static intnUsedIndexCount(long struct)Unsafe version ofUsedIndexCount().static voidnUsedIndexCount(long struct, int value)Unsafe version ofUsedIndexCount.static intnUsedVertexCount(long struct)Unsafe version ofUsedVertexCount().static voidnUsedVertexCount(long struct, int value)Unsafe version ofUsedVertexCount.static OVRVector2f.BuffernVertexBuffer(long struct)Unsafe version ofVertexBuffer().static voidnVertexBuffer(long struct, OVRVector2f.Buffer value)Unsafe version ofVertexBuffer.OVRFovStencilMeshBufferset(int AllocVertexCount, int UsedVertexCount, OVRVector2f.Buffer VertexBuffer, int AllocIndexCount, int UsedIndexCount, java.nio.ShortBuffer IndexBuffer)Initializes this struct with the specified values.OVRFovStencilMeshBufferset(OVRFovStencilMeshBuffer src)Copies the specified struct data to this struct.intsizeof()intUsedIndexCount()to be filled in by SDK and returned to callerOVRFovStencilMeshBufferUsedIndexCount(int value)Sets the specified value to theUsedIndexCount()field.intUsedVertexCount()to be filled in by SDK and returned to callerOVRFovStencilMeshBufferUsedVertexCount(int value)Sets the specified value to theUsedVertexCount()field.OVRVector2f.BufferVertexBuffer()to be allocated by caller and filled in by SDKOVRFovStencilMeshBufferVertexBuffer(OVRVector2f.Buffer value)Sets the address of the specifiedOVRVector2f.Bufferto theVertexBuffer()field.
-
-
-
Constructor Detail
-
OVRFovStencilMeshBuffer
public OVRFovStencilMeshBuffer(java.nio.ByteBuffer container)
Creates aOVRFovStencilMeshBufferinstance 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
-
AllocVertexCount
public int AllocVertexCount()
to be filled in by caller ofGetFovStencil
-
UsedVertexCount
public int UsedVertexCount()
to be filled in by SDK and returned to caller
-
VertexBuffer
@Nullable public OVRVector2f.Buffer VertexBuffer()
to be allocated by caller and filled in by SDK
-
AllocIndexCount
public int AllocIndexCount()
to be filled in by caller ofGetFovStencil
-
UsedIndexCount
public int UsedIndexCount()
to be filled in by SDK and returned to caller
-
IndexBuffer
@Nullable public java.nio.ShortBuffer IndexBuffer()
to be allocated by caller and filled in by SDK
-
AllocVertexCount
public OVRFovStencilMeshBuffer AllocVertexCount(int value)
Sets the specified value to theAllocVertexCount()field.
-
UsedVertexCount
public OVRFovStencilMeshBuffer UsedVertexCount(int value)
Sets the specified value to theUsedVertexCount()field.
-
VertexBuffer
public OVRFovStencilMeshBuffer VertexBuffer(@Nullable OVRVector2f.Buffer value)
Sets the address of the specifiedOVRVector2f.Bufferto theVertexBuffer()field.
-
AllocIndexCount
public OVRFovStencilMeshBuffer AllocIndexCount(int value)
Sets the specified value to theAllocIndexCount()field.
-
UsedIndexCount
public OVRFovStencilMeshBuffer UsedIndexCount(int value)
Sets the specified value to theUsedIndexCount()field.
-
IndexBuffer
public OVRFovStencilMeshBuffer IndexBuffer(@Nullable java.nio.ShortBuffer value)
Sets the address of the specifiedShortBufferto theIndexBuffer()field.
-
set
public OVRFovStencilMeshBuffer set(int AllocVertexCount, int UsedVertexCount, @Nullable OVRVector2f.Buffer VertexBuffer, int AllocIndexCount, int UsedIndexCount, @Nullable java.nio.ShortBuffer IndexBuffer)
Initializes this struct with the specified values.
-
set
public OVRFovStencilMeshBuffer set(OVRFovStencilMeshBuffer src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static OVRFovStencilMeshBuffer malloc()
Returns a newOVRFovStencilMeshBufferinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRFovStencilMeshBuffer calloc()
Returns a newOVRFovStencilMeshBufferinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRFovStencilMeshBuffer create()
Returns a newOVRFovStencilMeshBufferinstance allocated withBufferUtils.
-
create
public static OVRFovStencilMeshBuffer create(long address)
Returns a newOVRFovStencilMeshBufferinstance for the specified memory address.
-
createSafe
@Nullable public static OVRFovStencilMeshBuffer createSafe(long address)
-
malloc
public static OVRFovStencilMeshBuffer.Buffer malloc(int capacity)
Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRFovStencilMeshBuffer.Buffer calloc(int capacity)
Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRFovStencilMeshBuffer.Buffer create(int capacity)
Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRFovStencilMeshBuffer.Buffer create(long address, int capacity)
Create aOVRFovStencilMeshBuffer.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static OVRFovStencilMeshBuffer.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static OVRFovStencilMeshBuffer mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRFovStencilMeshBuffer callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRFovStencilMeshBuffer mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRFovStencilMeshBuffer callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRFovStencilMeshBuffer.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static OVRFovStencilMeshBuffer.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRFovStencilMeshBuffer.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 OVRFovStencilMeshBuffer.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static OVRFovStencilMeshBuffer malloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilMeshBufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static OVRFovStencilMeshBuffer calloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilMeshBufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static OVRFovStencilMeshBuffer.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static OVRFovStencilMeshBuffer.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nAllocVertexCount
public static int nAllocVertexCount(long struct)
Unsafe version ofAllocVertexCount().
-
nUsedVertexCount
public static int nUsedVertexCount(long struct)
Unsafe version ofUsedVertexCount().
-
nVertexBuffer
@Nullable public static OVRVector2f.Buffer nVertexBuffer(long struct)
Unsafe version ofVertexBuffer().
-
nAllocIndexCount
public static int nAllocIndexCount(long struct)
Unsafe version ofAllocIndexCount().
-
nUsedIndexCount
public static int nUsedIndexCount(long struct)
Unsafe version ofUsedIndexCount().
-
nIndexBuffer
@Nullable public static java.nio.ShortBuffer nIndexBuffer(long struct)
Unsafe version ofIndexBuffer.
-
nAllocVertexCount
public static void nAllocVertexCount(long struct, int value)Sets the specified value to theAllocVertexCountfield of the specifiedstruct.
-
nUsedVertexCount
public static void nUsedVertexCount(long struct, int value)Unsafe version ofUsedVertexCount.
-
nVertexBuffer
public static void nVertexBuffer(long struct, @Nullable OVRVector2f.Buffer value)Unsafe version ofVertexBuffer.
-
nAllocIndexCount
public static void nAllocIndexCount(long struct, int value)Sets the specified value to theAllocIndexCountfield of the specifiedstruct.
-
nUsedIndexCount
public static void nUsedIndexCount(long struct, int value)Unsafe version ofUsedIndexCount.
-
nIndexBuffer
public static void nIndexBuffer(long struct, @Nullable java.nio.ShortBuffer value)Unsafe version ofIndexBuffer.
-
-