public final class JCGLImplementationJOGL extends Object implements JCGLImplementationJOGLType
JCGLImplementationJOGLType
interface.Modifier and Type | Method and Description |
---|---|
static JCGLImplementationJOGLType |
getInstance() |
JCGLContextType |
newContextFrom(com.jogamp.opengl.GLContext c,
String name)
Construct a new context from the given
GLContext . |
JCGLContextType |
newContextFromWithSupplier(com.jogamp.opengl.GLContext c,
Function<com.jogamp.opengl.GLContext,com.jogamp.opengl.GL3> gl_supplier,
String name)
Construct a new context from the given
GLContext . |
public static JCGLImplementationJOGLType getInstance()
public JCGLContextType newContextFrom(com.jogamp.opengl.GLContext c, String name) throws JCGLException, JCGLExceptionUnsupported, JCGLExceptionNonCompliant
JCGLImplementationJOGLType
GLContext
.newContextFrom
in interface JCGLImplementationJOGLType
c
- An existing contextname
- The name assigned to the context, for debugging purposesJCGLException
- On errorsJCGLExceptionUnsupported
- If the context is of a version that is
not supportedJCGLExceptionNonCompliant
- If the context violates the OpenGL
specificationpublic JCGLContextType newContextFromWithSupplier(com.jogamp.opengl.GLContext c, Function<com.jogamp.opengl.GLContext,com.jogamp.opengl.GL3> gl_supplier, String name) throws JCGLException, JCGLExceptionUnsupported, JCGLExceptionNonCompliant
JCGLImplementationJOGLType
GLContext
. The function
gl_supplier
will be evaluated at least once to supply a GL3
instance to the implementation. This allows for the substitution of
alternate GL3
instances for unit testing and debugging.newContextFromWithSupplier
in interface JCGLImplementationJOGLType
c
- An existing contextgl_supplier
- A function that yields a GL3
implementation,
given a GLContext
name
- The name assigned to the context, for debugging
purposesJCGLException
- On errorsJCGLExceptionUnsupported
- If the context is of a version that is
not supportedJCGLExceptionNonCompliant
- If the context violates the OpenGL
specificationCopyright © 2017 <code@io7m.com> http://io7m.com