Package org.lwjgl.ovr
Class OVRFovStencilMeshBuffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRFovStencilMeshBuffer>
org.lwjgl.ovr.OVRFovStencilMeshBuffer
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRFovStencilMeshBuffer
extends org.lwjgl.system.Struct<OVRFovStencilMeshBuffer>
implements org.lwjgl.system.NativeResource
Contains 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 {
int AllocVertexCount();
int UsedVertexCount();
ovrVector2f * VertexBuffer();
int AllocIndexCount();
int UsedIndexCount();
uint16_t * IndexBuffer();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRFovStencilMeshBuffer(ByteBuffer container) Creates aOVRFovStencilMeshBufferinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintto be filled in by caller ofGetFovStencilAllocIndexCount(int value) Sets the specified value to theAllocIndexCount()field.intto be filled in by caller ofGetFovStencilAllocVertexCount(int value) Sets the specified value to theAllocVertexCount()field.static OVRFovStencilMeshBuffercalloc()Returns a newOVRFovStencilMeshBufferinstance allocated withmemCalloc.calloc(int capacity) Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated withmemCalloc.calloc(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 OVRFovStencilMeshBufferDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRFovStencilMeshBuffercallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRFovStencilMeshBuffercreate()Returns a newOVRFovStencilMeshBufferinstance allocated withBufferUtils.create(int capacity) Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated withBufferUtils.static OVRFovStencilMeshBuffercreate(long address) Returns a newOVRFovStencilMeshBufferinstance for the specified memory address.create(long address, int capacity) Create aOVRFovStencilMeshBuffer.Bufferinstance at the specified memory.static @Nullable OVRFovStencilMeshBuffercreateSafe(long address) static @Nullable OVRFovStencilMeshBuffer.BuffercreateSafe(long address, int capacity) @Nullable ShortBufferto be allocated by caller and filled in by SDKIndexBuffer(@Nullable ShortBuffer value) Sets the address of the specifiedShortBufferto theIndexBuffer()field.static OVRFovStencilMeshBuffermalloc()Returns a newOVRFovStencilMeshBufferinstance allocated withmemAlloc.malloc(int capacity) Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated withmemAlloc.malloc(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 OVRFovStencilMeshBufferDeprecated.mallocStack(int capacity) Deprecated.mallocStack(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 @Nullable ShortBuffernIndexBuffer(long struct) Unsafe version ofIndexBuffer.static voidnIndexBuffer(long struct, @Nullable 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 @Nullable OVRVector2f.BuffernVertexBuffer(long struct) Unsafe version ofVertexBuffer().static voidnVertexBuffer(long struct, @Nullable OVRVector2f.Buffer value) Unsafe version ofVertexBuffer.set(int AllocVertexCount, int UsedVertexCount, @Nullable OVRVector2f.Buffer VertexBuffer, int AllocIndexCount, int UsedIndexCount, @Nullable ShortBuffer IndexBuffer) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()intto be filled in by SDK and returned to callerUsedIndexCount(int value) Sets the specified value to theUsedIndexCount()field.intto be filled in by SDK and returned to callerUsedVertexCount(int value) Sets the specified value to theUsedVertexCount()field.@Nullable OVRVector2f.Bufferto be allocated by caller and filled in by SDKVertexBuffer(@Nullable OVRVector2f.Buffer value) Sets the address of the specifiedOVRVector2f.Bufferto theVertexBuffer()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ALLOCVERTEXCOUNT
public static final int ALLOCVERTEXCOUNTThe struct member offsets. -
USEDVERTEXCOUNT
public static final int USEDVERTEXCOUNTThe struct member offsets. -
VERTEXBUFFER
public static final int VERTEXBUFFERThe struct member offsets. -
ALLOCINDEXCOUNT
public static final int ALLOCINDEXCOUNTThe struct member offsets. -
USEDINDEXCOUNT
public static final int USEDINDEXCOUNTThe struct member offsets. -
INDEXBUFFER
public static final int INDEXBUFFERThe struct member offsets.
-
-
Constructor Details
-
OVRFovStencilMeshBuffer
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<OVRFovStencilMeshBuffer>
-
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
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
to be allocated by caller and filled in by SDK -
AllocVertexCount
Sets the specified value to theAllocVertexCount()field. -
UsedVertexCount
Sets the specified value to theUsedVertexCount()field. -
VertexBuffer
Sets the address of the specifiedOVRVector2f.Bufferto theVertexBuffer()field. -
AllocIndexCount
Sets the specified value to theAllocIndexCount()field. -
UsedIndexCount
Sets the specified value to theUsedIndexCount()field. -
IndexBuffer
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 ShortBuffer IndexBuffer) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newOVRFovStencilMeshBufferinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRFovStencilMeshBufferinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRFovStencilMeshBufferinstance allocated withBufferUtils. -
create
Returns a newOVRFovStencilMeshBufferinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRFovStencilMeshBuffer.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRFovStencilMeshBuffer.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
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
Returns a newOVRFovStencilMeshBufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
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:
capacity- the buffer capacitystack- the stack from which to allocate
-
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:
capacity- the buffer capacitystack- the stack from which to allocate
-
nAllocVertexCount
public static int nAllocVertexCount(long struct) Unsafe version ofAllocVertexCount(). -
nUsedVertexCount
public static int nUsedVertexCount(long struct) Unsafe version ofUsedVertexCount(). -
nVertexBuffer
Unsafe version ofVertexBuffer(). -
nAllocIndexCount
public static int nAllocIndexCount(long struct) Unsafe version ofAllocIndexCount(). -
nUsedIndexCount
public static int nUsedIndexCount(long struct) Unsafe version ofUsedIndexCount(). -
nIndexBuffer
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
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
Unsafe version ofIndexBuffer.
-