# Path: src/pegl/ext/ext_platform.py
# class PlatformDisplay(Display):
#     '''Superclass for all platform-specific displays.
# 
#     Class attributes:
#         platform -- The numeric identifier for the native platform. All
#             subclasses must define this; it is None in this class, and
#             so this class cannot be instantiated.
# 
#     Instance attributes:
#         dhandle, client_apis, extensions, swap_interval, vendor,
#         version -- Inherited from Display.
#         attribs -- The attributes with which this display was created.
#             An instance of AttribList.
# 
#     '''
#     platform = None
# 
#     def __init__(self, native_id, attribs, delay_init=False):
#         '''Get a display for this platform.
# 
#         Keyword arguments:
#             native_id -- As the superclass constructor, but not optional.
#             attribs -- As the instance attribute.
#             delay_init -- As the superclass constructor.
# 
#         '''
#         # We're not trying to instantiate THIS class, are we?
#         if self.__class__.platform is None:
#             raise NotImplementedError("use a subclass of PlatformDisplay that "
#                                       "defines class attribute 'platform'")
# 
#         self.attribs = (attribs if isinstance(attribs, AttribList) else
#                         AttribList(DisplayAttribs, attribs))
#         dhandle = native_getdisplay(self.__class__.platform, native_id,
#                                     attribs)
# 
#         # Call the parent class constructor.
#         super().__init__(dhandle=dhandle, delay_init=delay_init)


from .ext_platform import PlatformDisplay
#!/usr/bin/env python3

'''Cross-vendor Wayland platform support extension for EGL.

This extension adds the Wayland display server as an explicitly
supportable native platform.

http://www.khronos.org/registry/egl/extensions/EXT/EGL_EXT_platform_wayland.txt

'''
# Copyright © 2014 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/>.

# Local imports.

# New PlatformDisplay subclass.

# Path: src/pegl/ext/ext_platform.py
# class PlatformDisplay(Display):
#     '''Superclass for all platform-specific displays.
# 
#     Class attributes:
#         platform -- The numeric identifier for the native platform. All
#             subclasses must define this; it is None in this class, and
#             so this class cannot be instantiated.
# 
#     Instance attributes:
#         dhandle, client_apis, extensions, swap_interval, vendor,
#         version -- Inherited from Display.
#         attribs -- The attributes with which this display was created.
#             An instance of AttribList.
# 
#     '''
#     platform = None
# 
#     def __init__(self, native_id, attribs, delay_init=False):
#         '''Get a display for this platform.
# 
#         Keyword arguments:
#             native_id -- As the superclass constructor, but not optional.
#             attribs -- As the instance attribute.
#             delay_init -- As the superclass constructor.
# 
#         '''
#         # We're not trying to instantiate THIS class, are we?
#         if self.__class__.platform is None:
#             raise NotImplementedError("use a subclass of PlatformDisplay that "
#                                       "defines class attribute 'platform'")
# 
#         self.attribs = (attribs if isinstance(attribs, AttribList) else
#                         AttribList(DisplayAttribs, attribs))
#         dhandle = native_getdisplay(self.__class__.platform, native_id,
#                                     attribs)
# 
#         # Call the parent class constructor.
#         super().__init__(dhandle=dhandle, delay_init=delay_init)


# Path: src/pegl/ext/ext_platform_wayland.py
from .ext_platform import PlatformDisplay

#!/usr/bin/env python3

'''Cross-vendor Wayland platform support extension for EGL.

This extension adds the Wayland display server as an explicitly
supportable native platform.

http://www.khronos.org/registry/egl/extensions/EXT/EGL_EXT_platform_wayland.txt

'''
# Copyright © 2014 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/>.

# Local imports.

# New PlatformDisplay subclass.

class WaylandDisplay(PlatformDisplay):