-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
66 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from opengl_registry.reader import RegistryReader # noqa | ||
from opengl_registry.registry import Registry # noqa | ||
|
||
__version__ = "0.2.0" | ||
__version__ = "0.3.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,29 @@ | ||
from typing import List | ||
|
||
class Extension: | ||
pass | ||
"""An OpenGL extensions containins enum and command names to add""" | ||
|
||
def __init__(self, *, name: str, supported: str, enums: List[str], commands: List[str]): | ||
self._name = name | ||
self._supported = supported | ||
self._enums = enums | ||
self._commands = commands | ||
|
||
def __repr__(self) -> str: | ||
return "<Extension {} [{}]: enums={} commands={}".format( | ||
self._name, self._supported, self._enums, self._commands | ||
) | ||
|
||
@property | ||
def name(self) -> str: | ||
return self._name | ||
|
||
@property | ||
def enums(self) -> List[str]: | ||
"""List if enum names to include""" | ||
return self._enums | ||
|
||
@property | ||
def commands(self) -> List[str]: | ||
"""List of command names to include""" | ||
return self._commands |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,14 @@ | |
|
||
setup( | ||
name="opengl-registry", | ||
version="0.2.0", | ||
version="0.3.0", | ||
description="A simple tool for extracting information from the OpenGL API Registry", | ||
long_description=open('README.md').read(), | ||
long_description_content_type='text/markdown', | ||
url="https://github.com/moderngl/opengl-registry", | ||
author="Einar Forselv", | ||
author_email="[email protected]", | ||
python_requires='>=3.5', | ||
python_requires='>=3.6', | ||
platforms=['any'], | ||
license='MIT', | ||
packages=find_namespace_packages(include=['opengl_registry']), | ||
|
@@ -26,9 +26,6 @@ | |
'Topic :: Multimedia :: Graphics', | ||
'Topic :: Multimedia :: Graphics :: 3D Rendering', | ||
'Programming Language :: Python :: 3 :: Only', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
], | ||
entry_points={ | ||
'console_scripts': [ | ||
|