public final class FakeContext extends Object implements JCGLContextType
| Constructor and Description |
|---|
FakeContext(JCGLImplementationFake i,
String in_name,
FakeShaderListenerType in_listener)
Construct a context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroy()
Destroy this context.
|
JCGLInterfaceGL33Type |
contextGetGL33() |
JCGLImplementationType |
contextGetImplementation() |
String |
contextGetName() |
List<JCGLContextUsableType> |
contextGetShares() |
boolean |
contextIsCurrent() |
boolean |
contextIsSharedWith(JCGLContextUsableType c) |
void |
contextMakeCurrent()
Make this context current on the current thread.
|
void |
contextReleaseCurrent()
Release this context on the current thread.
|
boolean |
isDeleted() |
String |
toString() |
public FakeContext(JCGLImplementationFake i, String in_name, FakeShaderListenerType in_listener) throws JCGLExceptionNonCompliant
i - The implementationin_name - The namein_listener - The shader listenerJCGLExceptionNonCompliant - On non-compliant OpenGL implementationspublic String contextGetName()
contextGetName in interface JCGLContextUsableTypepublic List<JCGLContextUsableType> contextGetShares()
contextGetShares in interface JCGLContextUsableTypepublic boolean contextIsSharedWith(JCGLContextUsableType c)
contextIsSharedWith in interface JCGLContextUsableTypec - The contexttrue iff c is shared with this contextpublic boolean contextIsCurrent()
contextIsCurrent in interface JCGLContextUsableTypetrue iff the current context is currentJCGLContextUsableType.contextMakeCurrent()public void contextMakeCurrent()
JCGLContextUsableTypecontextMakeCurrent in interface JCGLContextUsableTypepublic void contextReleaseCurrent()
JCGLContextUsableTypecontextReleaseCurrent in interface JCGLContextUsableTypepublic JCGLInterfaceGL33Type contextGetGL33()
contextGetGL33 in interface JCGLContextUsableTypepublic JCGLImplementationType contextGetImplementation()
contextGetImplementation in interface JCGLContextUsableTypepublic void contextDestroy()
throws JCGLExceptionDeleted
JCGLContextTypecontextDestroy in interface JCGLContextTypeJCGLExceptionDeleted - If the context is already destroyedpublic boolean isDeleted()
isDeleted in interface JCGLResourceUsableTypetrue iff the given resource has been deleted.Copyright © 2017 <code@io7m.com> http://io7m.com