Class OGL14Graphics

All Implemented Interfaces:
OGLVersioned
Direct Known Subclasses:
OGL15Graphics

public class OGL14Graphics extends OGL13Graphics
OpenGL 1.4 Graphics Implementation.
Author:
Matthew Tropiano
  • Constructor Details

  • Method Details

    • getVersion

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

      public void setPointAttenuationMaximum(float size)
      Sets the maximum size for the diameter of Point geometry when it is attenuated by point distance from the "camera".
      Parameters:
      size - the minimum size.
    • setPointAttenuationMinimum

      public void setPointAttenuationMinimum(float size)
      Sets the minimum size for the diameter of Point geometry when it is attenuated by point distance from the "camera".
      Parameters:
      size - the minimum size.
    • setPointAttenuationFormula

      public void setPointAttenuationFormula(float constant, float linear, float quadratic)
      Sets the attenuation formula to use when changing the sizes of points based on their location in space.
      Parameters:
      constant - the formula constant coefficient.
      linear - the formula linear coefficient.
      quadratic - the formula quadratic coefficient.
    • createTextureBuilder

      public TextureBuilder createTextureBuilder()
      Creates a texture builder.

      This texture builder aids in building texture objects, and its TextureBuilder.create() method will bind a new texture to its required target, send the data, set the filtering and build mipmaps, unbind the target, and return the new object.

      Overrides:
      createTextureBuilder in class OGL13Graphics
      Returns:
      a new texture builder.
    • setTextureLODBias

      public void setTextureLODBias(float bias)
      Sets the Level Of Detail bias for automatic texture mipmapping.
      Parameters:
      bias - the bias value.
    • setTextureFiltering

      public void setTextureFiltering(TextureTargetType target, TextureMinFilter minFilter, TextureMagFilter magFilter, boolean genMipmaps)
      Sets the filtering for the current texture bound to the specified target.
      Parameters:
      target - the texture target.
      minFilter - the minification filter.
      magFilter - the magnification filter.
      genMipmaps - if this generates mipmaps automatically.
    • setTextureFiltering

      public void setTextureFiltering(TextureTargetType target, TextureMinFilter minFilter, TextureMagFilter magFilter, float anisotropy, boolean genMipmaps)
      Sets the filtering for the current texture bound to the specified target.
      Parameters:
      target - the texture target.
      minFilter - the minification filter.
      magFilter - the magnification filter.
      anisotropy - the anisotropic filtering (2.0 or greater to enable, 1.0 or less is "off").
      genMipmaps - if this generates mipmaps automatically.