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
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionintThe number of bits for the alpha accumulator color channel.intThe number of bits for the blue accumulator color channel.intThe number of bits for the green accumulator color channel.intThe number of bits for the red accumulator color channel.intThe number of bits for the alpha color channel.The client API to use.intThe number of bits for the blue color channel.intThe number of color samples per pixel.Specify the behavior on context switch.booleanWhenrobustnessistrueandloseContextOnResetistruethen this specifies whether a graphics reset only affects the current application and no other application in the system.booleanWhether a debug context should be requested.intThe number of bits for the depth channel.booleanWhether to use double-buffering.booleanWhether a forward-compatible context should be created.intThe number of bits for the green color channel.booleanWhenrobustnessistruethen this specifies whether a GL_LOSE_CONTEXT_ON_RESET_ARB reset notification is sent, as described by GL_ARB_robustness.intThe major GL context version to use.intThe minor GL context version to use.booleanWhether to use a floating point pixel format.The profile to use.intThe number of bits for the red color channel.booleanWhether robust buffer access should be used.intThis is ignored.intThe number of (coverage) samples for multisampling.TheAWTGLCanvaswhose context objects should be shared with the context created usingthisGLData.booleanWhether to use sRGB color space.intThe number of bits for the stencil channel.booleanWhether to use different LEFT and RIGHT backbuffers for stereo rendering.intThe swap barrier index.intThe swap group index.Set the swap interval. -
Constructor Summary
Constructors -
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 ifsamplesis 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. IfmajorVersionis 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 tonullfor "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 tonullfor "not specified". -
colorSamplesNV
public int colorSamplesNVThe number of color samples per pixel. This is only valid whensamplesis 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 loseContextOnResetWhenrobustnessistruethen this specifies whether a GL_LOSE_CONTEXT_ON_RESET_ARB reset notification is sent, as described by GL_ARB_robustness. -
contextResetIsolation
public boolean contextResetIsolationWhenrobustnessistrueandloseContextOnResetistruethen this specifies whether a graphics reset only affects the current application and no other application in the system.
-
-
Constructor Details
-
GLData
public GLData()
-