Class VertexArrayObject

java.lang.Object
dev.prozilla.pine.core.rendering.VertexArrayObject
All Implemented Interfaces:
Lifecycle

public class VertexArrayObject extends Object implements Lifecycle
Represents a Vertex Array Object (VAO).
  • Constructor Details

    • VertexArrayObject

      public VertexArrayObject()
      Creates a Vertex Array Object (VAO).
  • Method Details

    • bind

      public void bind()
      Binds the VAO.
    • destroy

      public void destroy()
      Deletes the VAO.
      Specified by:
      destroy in interface Lifecycle
    • getId

      public int getId()
      Getter for the Vertex Array Object ID.
      Returns:
      Handle of the VAO