Class BufferObject

    • Field Detail

      • ranges

        public final android.util.SparseArray<Range> ranges
    • Constructor Detail

      • BufferObject

        public BufferObject​(int target,
                            int size,
                            java.nio.Buffer buffer)
    • Method Detail

      • getBufferTarget

        public int getBufferTarget()
      • getBufferLength

        public int getBufferLength()
      • getBufferByteCount

        public int getBufferByteCount()
      • release

        public void release​(DrawContext dc)
        Description copied from interface: RenderResource
        Frees any resources associated with this instance. After this method returns the rendering resource is invalid, and any associated GL object is deleted.
        Specified by:
        release in interface RenderResource
        Parameters:
        dc - the current draw context
      • bindBuffer

        public boolean bindBuffer​(DrawContext dc)