public final class Context extends SFMLNativeObject
Modifier and Type | Method and Description |
---|---|
static Context |
getContext()
Creates and activates a valid OpenGL context on the current thread.
|
protected long |
nativeCreate()
Deprecated.
|
protected void |
nativeDelete()
Deprecated.
|
protected void |
nativeSetExPtr()
Deprecated.
|
void |
setActive(boolean active)
Explictly activates or deactivates the OpenGL context.
|
finalize
public static Context getContext()
@Deprecated protected long nativeCreate()
SFMLNativeObject
nativeCreate
in class SFMLNativeObject
@Deprecated protected void nativeSetExPtr()
SFMLNativeObject
nativeSetExPtr
in class SFMLNativeObject
@Deprecated protected void nativeDelete()
SFMLNativeObject
nativeDelete
in class SFMLNativeObject
public void setActive(boolean active) throws ContextActivationException
active
- true
to activate, false
to deactivate.ContextActivationException
- if activating or deactivating the context failed.