Class OGL33Graphics

All Implemented Interfaces:
OGLVersioned
Direct Known Subclasses:
OGL40Graphics

public class OGL33Graphics extends OGL32Graphics
OpenGL 3.3 Graphics Implementation.
Author:
Matthew Tropiano
  • Constructor Details

  • Method Details

    • getVersion

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

      protected void endFrame()
      Description copied from class: OGLGraphics
      Called on frame end - mostly does cleanup of objects that were abandoned in OpenGL.
      Overrides:
      endFrame in class OGL32Graphics
    • setQueryCounter

      public void setQueryCounter(OGLQuery query)
      Sets the GL timestamp on this query. Can only be used within queries where the target is QueryTarget.TIME_ELAPSED.
      Parameters:
      query - the query to use.
    • getQueryResult

      public long getQueryResult(OGLQuery query)
      Description copied from class: OGL15Graphics
      Gets the result of the query as a long integer. If OGL15Graphics.isQueryReady(OGLQuery) is not checked beforehand, this will hold the thread until the query is finished. Depending on your OpenGL version, a 64-bit precision value may not be available.
      Overrides:
      getQueryResult in class OGL15Graphics
      Parameters:
      query - the query to get the results for.
      Returns:
      the long value of the result.
    • createSampler

      public OGLSampler createSampler()
      Creates a new sampler object.
      Returns:
      the new sampler object.
    • destroySampler

      public void destroySampler(OGLSampler sampler)
      Destroys a sampler object.
      Parameters:
      sampler - the sampler to destroy.
    • setSampler

      public void setSampler(OGLSampler sampler, int textureUnit)
      Sets the sampler to use for a given texture unit.
      Parameters:
      sampler - the sampler to bind.
      textureUnit - the texture unit to bind it to.
    • unsetSampler

      public void unsetSampler(int textureUnit)
      Removes the current sampler from a given texture unit.
      Parameters:
      textureUnit - the texture unit to unbind from.
    • setSamplerWrapS

      public void setSamplerWrapS(OGLSampler sampler, TextureWrapType wrapType)
      Sets the S-coordinate wrapping for a sampler.
      Parameters:
      sampler - the sampler to set the parameter on.
      wrapType - the new wrapping type.
    • setSamplerWrapT

      public void setSamplerWrapT(OGLSampler sampler, TextureWrapType wrapType)
      Sets the T-coordinate wrapping for a sampler.
      Parameters:
      sampler - the sampler to set the parameter on.
      wrapType - the new wrapping type.
    • setSamplerWrapR

      public void setSamplerWrapR(OGLSampler sampler, TextureWrapType wrapType)
      Sets the R-coordinate wrapping for a sampler.
      Parameters:
      sampler - the sampler to set the parameter on.
      wrapType - the new wrapping type.
    • setSamplerFiltering

      public void setSamplerFiltering(OGLSampler sampler, TextureMinFilter minFilter, TextureMagFilter magFilter)
      Sets the texture filtering types for a sampler.
      Parameters:
      sampler - the sampler to set the parameters on.
      minFilter - the minification filter to use.
      magFilter - the magnification filter to use.
    • setSamplerLODBias

      public void setSamplerLODBias(OGLSampler sampler, float minLOD, float maxLOD)
      Sets the level-of-detail bias on this sampler.
      Parameters:
      sampler - the sampler to set the parameters on.
      minLOD - the minimum LOD bias. This value limits the selection of highest resolution mipmap (lowest mipmap level).
      maxLOD - the maximum LOD bias. This value limits the selection of lowest resolution mipmap (highest mipmap level).
    • setSamplerTextureBorderColor

      public void setSamplerTextureBorderColor(OGLSampler sampler, float red, float green, float blue, float alpha)
      Sets the texture border color on a sampler object.
      Parameters:
      sampler - the sampler to set the parameter on.
      red - the red component value (0 to 1).
      green - the green component value (0 to 1).
      blue - the blue component value (0 to 1).
      alpha - the alpha component value (0 to 1).
    • setSamplerTextureCompareMode

      public void setSamplerTextureCompareMode(OGLSampler sampler, boolean enabled)
      Sets the texture compare mode on this sampler. This is for a texture that is a depth-component texture.
      Parameters:
      sampler - the sampler to set the parameter on.
      enabled - if true, enable depth comparison on this sampler.
    • setSamplerTextureCompareFunction

      public void setSamplerTextureCompareFunction(OGLSampler sampler, LogicFunc func)
      Sets the texture compare function on this sampler. This is for a texture that is a depth-component texture.
      Parameters:
      sampler - the sampler to set the parameter on.
      func - if true, enable depth comparison on this sampler.
      See Also: