Package icyllis.modernui.core.awt
Class GLData
java.lang.Object
icyllis.modernui.core.awt.GLData
Contains all information to create an OpenGL context on an
AWTGLCanvas
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionint
The number of bits for the alpha accumulator color channel.int
The number of bits for the blue accumulator color channel.int
The number of bits for the green accumulator color channel.int
The number of bits for the red accumulator color channel.int
The number of bits for the alpha color channel.The client API to use.int
The number of bits for the blue color channel.int
The number of color samples per pixel.Specify the behavior on context switch.boolean
Whenrobustness
istrue
andloseContextOnReset
istrue
then this specifies whether a graphics reset only affects the current application and no other application in the system.boolean
Whether a debug context should be requested.int
The number of bits for the depth channel.boolean
Whether to use double-buffering.boolean
Whether a forward-compatible context should be created.int
The number of bits for the green color channel.boolean
Whenrobustness
istrue
then this specifies whether a GL_LOSE_CONTEXT_ON_RESET_ARB reset notification is sent, as described by GL_ARB_robustness.int
The major GL context version to use.int
The minor GL context version to use.boolean
Whether to use a floating point pixel format.The profile to use.int
The number of bits for the red color channel.boolean
Whether robust buffer access should be used.int
This is ignored.int
The number of (coverage) samples for multisampling.TheAWTGLCanvas
whose context objects should be shared with the context created usingthis
GLData.boolean
Whether to use sRGB color space.int
The number of bits for the stencil channel.boolean
Whether to use different LEFT and RIGHT backbuffers for stereo rendering.int
The swap barrier index.int
The swap group index.Set the swap interval. -
Constructor Summary
-
Method Summary
-
Field Details
-
doubleBuffer
public boolean doubleBufferWhether to use double-buffering. It defaults totrue
. -
stereo
public boolean stereoWhether to use different LEFT and RIGHT backbuffers for stereo rendering. It defaults tofalse
. -
redSize
public int redSizeThe number of bits for the red color channel. It defaults to 8. -
greenSize
public int greenSizeThe number of bits for the green color channel. It defaults to 8. -
blueSize
public int blueSizeThe number of bits for the blue color channel. It defaults to 8. -
alphaSize
public int alphaSizeThe number of bits for the alpha color channel. It defaults to 8. -
depthSize
public int depthSizeThe number of bits for the depth channel. It defaults to 24. -
stencilSize
public int stencilSizeThe number of bits for the stencil channel. It defaults to 0. -
accumRedSize
public int accumRedSizeThe number of bits for the red accumulator color channel. It defaults to 0. -
accumGreenSize
public int accumGreenSizeThe number of bits for the green accumulator color channel. It defaults to 0. -
accumBlueSize
public int accumBlueSizeThe number of bits for the blue accumulator color channel. It defaults to 0. -
accumAlphaSize
public int accumAlphaSizeThe number of bits for the alpha accumulator color channel. It defaults to 0. -
sampleBuffers
public int sampleBuffersThis is ignored. It will implicitly be 1 ifsamples
is set to a value greater than or equal to 1. -
samples
public int samplesThe number of (coverage) samples for multisampling. Multisampling will only be requested for a value greater than or equal to 1. -
majorVersion
public int majorVersionThe major GL context version to use. It defaults to 0 for "not specified". -
minorVersion
public int minorVersionThe minor GL context version to use. IfmajorVersion
is 0 this field is unused. -
forwardCompatible
public boolean forwardCompatibleWhether a forward-compatible context should be created. This has only an effect when (majorVersion
.minorVersion
) is at least 3.2. -
profile
The profile to use. This is only valid when (majorVersion
.minorVersion
) is at least 3.0. -
api
The client API to use. It defaults toOpenGL for Desktop
. -
debug
public boolean debugWhether a debug context should be requested. -
swapInterval
Set the swap interval. It defaults tonull
for "not specified". -
sRGB
public boolean sRGBWhether to use sRGB color space. -
pixelFormatFloat
public boolean pixelFormatFloatWhether to use a floating point pixel format. -
contextReleaseBehavior
Specify the behavior on context switch. Defaults tonull
for "not specified". -
colorSamplesNV
public int colorSamplesNVThe number of color samples per pixel. This is only valid whensamples
is at least 1. -
swapGroupNV
public int swapGroupNVThe swap group index. Use this to synchronize buffer swaps across multiple windows on the same system. -
swapBarrierNV
public int swapBarrierNVThe swap barrier index. Use this to synchronize buffer swaps across multiple systems. This requires a Nvidia G-Sync card. -
robustness
public boolean robustnessWhether robust buffer access should be used. -
loseContextOnReset
public boolean loseContextOnResetWhenrobustness
istrue
then this specifies whether a GL_LOSE_CONTEXT_ON_RESET_ARB reset notification is sent, as described by GL_ARB_robustness. -
contextResetIsolation
public boolean contextResetIsolationWhenrobustness
istrue
andloseContextOnReset
istrue
then this specifies whether a graphics reset only affects the current application and no other application in the system.
-
-
Constructor Details
-
GLData
public GLData()
-