Class OGL32Graphics

All Implemented Interfaces:
OGLVersioned
Direct Known Subclasses:
OGL33Graphics

public class OGL32Graphics extends OGL31Graphics
OpenGL 3.2 Graphics Implementation.
Author:
Matthew Tropiano
  • Constructor Details

  • Method Details

    • getVersion

      public OGLVersion getVersion()
      Specified by:
      getVersion in interface OGLVersioned
      Overrides:
      getVersion in class OGL31Graphics
      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 OGL31Graphics
      Returns:
      the info object.
    • 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 OGL30Graphics
    • getMultisample

      public void getMultisample(int sampleIndex, float[] outArray)
      Retrieves the location of a sample as two pixel coordinates, referring to the X and Y locations of the GL pixel space of the sample.
      Parameters:
      sampleIndex - the index of the sample.
      outArray - the output array for the result. Must be length 2 or greater.
    • createFenceSync

      public OGLSync createFenceSync()
      Creates a new fence synching object for OPENGL Sync operations.
      Returns:
      a new OGLSync object.
    • destroySync

      public void destroySync(OGLSync sync)
      Destroys a sync object.
      Parameters:
      sync - the object to destroy.
    • awaitSync

      public void awaitSync(OGLSync sync)
      Awaits signal from the GL server that a sync object is signaled.
      Parameters:
      sync - the sync object.
    • awaitClentFlushedCommandsSync

      public SyncResultType awaitClentFlushedCommandsSync(OGLSync sync, long timeoutNanos)
      Awaits signal from OpenGL that OpenGL has flushed all of its commands.
      Parameters:
      sync - the sync object.
      timeoutNanos - the time in nanoseconds to wait, maximum.
      Returns:
      the result type from the wait.