Package org.lwjgl.ovr

Class 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.NativeResource

    Member documentation

    • AllocVertexCount – to be filled in by caller of GetViewportStencil
    • UsedVertexCount – to be filled in by SDK and returned to caller
    • VertexBuffer – to be allocated by caller and filled in by SDK
    • AllocIndexCount – to be filled in by caller of GetViewportStencil
    • UsedIndexCount – to be filled in by SDK and returned to caller
    • IndexBuffer – 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;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ALLOCVERTEXCOUNT, USEDVERTEXCOUNT, VERTEXBUFFER, ALLOCINDEXCOUNT, USEDINDEXCOUNT, INDEXBUFFER

        The struct member offsets.
    • Constructor Detail

      • OVRViewportStencilMeshBuffer

        public OVRViewportStencilMeshBuffer​(java.nio.ByteBuffer container)
        Creates a OVRViewportStencilMeshBuffer instance at the current position of the specified ByteBuffer 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.