Class OGL21Graphics

All Implemented Interfaces:
OGLVersioned
Direct Known Subclasses:
OGL30Graphics

public class OGL21Graphics extends OGL20Graphics
OpenGL 2.1 Graphics Implementation.
Author:
Matthew Tropiano
  • Constructor Details

  • Method Details

    • getVersion

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

      public void setProgramUniformMatrix2x3(int locationId, float[] matrix)
      Sets a uniform matrix (mat2x3) value on the currently-bound shader.
      Parameters:
      locationId - the uniform location.
      matrix - the column-major array of values.
      Throws:
      ArrayIndexOutOfBoundsException - if matrix is not 6 elements or greater and a value is fetched out-of-bounds.
    • setProgramUniformMatrix2x3

      public void setProgramUniformMatrix2x3(int locationId, float[][] matrix)
      Sets a uniform matrix (mat2x3) value on the currently-bound shader.
      Parameters:
      locationId - the uniform location.
      matrix - the multidimensional array of values, each array as one row of values.
      Throws:
      ArrayIndexOutOfBoundsException - if matrix is not 2x3 or greater and a value is fetched out-of-bounds.
    • setProgramUniformMatrix2x4

      public void setProgramUniformMatrix2x4(int locationId, float[] matrix)
      Sets a uniform matrix (mat2x4) value on the currently-bound shader.
      Parameters:
      locationId - the uniform location.
      matrix - the column-major array of values.
      Throws:
      ArrayIndexOutOfBoundsException - if matrix is not 8 elements or greater and a value is fetched out-of-bounds.
    • setProgramUniformMatrix2x4

      public void setProgramUniformMatrix2x4(int locationId, float[][] matrix)
      Sets a uniform matrix (mat2x4) value on the currently-bound shader.
      Parameters:
      locationId - the uniform location.
      matrix - the multidimensional array of values, each array as one row of values.
      Throws:
      ArrayIndexOutOfBoundsException - if matrix is not 2x4 or greater and a value is fetched out-of-bounds.
    • setProgramUniformMatrix3x2

      public void setProgramUniformMatrix3x2(int locationId, float[] matrix)
      Sets a uniform matrix (mat3x2) value on the currently-bound shader.
      Parameters:
      locationId - the uniform location.
      matrix - the column-major array of values.
      Throws:
      ArrayIndexOutOfBoundsException - if matrix is not 6 elements or greater and a value is fetched out-of-bounds.
    • setProgramUniformMatrix3x2

      public void setProgramUniformMatrix3x2(int locationId, float[][] matrix)
      Sets a uniform matrix (mat3x2) value on the currently-bound shader.
      Parameters:
      locationId - the uniform location.
      matrix - the multidimensional array of values, each array as one row of values.
      Throws:
      ArrayIndexOutOfBoundsException - if matrix is not 3x2 or greater and a value is fetched out-of-bounds.
    • setProgramUniformMatrix3x4

      public void setProgramUniformMatrix3x4(int locationId, float[] matrix)
      Sets a uniform matrix (mat3x4) value on the currently-bound shader.
      Parameters:
      locationId - the uniform location.
      matrix - the column-major array of values.
      Throws:
      ArrayIndexOutOfBoundsException - if matrix is not 12 elements or greater and a value is fetched out-of-bounds.
    • setProgramUniformMatrix3x4

      public void setProgramUniformMatrix3x4(int locationId, float[][] matrix)
      Sets a uniform matrix (mat3x4) value on the currently-bound shader.
      Parameters:
      locationId - the uniform location.
      matrix - the multidimensional array of values, each array as one row of values.
      Throws:
      ArrayIndexOutOfBoundsException - if matrix is not 3x4 or greater and a value is fetched out-of-bounds.
    • setProgramUniformMatrix4x2

      public void setProgramUniformMatrix4x2(int locationId, float[] matrix)
      Sets a uniform matrix (mat4x2) value on the currently-bound shader.
      Parameters:
      locationId - the uniform location.
      matrix - the column-major array of values.
      Throws:
      ArrayIndexOutOfBoundsException - if matrix is not 8 elements or greater and a value is fetched out-of-bounds.
    • setProgramUniformMatrix4x2

      public void setProgramUniformMatrix4x2(int locationId, float[][] matrix)
      Sets a uniform matrix (mat4x2) value on the currently-bound shader.
      Parameters:
      locationId - the uniform location.
      matrix - the multidimensional array of values, each array as one row of values.
      Throws:
      ArrayIndexOutOfBoundsException - if matrix is not 4x2 or greater and a value is fetched out-of-bounds.
    • setProgramUniformMatrix4x3

      public void setProgramUniformMatrix4x3(int locationId, float[] matrix)
      Sets a uniform matrix (mat4x3) value on the currently-bound shader.
      Parameters:
      locationId - the uniform location.
      matrix - the column-major array of values.
      Throws:
      ArrayIndexOutOfBoundsException - if matrix is not 12 elements or greater and a value is fetched out-of-bounds.
    • setProgramUniformMatrix4x3

      public void setProgramUniformMatrix4x3(int locationId, float[][] matrix)
      Sets a uniform matrix (mat4x3) value on the currently-bound shader.
      Parameters:
      locationId - the uniform location.
      matrix - the multidimensional array of values, each array as one row of values.
      Throws:
      ArrayIndexOutOfBoundsException - if matrix is not 4x3 or greater and a value is fetched out-of-bounds.