public final class JCGLImplementationFake extends Object implements JCGLImplementationFakeType
JCGLImplementationFakeType
interface.Modifier and Type | Method and Description |
---|---|
static JCGLImplementationFakeType |
getInstance() |
JCGLContextType |
newContext(String name,
FakeShaderListenerType in_listener)
Construct a new context.
|
JCGLContextType |
newContextSharedWith(JCGLContextType c,
String name,
FakeShaderListenerType in_listener)
Construct a new context, shared with an existing context.
|
public static JCGLImplementationFakeType getInstance()
public JCGLContextType newContext(String name, FakeShaderListenerType in_listener) throws JCGLException, JCGLExceptionUnsupported, JCGLExceptionNonCompliant
JCGLImplementationFakeType
newContext
in interface JCGLImplementationFakeType
name
- The name of the new contextin_listener
- A shader listener that will be notified of shader
compilationsJCGLException
- On errorsJCGLExceptionUnsupported
- If the context is of a version that is
not supportedJCGLExceptionNonCompliant
- If the implementation constraints yield
an implementation that is not OpenGL
compliantpublic JCGLContextType newContextSharedWith(JCGLContextType c, String name, FakeShaderListenerType in_listener) throws JCGLException, JCGLExceptionUnsupported, JCGLExceptionNonCompliant
JCGLImplementationFakeType
newContextSharedWith
in interface JCGLImplementationFakeType
c
- The existing contextname
- The name of the new contextin_listener
- A shader listener that will be notified of shader
compilationsJCGLException
- On errorsJCGLExceptionUnsupported
- If the context is of a version that is
not supportedJCGLExceptionNonCompliant
- If the implementation constraints yield
an implementation that is not OpenGL
compliantCopyright © 2017 <code@io7m.com> http://io7m.com