Interface GL3

All Superinterfaces:
GL, GL2
All Known Subinterfaces:
GL4
All Known Implementing Classes:
LwjglGL

public interface GL3 extends GL2
GL functions only available on vanilla desktop OpenGL 3.0+.
  • Field Details

  • Method Details

    • glBindFragDataLocation

      void glBindFragDataLocation(int program, int colorNumber, String name)

      Reference Page

      Binds a user-defined varying out variable to a fragment shader color number.

      Parameters:
      program - the name of the program containing varying out variable whose binding to modify.
      colorNumber - the color number to bind the user-defined varying out variable to.
      name - the name of the user-defined varying out variable whose binding to modify.
    • glBindVertexArray

      void glBindVertexArray(int array)

      Reference Page

      Binds a vertex array object

      Parameters:
      array - the name of the vertex array to bind.
    • glDeleteVertexArrays

      void glDeleteVertexArrays(IntBuffer arrays)
      Deletes vertex array objects.
      Parameters:
      arrays - an array containing the n names of the objects to be deleted.
    • glGenVertexArrays

      void glGenVertexArrays(IntBuffer arrays)

      Reference Page

      Generates vertex array object names.
      Parameters:
      arrays - a buffer in which the generated vertex array object names are stored.
    • glGetString

      String glGetString(int name, int index)

      Reference Page

      Queries indexed string state.
      Parameters:
      name - the indexed state to query. One of: EXTENSIONS SHADING_LANGUAGE_VERSION
      index - the index of the particular element being queried.
      Returns:
      the value of the string state
    • glGetUniformBlockIndex

      int glGetUniformBlockIndex(int program, String uniformBlockName)

      Reference Page

      Retrieves the index of a named uniform block.
      Parameters:
      program - the name of a program containing the uniform block.
      uniformBlockName - an array of characters to containing the name of the uniform block whose index to retrieve.
      Returns:
      the block index.
    • glBindBufferBase

      void glBindBufferBase(int target, int index, int buffer)

      Reference Page

      Binds a buffer object to an indexed buffer target.
      Parameters:
      target - the target of the bind operation. One of: TRANSFORM_FEEDBACK_BUFFER UNIFORM_BUFFER ATOMIC_COUNTER_BUFFER SHADER_STORAGE_BUFFER
      index - the index of the binding point within the array specified by target
      buffer - a buffer object to bind to the specified binding point
    • glUniformBlockBinding

      void glUniformBlockBinding(int program, int uniformBlockIndex, int uniformBlockBinding)
      Binding points for active uniform blocks are assigned using glUniformBlockBinding. Each of a program's active uniform blocks has a corresponding uniform buffer binding point. program is the name of a program object for which the command glLinkProgram has been issued in the past.

      If successful, glUniformBlockBinding specifies that program will use the data store of the buffer object bound to the binding point uniformBlockBinding to extract the values of the uniforms in the uniform block identified by uniformBlockIndex.

      When a program object is linked or re-linked, the uniform buffer object binding point assigned to each of its active uniform blocks is reset to zero.

      Parameters:
      program - The name of a program object containing the active uniform block whose binding to assign.
      uniformBlockIndex - The index of the active uniform block within program whose binding to assign.
      uniformBlockBinding - Specifies the binding point to which to bind the uniform block with index uniformBlockIndex within program.