Class OGL31Graphics

All Implemented Interfaces:
OGLVersioned
Direct Known Subclasses:
OGL32Graphics

public class OGL31Graphics extends OGL30Graphics
OpenGL 3.1 Graphics Implementation.
Author:
Matthew Tropiano
  • Constructor Details

  • Method Details

    • getVersion

      public OGLVersion getVersion()
      Specified by:
      getVersion in interface OGLVersioned
      Overrides:
      getVersion in class OGL30Graphics
      Returns:
      the version that this object or value is available for (and higher).
    • createInfo

      protected OGLGraphics.Info createInfo()
      Description copied from class: OGLGraphics
      Called once in order to fetch context info.
      Overrides:
      createInfo in class OGL30Graphics
      Returns:
      the info object.
    • drawGeometryArrayInstanced

      public void drawGeometryArrayInstanced(GeometryType geometryType, int offset, int elementCount, int instances)
      Draws geometry using the current bound, enabled coordinate arrays/buffers as data.
      Parameters:
      geometryType - the geometry type - tells how to interpret the data.
      offset - the starting offset in the bound buffers (in elements).
      elementCount - the number of elements to draw using bound buffers. NOTE: an element is in terms of array elements, so if the bound buffers describe the coordinates of 4 vertices, elementCount should be 4.
      instances - the number of instances of the element set to draw using bound buffers.
    • drawGeometryElementsInstanced

      public void drawGeometryElementsInstanced(GeometryType geometryType, DataType dataType, ByteBuffer indices, int instances)
      Draws geometry using the current bound, enabled coordinate arrays/buffers as data, with the provided element buffer to describe the ordering.
      Parameters:
      geometryType - the geometry type - tells how to interpret the data.
      dataType - the data type of the indices in indices (must be an unsigned type).
      indices - the buffer of element indices to interpret.
      instances - the number of instances of the element set to draw using bound buffers.
    • drawGeometryElementsInstanced

      public void drawGeometryElementsInstanced(GeometryType geometryType, ByteBuffer indices, int instances)
      Draws geometry using the current bound, enabled coordinate arrays/buffers as data, with the provided element buffer to describe the ordering.
      Parameters:
      geometryType - the geometry type - tells how to interpret the data.
      indices - the buffer of element indices.
      instances - the number of instances of the element set to draw using bound buffers.
    • drawGeometryElementsInstanced

      public void drawGeometryElementsInstanced(GeometryType geometryType, ShortBuffer indices, int instances)
      Draws geometry using the current bound, enabled coordinate arrays/buffers as data, with the provided element buffer to describe the ordering.
      Parameters:
      geometryType - the geometry type - tells how to interpret the data.
      indices - the buffer of element indices.
      instances - the number of instances of the element set to draw using bound buffers.
    • drawGeometryElementsInstanced

      public void drawGeometryElementsInstanced(GeometryType geometryType, IntBuffer indices, int instances)
      Draws geometry using the current bound, enabled coordinate arrays/buffers as data, with the provided element buffer to describe the ordering.
      Parameters:
      geometryType - the geometry type - tells how to interpret the data.
      indices - the buffer of element indices.
      instances - the number of instances of the element set to draw using bound buffers.