Class JoGLIndicesBuffer

    • Method Detail

      • setData

        public void setData​(int[] indices)
        Description copied from interface: IndicesBuffer
        Set the data
        Specified by:
        setData in interface IndicesBuffer
        Parameters:
        indices - the new data.
      • setData

        public void setData​(java.util.Collection<java.lang.Integer> indices)
        Description copied from interface: IndicesBuffer
        Set the data
        Specified by:
        setData in interface IndicesBuffer
        Parameters:
        indices - the new data.
      • setData

        public void setData​(java.nio.IntBuffer indexBuffer)
        Description copied from interface: IndicesBuffer
        Set the data.
        Specified by:
        setData in interface IndicesBuffer
        Parameters:
        indexBuffer - the new data.
      • getSize

        public int getSize()
        Description copied from interface: DataBuffer
        Return the number of elements.
        Specified by:
        getSize in interface DataBuffer
        Returns:
        the number of elements.
      • getByteSize

        public int getByteSize()
        Description copied from class: JoGLDataBuffer
        Return the size of this buffer in byte.
        Specified by:
        getByteSize in class JoGLDataBuffer
        Returns:
        the size of this buffer in byte.
      • getByteBuffer

        protected java.nio.Buffer getByteBuffer()
        Description copied from class: JoGLDataBuffer
        Return the data as byte buffer.
        Specified by:
        getByteBuffer in class JoGLDataBuffer
        Returns:
        the data as byte buffer.
      • getGLBindDestination

        protected int getGLBindDestination()
        Description copied from class: JoGLDataBuffer
        Return the OpenGl bind destination.
        Specified by:
        getGLBindDestination in class JoGLDataBuffer
        Returns:
        the OpenGl bind destination.