Configuration¶
When a window is created, it can be given a specific GL configuration in
order to specify specific GL settings. If no configuration, the default
configuration as provided by the get_default
method is used.
Usage example:
from glumpy import app config = app.configuration.Configuration() config.major_version = 3 config.minor_version = 2 config.profile = "core" window = app.Window(config=config)
Configuration¶
-
class
glumpy.app.configuration.
Configuration
¶ Bases:
object
GL Configuration settings
-
alpha_size
¶ Minimum number of bits for the alpha channel of the color buffer.
-
api
¶ OpenGL API
-
blue_size
¶ Minimum number of bits for the green channel of the color buffer.
-
depth_size
¶ Minimum number of bits in the depth buffer.
-
double_buffer
¶ Whether to use single or double buffered rendering.
-
green_size
¶ Minimum number of bits for the blue channel of the color buffer.
-
major_version
¶ OpenGL context major version
-
minor_version
¶ OpenGL context minor version
-
profile
¶ OpenGL profile
-
red_size
¶ Minimum number of bits for the red channel of the color buffer.
-
samples
¶ Number of samples used around the current pixel for multisample anti-aliasing
-
srgb
¶ Whether to user sRGB capable visuals.
-
stencil_size
¶ Minimum number of bits in the stencil buffer.
-
stereo
¶ Whether the output is stereo.
-