RegistryReader

Create

classmethod RegistryReader.from_file(path: str) → opengl_registry.reader.RegistryReader[source]

Create a RegistryReader with a local gl.xml file

classmethod RegistryReader.from_url(url: str = None) → opengl_registry.reader.RegistryReader[source]

Create a RegistryReader with a url to the gl.xml file

RegistryReader.__init__ = <function RegistryReader.__init__>[source]

Methods

RegistryReader.read() → opengl_registry.registry.Registry[source]

Reads the registry structure.

Returns:The Registry instance
Return type:Registry
RegistryReader.read_types() → List[opengl_registry.gltype.GlType][source]

Read all GL type definitions

Returns:list of types
Return type:List[GlType]
RegistryReader.read_enums() → Dict[str, opengl_registry.enums.Enum][source]

Reads all enums groups.

Returns:list of enums groups
Return type:List[Enums]
RegistryReader.read_commands() → Dict[str, opengl_registry.commands.Command][source]

Reads all commands.

Returns:list of commands
Return type:List[Command]
RegistryReader.read_features() → List[opengl_registry.features.Feature][source]

Reads all features.

Returns:list of features
Return type:List[Feature]
RegistryReader.read_extensions() → Dict[str, opengl_registry.extensions.Extension][source]

Reads all extensions.

Returns:list of extensions
Return type:List[Extension]

Attributes

RegistryReader.DEFAULT_URL = 'https://raw.githubusercontent.com/KhronosGroup/OpenGL-Registry/master/xml/gl.xml'

The default URL for the gl.xml` file

RegistryReader.registry_cls = <class 'opengl_registry.registry.Registry'>

The registry class. Can be replaced with a custom class

RegistryReader.enum_cls = <class 'opengl_registry.enums.Enum'>

The Enum class. Can be replaced with a custom class

RegistryReader.type_cls = <class 'opengl_registry.gltype.GlType'>

The GlType class. Can be replaced with a custom class