Class OGLVertexArrayState

java.lang.Object
com.blackrook.gloop.opengl.OGLObject
com.blackrook.gloop.opengl.gl3.OGLVertexArrayState

public class OGLVertexArrayState extends OGLObject
A Vertex Array Object abstraction. This object maintains state for all of the current Vertex Attribute Pointers and Buffer target bindings.
Author:
Matthew Tropiano
  • Field Details

    • UNDELETED_IDS

      protected static int[] UNDELETED_IDS
      List of OpenGL object ids that were not deleted properly.
    • UNDELETED_LENGTH

      protected static int UNDELETED_LENGTH
      Amount of OpenGL object ids that were not deleted properly.
  • Method Details

    • free

      protected void free()
      Description copied from class: OGLObject
      Destroys this object (deallocates it on OpenAL). This is called by destroy().
      Specified by:
      free in class OGLObject
    • destroyUndeleted

      public static int destroyUndeleted()
      Destroys undeleted buffers abandoned from destroyed Java objects.

      This is automatically called by OGLSystem after every frame and should NEVER be called manually!

      Returns:
      the amount of objects deleted.
    • finalize

      public void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable