public final class ContextSettings extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
int |
antialiasingLevel
The level of anti-aliasing.
|
int |
depthBits
The amount of depth buffer bits.
|
int |
majorVersion
The desired major OpenGL version number.
|
int |
minorVersion
The desired minor OpenGL version number.
|
int |
stencilBits
The amount of stencil buffer bits.
|
Constructor and Description |
---|
ContextSettings()
Constructs new context settings with default values (OpenGL 2.0, no depth or stencil bits,
no anti-aliasing).
|
ContextSettings(int antialiasingLevel)
Constructs new context settings with the specified level of anti-aliasing and OpenGL 2.0,
no depth or stencil bits.
|
ContextSettings(int majorVersion,
int minorVersion)
Constructs new context settings with the specified OpenGL version, no depth or stencil
bits and no anti-aliasing.
|
ContextSettings(int antialiasingLevel,
int majorVersion,
int minorVersion)
Constructs new context settings with the specified OpenGL version and anti-aliasing level and
no depth or stencil bits.
|
ContextSettings(int depthBits,
int stencilBits,
int antialiasingLevel,
int majorVersion,
int minorVersion)
Constructs new context settings.
|
public final int depthBits
public final int stencilBits
public final int antialiasingLevel
public final int majorVersion
public final int minorVersion
public ContextSettings()
public ContextSettings(int antialiasingLevel)
antialiasingLevel
- the level of anti-aliasing.public ContextSettings(int majorVersion, int minorVersion)
majorVersion
- the desired major OpenGL version number.minorVersion
- the desired minor OpenGL version number.public ContextSettings(int antialiasingLevel, int majorVersion, int minorVersion)
antialiasingLevel
- the level of anti-aliasing.majorVersion
- the desired major OpenGL version number.minorVersion
- the desired minor OpenGL version number.public ContextSettings(int depthBits, int stencilBits, int antialiasingLevel, int majorVersion, int minorVersion)
depthBits
- the amount of depth buffer bits.stencilBits
- the amount of stencil buffer bits.antialiasingLevel
- the level of anti-aliasing.majorVersion
- the desired major OpenGL version number.minorVersion
- the desired minor OpenGL version number.