RegistryReader¶
Create¶
-
classmethod
RegistryReader.
from_file
(path: str) → opengl_registry.reader.RegistryReader[source]¶ Create a RegistryReader with a local gl.xml file
Methods¶
-
RegistryReader.
read
() → opengl_registry.registry.Registry[source]¶ Reads the registry structure.
Returns: The Registry
instanceReturn 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]
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