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.Member documentation
AllocVertexCount– to be filled in by caller ofGetFovStencilUsedVertexCount– 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 ofGetFovStencilUsedIndexCount– to be filled in by SDK and returned to callerIndexBuffer– to be allocated by caller and filled in by SDK
Layout
struct ovrFovStencilMeshBuffer { int AllocVertexCount; int UsedVertexCount;ovrVector2f* VertexBuffer; int AllocIndexCount; int UsedIndexCount; 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 Modifier and Type Method Description intAllocIndexCount()Returns the value of theAllocIndexCountfield.OVRFovStencilMeshBufferAllocIndexCount(int value)Sets the specified value to theAllocIndexCountfield.intAllocVertexCount()Returns the value of theAllocVertexCountfield.OVRFovStencilMeshBufferAllocVertexCount(int value)Sets the specified value to theAllocVertexCountfield.static OVRFovStencilMeshBuffercalloc()Returns a newOVRFovStencilMeshBufferinstance allocated withmemCalloc.static OVRFovStencilMeshBuffer.Buffercalloc(int capacity)Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated withmemCalloc.static OVRFovStencilMeshBuffercallocStack()Returns a newOVRFovStencilMeshBufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRFovStencilMeshBuffer.BuffercallocStack(int capacity)Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRFovStencilMeshBuffer.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRFovStencilMeshBuffercallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRFovStencilMeshBufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns aShortBufferview of the data pointed to by theIndexBufferfield.OVRFovStencilMeshBufferIndexBuffer(java.nio.ShortBuffer value)Sets the address of the specifiedShortBufferto theIndexBufferfield.static OVRFovStencilMeshBuffermalloc()Returns a newOVRFovStencilMeshBufferinstance allocated withmemAlloc.static OVRFovStencilMeshBuffer.Buffermalloc(int capacity)Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated withmemAlloc.static OVRFovStencilMeshBuffermallocStack()Returns a newOVRFovStencilMeshBufferinstance allocated on the thread-localMemoryStack.static OVRFovStencilMeshBuffer.BuffermallocStack(int capacity)Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated on the thread-localMemoryStack.static OVRFovStencilMeshBuffer.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated on the specifiedMemoryStack.static OVRFovStencilMeshBuffermallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRFovStencilMeshBufferinstance 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.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()Returns the value of theUsedIndexCountfield.OVRFovStencilMeshBufferUsedIndexCount(int value)Sets the specified value to theUsedIndexCountfield.intUsedVertexCount()Returns the value of theUsedVertexCountfield.OVRFovStencilMeshBufferUsedVertexCount(int value)Sets the specified value to theUsedVertexCountfield.OVRVector2f.BufferVertexBuffer()Returns aOVRVector2f.Bufferview of the struct array pointed to by theVertexBufferfield.OVRFovStencilMeshBufferVertexBuffer(OVRVector2f.Buffer value)Sets the address of the specifiedOVRVector2f.Bufferto theVertexBufferfield.
-
-
-
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()
Returns the value of theAllocVertexCountfield.
-
UsedVertexCount
public int UsedVertexCount()
Returns the value of theUsedVertexCountfield.
-
VertexBuffer
@Nullable 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
@Nullable public java.nio.ShortBuffer IndexBuffer()
Returns aShortBufferview of the data pointed to by theIndexBufferfield.
-
AllocVertexCount
public OVRFovStencilMeshBuffer AllocVertexCount(int value)
Sets the specified value to theAllocVertexCountfield.
-
UsedVertexCount
public OVRFovStencilMeshBuffer UsedVertexCount(int value)
Sets the specified value to theUsedVertexCountfield.
-
VertexBuffer
public OVRFovStencilMeshBuffer VertexBuffer(@Nullable OVRVector2f.Buffer value)
Sets the address of the specifiedOVRVector2f.Bufferto theVertexBufferfield.
-
AllocIndexCount
public OVRFovStencilMeshBuffer AllocIndexCount(int value)
Sets the specified value to theAllocIndexCountfield.
-
UsedIndexCount
public OVRFovStencilMeshBuffer UsedIndexCount(int value)
Sets the specified value to theUsedIndexCountfield.
-
IndexBuffer
public OVRFovStencilMeshBuffer IndexBuffer(@Nullable java.nio.ShortBuffer value)
Sets the address of the specifiedShortBufferto theIndexBufferfield.
-
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
public static OVRFovStencilMeshBuffer mallocStack()
Returns a newOVRFovStencilMeshBufferinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRFovStencilMeshBuffer callocStack()
Returns a newOVRFovStencilMeshBufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRFovStencilMeshBuffer mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilMeshBufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRFovStencilMeshBuffer callocStack(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
-
mallocStack
public static OVRFovStencilMeshBuffer.Buffer mallocStack(int capacity)
Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRFovStencilMeshBuffer.Buffer callocStack(int capacity)
Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRFovStencilMeshBuffer.Buffer mallocStack(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
-
callocStack
public static OVRFovStencilMeshBuffer.Buffer callocStack(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.
-
-