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.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.Member documentation
AllocVertexCount
– to be filled in by caller ofGetFovStencil
UsedVertexCount
– 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 ofGetFovStencil
UsedIndexCount
– 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 class
OVRFovStencilMeshBuffer.Buffer
An array ofOVRFovStencilMeshBuffer
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
ALLOCINDEXCOUNT
ALLOCVERTEXCOUNT
INDEXBUFFERThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
USEDINDEXCOUNT
USEDVERTEXCOUNT
VERTEXBUFFERThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description OVRFovStencilMeshBuffer(java.nio.ByteBuffer container)
Creates aOVRFovStencilMeshBuffer
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
AllocIndexCount()
Returns the value of theAllocIndexCount
field.OVRFovStencilMeshBuffer
AllocIndexCount(int value)
Sets the specified value to theAllocIndexCount
field.int
AllocVertexCount()
Returns the value of theAllocVertexCount
field.OVRFovStencilMeshBuffer
AllocVertexCount(int value)
Sets the specified value to theAllocVertexCount
field.static OVRFovStencilMeshBuffer
calloc()
Returns a newOVRFovStencilMeshBuffer
instance allocated withmemCalloc
.static OVRFovStencilMeshBuffer.Buffer
calloc(int capacity)
Returns a newOVRFovStencilMeshBuffer.Buffer
instance allocated withmemCalloc
.static OVRFovStencilMeshBuffer
callocStack()
Returns a newOVRFovStencilMeshBuffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRFovStencilMeshBuffer.Buffer
callocStack(int capacity)
Returns a newOVRFovStencilMeshBuffer.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRFovStencilMeshBuffer.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilMeshBuffer.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRFovStencilMeshBuffer
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilMeshBuffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRFovStencilMeshBuffer
create()
Returns a newOVRFovStencilMeshBuffer
instance allocated withBufferUtils
.static OVRFovStencilMeshBuffer.Buffer
create(int capacity)
Returns a newOVRFovStencilMeshBuffer.Buffer
instance allocated withBufferUtils
.static OVRFovStencilMeshBuffer
create(long address)
Returns a newOVRFovStencilMeshBuffer
instance for the specified memory address.static OVRFovStencilMeshBuffer.Buffer
create(long address, int capacity)
Create aOVRFovStencilMeshBuffer.Buffer
instance at the specified memory.static OVRFovStencilMeshBuffer
createSafe(long address)
static OVRFovStencilMeshBuffer.Buffer
createSafe(long address, int capacity)
java.nio.ShortBuffer
IndexBuffer()
Returns aShortBuffer
view of the data pointed to by theIndexBuffer
field.OVRFovStencilMeshBuffer
IndexBuffer(java.nio.ShortBuffer value)
Sets the address of the specifiedShortBuffer
to theIndexBuffer
field.static OVRFovStencilMeshBuffer
malloc()
Returns a newOVRFovStencilMeshBuffer
instance allocated withmemAlloc
.static OVRFovStencilMeshBuffer.Buffer
malloc(int capacity)
Returns a newOVRFovStencilMeshBuffer.Buffer
instance allocated withmemAlloc
.static OVRFovStencilMeshBuffer
mallocStack()
Returns a newOVRFovStencilMeshBuffer
instance allocated on the thread-localMemoryStack
.static OVRFovStencilMeshBuffer.Buffer
mallocStack(int capacity)
Returns a newOVRFovStencilMeshBuffer.Buffer
instance allocated on the thread-localMemoryStack
.static OVRFovStencilMeshBuffer.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilMeshBuffer.Buffer
instance allocated on the specifiedMemoryStack
.static OVRFovStencilMeshBuffer
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilMeshBuffer
instance allocated on the specifiedMemoryStack
.static int
nAllocIndexCount(long struct)
Unsafe version ofAllocIndexCount()
.static void
nAllocIndexCount(long struct, int value)
Sets the specified value to theAllocIndexCount
field of the specifiedstruct
.static int
nAllocVertexCount(long struct)
Unsafe version ofAllocVertexCount()
.static void
nAllocVertexCount(long struct, int value)
Sets the specified value to theAllocVertexCount
field of the specifiedstruct
.static java.nio.ShortBuffer
nIndexBuffer(long struct)
Unsafe version ofIndexBuffer
.static void
nIndexBuffer(long struct, java.nio.ShortBuffer value)
Unsafe version ofIndexBuffer
.static int
nUsedIndexCount(long struct)
Unsafe version ofUsedIndexCount()
.static void
nUsedIndexCount(long struct, int value)
Unsafe version ofUsedIndexCount
.static int
nUsedVertexCount(long struct)
Unsafe version ofUsedVertexCount()
.static void
nUsedVertexCount(long struct, int value)
Unsafe version ofUsedVertexCount
.static OVRVector2f.Buffer
nVertexBuffer(long struct)
Unsafe version ofVertexBuffer()
.static void
nVertexBuffer(long struct, OVRVector2f.Buffer value)
Unsafe version ofVertexBuffer
.OVRFovStencilMeshBuffer
set(int AllocVertexCount, int UsedVertexCount, OVRVector2f.Buffer VertexBuffer, int AllocIndexCount, int UsedIndexCount, java.nio.ShortBuffer IndexBuffer)
Initializes this struct with the specified values.OVRFovStencilMeshBuffer
set(OVRFovStencilMeshBuffer src)
Copies the specified struct data to this struct.int
sizeof()
int
UsedIndexCount()
Returns the value of theUsedIndexCount
field.OVRFovStencilMeshBuffer
UsedIndexCount(int value)
Sets the specified value to theUsedIndexCount
field.int
UsedVertexCount()
Returns the value of theUsedVertexCount
field.OVRFovStencilMeshBuffer
UsedVertexCount(int value)
Sets the specified value to theUsedVertexCount
field.OVRVector2f.Buffer
VertexBuffer()
Returns aOVRVector2f.Buffer
view of the struct array pointed to by theVertexBuffer
field.OVRFovStencilMeshBuffer
VertexBuffer(OVRVector2f.Buffer value)
Sets the address of the specifiedOVRVector2f.Buffer
to theVertexBuffer
field.
-
-
-
Constructor Detail
-
OVRFovStencilMeshBuffer
public OVRFovStencilMeshBuffer(java.nio.ByteBuffer container)
Creates aOVRFovStencilMeshBuffer
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
AllocVertexCount
public int AllocVertexCount()
Returns the value of theAllocVertexCount
field.
-
UsedVertexCount
public int UsedVertexCount()
Returns the value of theUsedVertexCount
field.
-
VertexBuffer
@Nullable public OVRVector2f.Buffer VertexBuffer()
Returns aOVRVector2f.Buffer
view of the struct array pointed to by theVertexBuffer
field.
-
AllocIndexCount
public int AllocIndexCount()
Returns the value of theAllocIndexCount
field.
-
UsedIndexCount
public int UsedIndexCount()
Returns the value of theUsedIndexCount
field.
-
IndexBuffer
@Nullable public java.nio.ShortBuffer IndexBuffer()
Returns aShortBuffer
view of the data pointed to by theIndexBuffer
field.
-
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.Buffer
to 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 specifiedShortBuffer
to 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 newOVRFovStencilMeshBuffer
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRFovStencilMeshBuffer calloc()
Returns a newOVRFovStencilMeshBuffer
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRFovStencilMeshBuffer create()
Returns a newOVRFovStencilMeshBuffer
instance allocated withBufferUtils
.
-
create
public static OVRFovStencilMeshBuffer create(long address)
Returns a newOVRFovStencilMeshBuffer
instance for the specified memory address.
-
createSafe
@Nullable public static OVRFovStencilMeshBuffer createSafe(long address)
-
malloc
public static OVRFovStencilMeshBuffer.Buffer malloc(int capacity)
Returns a newOVRFovStencilMeshBuffer.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRFovStencilMeshBuffer.Buffer calloc(int capacity)
Returns a newOVRFovStencilMeshBuffer.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRFovStencilMeshBuffer.Buffer create(int capacity)
Returns a newOVRFovStencilMeshBuffer.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRFovStencilMeshBuffer.Buffer create(long address, int capacity)
Create aOVRFovStencilMeshBuffer.Buffer
instance 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 newOVRFovStencilMeshBuffer
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRFovStencilMeshBuffer callocStack()
Returns a newOVRFovStencilMeshBuffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRFovStencilMeshBuffer mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilMeshBuffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRFovStencilMeshBuffer callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilMeshBuffer
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRFovStencilMeshBuffer.Buffer callocStack(int capacity)
Returns a newOVRFovStencilMeshBuffer.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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 theAllocVertexCount
field 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 theAllocIndexCount
field 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
.
-
-