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 JCGLContextUsableType
public List<JCGLContextUsableType> contextGetShares()
contextGetShares
in interface JCGLContextUsableType
public boolean contextIsSharedWith(JCGLContextUsableType c)
contextIsSharedWith
in interface JCGLContextUsableType
c
- The contexttrue
iff c
is shared with this contextpublic boolean contextIsCurrent()
contextIsCurrent
in interface JCGLContextUsableType
true
iff the current context is currentJCGLContextUsableType.contextMakeCurrent()
public void contextMakeCurrent()
JCGLContextUsableType
contextMakeCurrent
in interface JCGLContextUsableType
public void contextReleaseCurrent()
JCGLContextUsableType
contextReleaseCurrent
in interface JCGLContextUsableType
public JCGLInterfaceGL33Type contextGetGL33()
contextGetGL33
in interface JCGLContextUsableType
public JCGLImplementationType contextGetImplementation()
contextGetImplementation
in interface JCGLContextUsableType
public void contextDestroy() throws JCGLExceptionDeleted
JCGLContextType
contextDestroy
in interface JCGLContextType
JCGLExceptionDeleted
- If the context is already destroyedpublic boolean isDeleted()
isDeleted
in interface JCGLResourceUsableType
true
iff the given resource has been deleted.Copyright © 2017 <code@io7m.com> http://io7m.com