public final class ContextAttribs
extends java.lang.Object
new ContextAttribs(3, 2).withProfileCore()
,
anything else will be ignored.Constructor and Description |
---|
ContextAttribs() |
ContextAttribs(int majorVersion,
int minorVersion) |
Modifier and Type | Method and Description |
---|---|
int |
getLayerPlane() |
int |
getMajorVersion() |
int |
getMinorVersion() |
boolean |
isDebug() |
boolean |
isForwardCompatible() |
boolean |
isProfileCompatibility() |
boolean |
isProfileCore() |
boolean |
isProfileES() |
java.lang.String |
toString() |
ContextAttribs |
withContextResetIsolation(boolean contextResetIsolation) |
ContextAttribs |
withDebug(boolean debug) |
ContextAttribs |
withForwardCompatible(boolean forwardCompatible) |
ContextAttribs |
withLayer(int layerPlane) |
ContextAttribs |
withLoseContextOnReset(boolean loseContextOnReset)
Returns a ContextAttribs instance with CONTEXT_RESET_NOTIFICATION_STRATEGY set
to LOSE_CONTEXT_ON_RESET if the parameter is true or to NO_RESET_NOTIFICATION
if the parameter is false.
|
ContextAttribs |
withProfileCompatibility(boolean profileCompatibility) |
ContextAttribs |
withProfileCore(boolean profileCore) |
ContextAttribs |
withProfileES(boolean profileES) |
public ContextAttribs()
public ContextAttribs(int majorVersion, int minorVersion)
public int getMajorVersion()
public int getMinorVersion()
public int getLayerPlane()
public boolean isDebug()
public boolean isForwardCompatible()
public boolean isProfileCore()
public boolean isProfileCompatibility()
public boolean isProfileES()
public ContextAttribs withLayer(int layerPlane)
public ContextAttribs withDebug(boolean debug)
public ContextAttribs withForwardCompatible(boolean forwardCompatible)
public ContextAttribs withProfileCore(boolean profileCore)
public ContextAttribs withProfileCompatibility(boolean profileCompatibility)
public ContextAttribs withProfileES(boolean profileES)
public ContextAttribs withLoseContextOnReset(boolean loseContextOnReset)
loseContextOnReset
- public ContextAttribs withContextResetIsolation(boolean contextResetIsolation)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2002-2009 lwjgl.org. All Rights Reserved.