Package org.lwjgl.ovr

Class OVRFovStencilMeshBuffer.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new OVRFovStencilMeshBuffer.Buffer instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by OVRFovStencilMeshBuffer.SIZEOF, and its mark will be undefined.

        The created buffer instance holds a strong reference to the container object.

      • Buffer

        public Buffer​(long address,
                      int cap)
    • Method Detail

      • AllocVertexCount

        public int AllocVertexCount()
        Returns the value of the AllocVertexCount field.
      • UsedVertexCount

        public int UsedVertexCount()
        Returns the value of the UsedVertexCount field.
      • AllocIndexCount

        public int AllocIndexCount()
        Returns the value of the AllocIndexCount field.
      • UsedIndexCount

        public int UsedIndexCount()
        Returns the value of the UsedIndexCount field.
      • IndexBuffer

        @Nullable
        public java.nio.ShortBuffer IndexBuffer()
        Returns a ShortBuffer view of the data pointed to by the IndexBuffer field.
      • IndexBuffer

        public OVRFovStencilMeshBuffer.Buffer IndexBuffer​(@Nullable
                                                          java.nio.ShortBuffer value)
        Sets the address of the specified ShortBuffer to the IndexBuffer field.