# Path: src/pegl/attribs/context.py
# class ContextAttribs(Attribs):
#     '''The set of EGL attributes relevant to context objects.'''
#     CONFIG_ID = ConfigAttribs.CONFIG_ID
#     RENDER_BUFFER = 0x3086
#     CONTEXT_CLIENT_TYPE, CONTEXT_CLIENT_VERSION = 0x3097, 0x3098
#     details = {CONFIG_ID: Details('The unique identifier of the configuration '
#                                   'used to create this context', c_int, 0),
#                RENDER_BUFFER: Details('Which buffer type this context renders '
#                                       'into', RenderBufferTypes,
#                                       RenderBufferTypes.BACK),
#                CONTEXT_CLIENT_TYPE: Details('The client API for which this '
#                                             'context was created', ContextAPIs,
#                                             NONE),
#                CONTEXT_CLIENT_VERSION: Details('The client API version for '
#                                                'which this context was '
#                                                'created', c_int, 1)}


from collections import namedtuple
from ..attribs.context import ContextAttribs

'''
# Copyright © 2012-13 Tim Pederick.
#
# This file is part of Pegl.
#
# Pegl is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Pegl is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Pegl. If not, see <http://www.gnu.org/licenses/>.

# Standard library imports.

# Local imports.

# New context attributes.
ResetStrategies = namedtuple('ResetStrategies_tuple',
                             ('NO_RESET_NOTIFICATION',
                              'LOSE_CONTEXT_ON_RESET'),
                             )(0x31BE, 0x31BF)

ContextAttribs.extend('OPENGL_ROBUST_ACCESS', 0x30BF, bool, False)

# Path: src/pegl/attribs/context.py
# class ContextAttribs(Attribs):
#     '''The set of EGL attributes relevant to context objects.'''
#     CONFIG_ID = ConfigAttribs.CONFIG_ID
#     RENDER_BUFFER = 0x3086
#     CONTEXT_CLIENT_TYPE, CONTEXT_CLIENT_VERSION = 0x3097, 0x3098
#     details = {CONFIG_ID: Details('The unique identifier of the configuration '
#                                   'used to create this context', c_int, 0),
#                RENDER_BUFFER: Details('Which buffer type this context renders '
#                                       'into', RenderBufferTypes,
#                                       RenderBufferTypes.BACK),
#                CONTEXT_CLIENT_TYPE: Details('The client API for which this '
#                                             'context was created', ContextAPIs,
#                                             NONE),
#                CONTEXT_CLIENT_VERSION: Details('The client API version for '
#                                                'which this context was '
#                                                'created', c_int, 1)}


# Path: src/pegl/ext/ext_robustness.py
from collections import namedtuple
from ..attribs.context import ContextAttribs


'''
# Copyright © 2012-13 Tim Pederick.
#
# This file is part of Pegl.
#
# Pegl is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Pegl is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Pegl. If not, see <http://www.gnu.org/licenses/>.

# Standard library imports.

# Local imports.

# New context attributes.
ResetStrategies = namedtuple('ResetStrategies_tuple',
                             ('NO_RESET_NOTIFICATION',
                              'LOSE_CONTEXT_ON_RESET'),
                             )(0x31BE, 0x31BF)

ContextAttribs.extend('OPENGL_ROBUST_ACCESS', 0x30BF, bool, False)

ContextAttribs.extend('OPENGL_RESET_NOTIFICATION_STRATEGY', 0x3138,