Package org.lwjgl.ovr
Class OVRViewportStencilMeshBuffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRViewportStencilMeshBuffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRViewportStencilMeshBuffer extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceMember documentation
AllocVertexCount– to be filled in by caller ofGetViewportStencilUsedVertexCount– to be filled in by SDK and returned to callerVertexBuffer– to be allocated by caller and filled in by SDKAllocIndexCount– to be filled in by caller ofGetViewportStencilUsedIndexCount– to be filled in by SDK and returned to callerIndexBuffer– to be allocated by caller and filled in by SDK
Layout
struct ovrViewportStencilMeshBuffer { int AllocVertexCount; int UsedVertexCount;ovrVector2f* VertexBuffer; int AllocIndexCount; int UsedIndexCount; uint16_t * IndexBuffer; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRViewportStencilMeshBuffer.BufferAn array ofOVRViewportStencilMeshBufferstructs.
-
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 OVRViewportStencilMeshBuffer(java.nio.ByteBuffer container)Creates aOVRViewportStencilMeshBufferinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intAllocIndexCount()Returns the value of theAllocIndexCountfield.intAllocVertexCount()Returns the value of theAllocVertexCountfield.static OVRViewportStencilMeshBuffercalloc()Returns a newOVRViewportStencilMeshBufferinstance allocated withmemCalloc.static OVRViewportStencilMeshBuffer.Buffercalloc(int capacity)Returns a newOVRViewportStencilMeshBuffer.Bufferinstance allocated withmemCalloc.static OVRViewportStencilMeshBuffercallocStack()Returns a newOVRViewportStencilMeshBufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRViewportStencilMeshBuffer.BuffercallocStack(int capacity)Returns a newOVRViewportStencilMeshBuffer.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRViewportStencilMeshBuffer.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRViewportStencilMeshBuffer.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRViewportStencilMeshBuffercallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRViewportStencilMeshBufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRViewportStencilMeshBuffercreate()Returns a newOVRViewportStencilMeshBufferinstance allocated withBufferUtils.static OVRViewportStencilMeshBuffer.Buffercreate(int capacity)Returns a newOVRViewportStencilMeshBuffer.Bufferinstance allocated withBufferUtils.static OVRViewportStencilMeshBuffercreate(long address)Returns a newOVRViewportStencilMeshBufferinstance for the specified memory address.static OVRViewportStencilMeshBuffer.Buffercreate(long address, int capacity)Create aOVRViewportStencilMeshBuffer.Bufferinstance at the specified memory.static OVRViewportStencilMeshBuffercreateSafe(long address)static OVRViewportStencilMeshBuffer.BuffercreateSafe(long address, int capacity)java.nio.ShortBufferIndexBuffer()Returns aShortBufferview of the data pointed to by theIndexBufferfield.OVRViewportStencilMeshBufferIndexBuffer(java.nio.ShortBuffer value)Sets the address of the specifiedShortBufferto theIndexBufferfield.static OVRViewportStencilMeshBuffermalloc()Returns a newOVRViewportStencilMeshBufferinstance allocated withmemAlloc.static OVRViewportStencilMeshBuffer.Buffermalloc(int capacity)Returns a newOVRViewportStencilMeshBuffer.Bufferinstance allocated withmemAlloc.static OVRViewportStencilMeshBuffermallocStack()Returns a newOVRViewportStencilMeshBufferinstance allocated on the thread-localMemoryStack.static OVRViewportStencilMeshBuffer.BuffermallocStack(int capacity)Returns a newOVRViewportStencilMeshBuffer.Bufferinstance allocated on the thread-localMemoryStack.static OVRViewportStencilMeshBuffer.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRViewportStencilMeshBuffer.Bufferinstance allocated on the specifiedMemoryStack.static OVRViewportStencilMeshBuffermallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRViewportStencilMeshBufferinstance allocated on the specifiedMemoryStack.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.OVRViewportStencilMeshBufferset(int UsedVertexCount, OVRVector2f.Buffer VertexBuffer, int UsedIndexCount, java.nio.ShortBuffer IndexBuffer)Initializes this struct with the specified values.OVRViewportStencilMeshBufferset(OVRViewportStencilMeshBuffer src)Copies the specified struct data to this struct.intsizeof()intUsedIndexCount()Returns the value of theUsedIndexCountfield.OVRViewportStencilMeshBufferUsedIndexCount(int value)Sets the specified value to theUsedIndexCountfield.intUsedVertexCount()Returns the value of theUsedVertexCountfield.OVRViewportStencilMeshBufferUsedVertexCount(int value)Sets the specified value to theUsedVertexCountfield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.OVRVector2f.BufferVertexBuffer()Returns aOVRVector2f.Bufferview of the struct array pointed to by theVertexBufferfield.OVRViewportStencilMeshBufferVertexBuffer(OVRVector2f.Buffer value)Sets the address of the specifiedOVRVector2f.Bufferto theVertexBufferfield.
-
-
-
Constructor Detail
-
OVRViewportStencilMeshBuffer
public OVRViewportStencilMeshBuffer(java.nio.ByteBuffer container)
Creates aOVRViewportStencilMeshBufferinstance 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()
Returns the value of theAllocVertexCountfield.
-
UsedVertexCount
public int UsedVertexCount()
Returns the value of theUsedVertexCountfield.
-
VertexBuffer
public OVRVector2f.Buffer VertexBuffer()
Returns aOVRVector2f.Bufferview of the struct array pointed to by theVertexBufferfield.
-
AllocIndexCount
public int AllocIndexCount()
Returns the value of theAllocIndexCountfield.
-
UsedIndexCount
public int UsedIndexCount()
Returns the value of theUsedIndexCountfield.
-
IndexBuffer
public java.nio.ShortBuffer IndexBuffer()
Returns aShortBufferview of the data pointed to by theIndexBufferfield.
-
UsedVertexCount
public OVRViewportStencilMeshBuffer UsedVertexCount(int value)
Sets the specified value to theUsedVertexCountfield.
-
VertexBuffer
public OVRViewportStencilMeshBuffer VertexBuffer(OVRVector2f.Buffer value)
Sets the address of the specifiedOVRVector2f.Bufferto theVertexBufferfield.
-
UsedIndexCount
public OVRViewportStencilMeshBuffer UsedIndexCount(int value)
Sets the specified value to theUsedIndexCountfield.
-
IndexBuffer
public OVRViewportStencilMeshBuffer IndexBuffer(java.nio.ShortBuffer value)
Sets the address of the specifiedShortBufferto theIndexBufferfield.
-
set
public OVRViewportStencilMeshBuffer set(int UsedVertexCount, OVRVector2f.Buffer VertexBuffer, int UsedIndexCount, java.nio.ShortBuffer IndexBuffer)
Initializes this struct with the specified values.
-
set
public OVRViewportStencilMeshBuffer set(OVRViewportStencilMeshBuffer src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static OVRViewportStencilMeshBuffer malloc()
Returns a newOVRViewportStencilMeshBufferinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRViewportStencilMeshBuffer calloc()
Returns a newOVRViewportStencilMeshBufferinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRViewportStencilMeshBuffer create()
Returns a newOVRViewportStencilMeshBufferinstance allocated withBufferUtils.
-
create
public static OVRViewportStencilMeshBuffer create(long address)
Returns a newOVRViewportStencilMeshBufferinstance for the specified memory address.
-
createSafe
@Nullable public static OVRViewportStencilMeshBuffer createSafe(long address)
-
malloc
public static OVRViewportStencilMeshBuffer.Buffer malloc(int capacity)
Returns a newOVRViewportStencilMeshBuffer.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRViewportStencilMeshBuffer.Buffer calloc(int capacity)
Returns a newOVRViewportStencilMeshBuffer.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRViewportStencilMeshBuffer.Buffer create(int capacity)
Returns a newOVRViewportStencilMeshBuffer.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRViewportStencilMeshBuffer.Buffer create(long address, int capacity)
Create aOVRViewportStencilMeshBuffer.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static OVRViewportStencilMeshBuffer.Buffer createSafe(long address, int capacity)
-
mallocStack
public static OVRViewportStencilMeshBuffer mallocStack()
Returns a newOVRViewportStencilMeshBufferinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRViewportStencilMeshBuffer callocStack()
Returns a newOVRViewportStencilMeshBufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRViewportStencilMeshBuffer mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRViewportStencilMeshBufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRViewportStencilMeshBuffer callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRViewportStencilMeshBufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static OVRViewportStencilMeshBuffer.Buffer mallocStack(int capacity)
Returns a newOVRViewportStencilMeshBuffer.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRViewportStencilMeshBuffer.Buffer callocStack(int capacity)
Returns a newOVRViewportStencilMeshBuffer.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRViewportStencilMeshBuffer.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRViewportStencilMeshBuffer.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static OVRViewportStencilMeshBuffer.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRViewportStencilMeshBuffer.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
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
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, 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, java.nio.ShortBuffer value)Unsafe version ofIndexBuffer.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-