Class IndexBuffer


  • public class IndexBuffer
    extends Object
    Class that represent an opengl index buffer
    Author:
    Darius Dinger
    • Constructor Detail

      • IndexBuffer

        public IndexBuffer​(int id,
                           int size)
        Creates new Index buffer
        Parameters:
        id - Id of the new index buffer
        size - Size of the new index buffer
    • Method Detail

      • bind

        public void bind()
        Binds IndexBuffer to opengl
      • unbind

        public void unbind()
        Unbinds IndexBuffer from opengl (bind 0)
      • getId

        public int getId()
        Returns:
        Index buffers id
      • getSize

        public int getSize()
        Returns:
        Index buffers size