public interface JCGLImplementationJOGLType extends JCGLImplementationType
| Modifier and Type | Method and Description |
|---|---|
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. |
JCGLContextType newContextFrom(com.jogamp.opengl.GLContext c, String name) throws JCGLException, JCGLExceptionUnsupported, JCGLExceptionNonCompliant
GLContext.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
specificationJCGLContextType newContextFromWithSupplier(com.jogamp.opengl.GLContext c, Function<com.jogamp.opengl.GLContext,com.jogamp.opengl.GL3> gl_supplier, String name) throws JCGLException, JCGLExceptionUnsupported, JCGLExceptionNonCompliant
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.c - An existing contextgl_supplier - A function that yields a GL3 implementation,
given a GLContextname - 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