Class OGLSystemFactory

java.lang.Object
com.blackrook.gloop.opengl.OGLSystemFactory

public final class OGLSystemFactory extends Object
A factory class for creating OGLSystems.
  • Field Details

    • NO_ERROR_CHECKING

      public static final OGLGraphics.Options NO_ERROR_CHECKING
      Options that disable error checking.
    • DEFAULT_OPTIONS

      public static final OGLGraphics.Options DEFAULT_OPTIONS
      Default options.
  • Constructor Details

    • OGLSystemFactory

      public OGLSystemFactory()
  • Method Details

    • getOpenGL11

      public static OGLSystem<OGL11Graphics> getOpenGL11()
      Creates an OpenGL 1.1 implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL12

      public static OGLSystem<OGL12Graphics> getOpenGL12()
      Creates an OpenGL 1.2 implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL13

      public static OGLSystem<OGL13Graphics> getOpenGL13()
      Creates an OpenGL 1.3 implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL14

      public static OGLSystem<OGL14Graphics> getOpenGL14()
      Creates an OpenGL 1.4 implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL15

      public static OGLSystem<OGL15Graphics> getOpenGL15()
      Creates an OpenGL 1.5 implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL20

      public static OGLSystem<OGL20Graphics> getOpenGL20()
      Creates an OpenGL 2.0 implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL21

      public static OGLSystem<OGL21Graphics> getOpenGL21()
      Creates an OpenGL 2.1 implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL30

      public static OGLSystem<OGL30Graphics> getOpenGL30()
      Creates an OpenGL 3.0 implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL30Core

      public static OGLSystem<OGL30Graphics> getOpenGL30Core()
      Creates an OpenGL 3.0 Core implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL31

      public static OGLSystem<OGL31Graphics> getOpenGL31()
      Creates an OpenGL 3.1 implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL31Core

      public static OGLSystem<OGL31Graphics> getOpenGL31Core()
      Creates an OpenGL 3.1 Core implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL32

      public static OGLSystem<OGL32Graphics> getOpenGL32()
      Creates an OpenGL 3.2 implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL32Core

      public static OGLSystem<OGL32Graphics> getOpenGL32Core()
      Creates an OpenGL 3.2 Core implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL33

      public static OGLSystem<OGL33Graphics> getOpenGL33()
      Creates an OpenGL 3.3 implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL33Core

      public static OGLSystem<OGL33Graphics> getOpenGL33Core()
      Creates an OpenGL 3.3 Core implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL40Core

      public static OGLSystem<OGL40Graphics> getOpenGL40Core()
      Creates an OpenGL 4.0 Core implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL41Core

      public static OGLSystem<OGL41Graphics> getOpenGL41Core()
      Creates an OpenGL 4.1 Core implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL42Core

      public static OGLSystem<OGL42Graphics> getOpenGL42Core()
      Creates an OpenGL 4.2 Core implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL43Core

      public static OGLSystem<OGL43Graphics> getOpenGL43Core()
      Creates an OpenGL 4.3 Core implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL44Core

      public static OGLSystem<OGL44Graphics> getOpenGL44Core()
      Creates an OpenGL 4.4 Core implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL45Core

      public static OGLSystem<OGL45Graphics> getOpenGL45Core()
      Creates an OpenGL 4.5 Core implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL46Core

      public static OGLSystem<OGL46Graphics> getOpenGL46Core()
      Creates an OpenGL 4.6 Core implementation system.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL11

      public static OGLSystem<OGL11Graphics> getOpenGL11(OGLGraphics.Options options)
      Creates an OpenGL 1.1 implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL12

      public static OGLSystem<OGL12Graphics> getOpenGL12(OGLGraphics.Options options)
      Creates an OpenGL 1.2 implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL13

      public static OGLSystem<OGL13Graphics> getOpenGL13(OGLGraphics.Options options)
      Creates an OpenGL 1.3 implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL14

      public static OGLSystem<OGL14Graphics> getOpenGL14(OGLGraphics.Options options)
      Creates an OpenGL 1.4 implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL15

      public static OGLSystem<OGL15Graphics> getOpenGL15(OGLGraphics.Options options)
      Creates an OpenGL 1.5 implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL20

      public static OGLSystem<OGL20Graphics> getOpenGL20(OGLGraphics.Options options)
      Creates an OpenGL 2.0 implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL21

      public static OGLSystem<OGL21Graphics> getOpenGL21(OGLGraphics.Options options)
      Creates an OpenGL 2.1 implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL30

      public static OGLSystem<OGL30Graphics> getOpenGL30(OGLGraphics.Options options)
      Creates an OpenGL 3.0 implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL30Core

      public static OGLSystem<OGL30Graphics> getOpenGL30Core(OGLGraphics.Options options)
      Creates an OpenGL 3.0 Core implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL31

      public static OGLSystem<OGL31Graphics> getOpenGL31(OGLGraphics.Options options)
      Creates an OpenGL 3.1 implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL31Core

      public static OGLSystem<OGL31Graphics> getOpenGL31Core(OGLGraphics.Options options)
      Creates an OpenGL 3.1 Core implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL32

      public static OGLSystem<OGL32Graphics> getOpenGL32(OGLGraphics.Options options)
      Creates an OpenGL 3.2 implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL32Core

      public static OGLSystem<OGL32Graphics> getOpenGL32Core(OGLGraphics.Options options)
      Creates an OpenGL 3.2 Core implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL33

      public static OGLSystem<OGL33Graphics> getOpenGL33(OGLGraphics.Options options)
      Creates an OpenGL 3.3 implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL33Core

      public static OGLSystem<OGL33Graphics> getOpenGL33Core(OGLGraphics.Options options)
      Creates an OpenGL 3.3 Core implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL40Core

      public static OGLSystem<OGL40Graphics> getOpenGL40Core(OGLGraphics.Options options)
      Creates an OpenGL 4.0 Core implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL41Core

      public static OGLSystem<OGL41Graphics> getOpenGL41Core(OGLGraphics.Options options)
      Creates an OpenGL 4.1 Core implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL42Core

      public static OGLSystem<OGL42Graphics> getOpenGL42Core(OGLGraphics.Options options)
      Creates an OpenGL 4.2 Core implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL43Core

      public static OGLSystem<OGL43Graphics> getOpenGL43Core(OGLGraphics.Options options)
      Creates an OpenGL 4.3 Core implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL44Core

      public static OGLSystem<OGL44Graphics> getOpenGL44Core(OGLGraphics.Options options)
      Creates an OpenGL 4.4 Core implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL45Core

      public static OGLSystem<OGL45Graphics> getOpenGL45Core(OGLGraphics.Options options)
      Creates an OpenGL 4.5 Core implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.
    • getOpenGL46Core

      public static OGLSystem<OGL46Graphics> getOpenGL46Core(OGLGraphics.Options options)
      Creates an OpenGL 4.6 Core implementation system.
      Parameters:
      options - the system options reference to pass to the graphics instance.
      Returns:
      an OGLSystem using the desired graphics implementation.
      Throws:
      GraphicsException - if the given implementation could not be created.