glcontext 2.4.0__tar.gz → 3.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {glcontext-2.4.0/glcontext.egg-info → glcontext-3.0.0}/PKG-INFO +5 -7
- {glcontext-2.4.0 → glcontext-3.0.0}/README.md +2 -4
- {glcontext-2.4.0 → glcontext-3.0.0}/glcontext/darwin.cpp +1 -0
- {glcontext-2.4.0 → glcontext-3.0.0}/glcontext/egl.cpp +1 -0
- {glcontext-2.4.0 → glcontext-3.0.0}/glcontext/empty.cpp +1 -1
- {glcontext-2.4.0 → glcontext-3.0.0}/glcontext/empty.py +1 -1
- {glcontext-2.4.0 → glcontext-3.0.0}/glcontext/wgl.cpp +1 -0
- {glcontext-2.4.0 → glcontext-3.0.0}/glcontext/x11.cpp +1 -0
- {glcontext-2.4.0 → glcontext-3.0.0/glcontext.egg-info}/PKG-INFO +5 -7
- {glcontext-2.4.0 → glcontext-3.0.0}/setup.py +4 -13
- {glcontext-2.4.0 → glcontext-3.0.0}/LICENSE +0 -0
- {glcontext-2.4.0 → glcontext-3.0.0}/MANIFEST.in +0 -0
- {glcontext-2.4.0 → glcontext-3.0.0}/glcontext/__init__.py +0 -0
- {glcontext-2.4.0 → glcontext-3.0.0}/glcontext/headless.cpp +0 -0
- {glcontext-2.4.0 → glcontext-3.0.0}/glcontext/windowed.cpp +0 -0
- {glcontext-2.4.0 → glcontext-3.0.0}/glcontext.egg-info/SOURCES.txt +0 -0
- {glcontext-2.4.0 → glcontext-3.0.0}/glcontext.egg-info/dependency_links.txt +0 -0
- {glcontext-2.4.0 → glcontext-3.0.0}/glcontext.egg-info/top_level.txt +0 -0
- {glcontext-2.4.0 → glcontext-3.0.0}/pyproject.toml +0 -0
- {glcontext-2.4.0 → glcontext-3.0.0}/setup.cfg +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: glcontext
|
|
3
|
-
Version:
|
|
4
|
-
Summary: Portable OpenGL Context
|
|
3
|
+
Version: 3.0.0
|
|
4
|
+
Summary: Portable Headless OpenGL Context
|
|
5
5
|
Home-page: https://github.com/moderngl/glcontext
|
|
6
6
|
Author: Szabolcs Dombi
|
|
7
|
-
Author-email:
|
|
7
|
+
Author-email: szabolcs@szabolcsdombi.com
|
|
8
8
|
License: MIT
|
|
9
9
|
Platform: any
|
|
10
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
@@ -18,12 +18,10 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE
|
|
20
20
|
|
|
21
|
-
[](https://pypi.python.org/pypi/glcontext)
|
|
22
|
-
|
|
23
|
-
<img align="right" src="https://github.com/moderngl/glcontext/raw/master/.github/icon_small.png">
|
|
24
|
-
|
|
25
21
|
# glcontext
|
|
26
22
|
|
|
23
|
+
<img align="right" width="300" height="200" src="https://github.com/moderngl/glcontext/raw/main/.github/icon.svg">
|
|
24
|
+
|
|
27
25
|
**glcontext** is a library providing OpenGL implementation for ModernGL on multiple platforms.
|
|
28
26
|
|
|
29
27
|
* [glcontext on github](https://github.com/moderngl/glcontext)
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
[](https://pypi.python.org/pypi/glcontext)
|
|
2
|
-
|
|
3
|
-
<img align="right" src="https://github.com/moderngl/glcontext/raw/master/.github/icon_small.png">
|
|
4
|
-
|
|
5
1
|
# glcontext
|
|
6
2
|
|
|
3
|
+
<img align="right" width="300" height="200" src="https://github.com/moderngl/glcontext/raw/main/.github/icon.svg">
|
|
4
|
+
|
|
7
5
|
**glcontext** is a library providing OpenGL implementation for ModernGL on multiple platforms.
|
|
8
6
|
|
|
9
7
|
* [glcontext on github](https://github.com/moderngl/glcontext)
|
|
@@ -136,6 +136,7 @@ void GLContext_dealloc(GLContext * self) {
|
|
|
136
136
|
|
|
137
137
|
PyMethodDef GLContext_methods[] = {
|
|
138
138
|
{"load", (PyCFunction)GLContext_meth_load, METH_O, NULL},
|
|
139
|
+
{"load_opengl_function", (PyCFunction)GLContext_meth_load, METH_O, NULL},
|
|
139
140
|
{"release", (PyCFunction)GLContext_meth_release, METH_NOARGS, NULL},
|
|
140
141
|
{"__enter__", (PyCFunction)GLContext_meth_enter, METH_NOARGS, NULL},
|
|
141
142
|
{"__exit__", (PyCFunction)GLContext_meth_exit, METH_VARARGS, NULL},
|
|
@@ -370,6 +370,7 @@ void GLContext_dealloc(GLContext * self) {
|
|
|
370
370
|
|
|
371
371
|
PyMethodDef GLContext_methods[] = {
|
|
372
372
|
{"load", (PyCFunction)GLContext_meth_load, METH_O, NULL},
|
|
373
|
+
{"load_opengl_function", (PyCFunction)GLContext_meth_load, METH_O, NULL},
|
|
373
374
|
{"release", (PyCFunction)GLContext_meth_release, METH_NOARGS, NULL},
|
|
374
375
|
{"__enter__", (PyCFunction)GLContext_meth_enter, METH_NOARGS, NULL},
|
|
375
376
|
{"__exit__", (PyCFunction)GLContext_meth_exit, METH_VARARGS, NULL},
|
|
@@ -38,7 +38,7 @@ void GLContext_dealloc(GLContext * self) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
PyMethodDef GLContext_methods[] = {
|
|
41
|
-
{"
|
|
41
|
+
{"load_opengl_function", (PyCFunction)GLContext_meth_load, METH_O, NULL},
|
|
42
42
|
{"release", (PyCFunction)GLContext_meth_release, METH_NOARGS, NULL},
|
|
43
43
|
{"__enter__", (PyCFunction)GLContext_meth_enter, METH_NOARGS, NULL},
|
|
44
44
|
{"__exit__", (PyCFunction)GLContext_meth_exit, METH_VARARGS, NULL},
|
|
@@ -298,6 +298,7 @@ void GLContext_dealloc(GLContext * self) {
|
|
|
298
298
|
|
|
299
299
|
PyMethodDef GLContext_methods[] = {
|
|
300
300
|
{"load", (PyCFunction)GLContext_meth_load, METH_O, NULL},
|
|
301
|
+
{"load_opengl_function", (PyCFunction)GLContext_meth_load, METH_O, NULL},
|
|
301
302
|
{"release", (PyCFunction)GLContext_meth_release, METH_NOARGS, NULL},
|
|
302
303
|
{"__enter__", (PyCFunction)GLContext_meth_enter, METH_NOARGS, NULL},
|
|
303
304
|
{"__exit__", (PyCFunction)GLContext_meth_exit, METH_VARARGS, NULL},
|
|
@@ -483,6 +483,7 @@ void GLContext_dealloc(GLContext * self) {
|
|
|
483
483
|
|
|
484
484
|
PyMethodDef GLContext_methods[] = {
|
|
485
485
|
{"load", (PyCFunction)GLContext_meth_load, METH_O, NULL},
|
|
486
|
+
{"load_opengl_function", (PyCFunction)GLContext_meth_load, METH_O, NULL},
|
|
486
487
|
{"release", (PyCFunction)GLContext_meth_release, METH_NOARGS, NULL},
|
|
487
488
|
{"__enter__", (PyCFunction)GLContext_meth_enter, METH_NOARGS, NULL},
|
|
488
489
|
{"__exit__", (PyCFunction)GLContext_meth_exit, METH_VARARGS, NULL},
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: glcontext
|
|
3
|
-
Version:
|
|
4
|
-
Summary: Portable OpenGL Context
|
|
3
|
+
Version: 3.0.0
|
|
4
|
+
Summary: Portable Headless OpenGL Context
|
|
5
5
|
Home-page: https://github.com/moderngl/glcontext
|
|
6
6
|
Author: Szabolcs Dombi
|
|
7
|
-
Author-email:
|
|
7
|
+
Author-email: szabolcs@szabolcsdombi.com
|
|
8
8
|
License: MIT
|
|
9
9
|
Platform: any
|
|
10
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
@@ -18,12 +18,10 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE
|
|
20
20
|
|
|
21
|
-
[](https://pypi.python.org/pypi/glcontext)
|
|
22
|
-
|
|
23
|
-
<img align="right" src="https://github.com/moderngl/glcontext/raw/master/.github/icon_small.png">
|
|
24
|
-
|
|
25
21
|
# glcontext
|
|
26
22
|
|
|
23
|
+
<img align="right" width="300" height="200" src="https://github.com/moderngl/glcontext/raw/main/.github/icon.svg">
|
|
24
|
+
|
|
27
25
|
**glcontext** is a library providing OpenGL implementation for ModernGL on multiple platforms.
|
|
28
26
|
|
|
29
27
|
* [glcontext on github](https://github.com/moderngl/glcontext)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import platform
|
|
2
2
|
import sys
|
|
3
|
+
|
|
3
4
|
from setuptools import Extension, setup
|
|
4
5
|
|
|
5
6
|
PLATFORMS = {'windows', 'linux', 'darwin'}
|
|
@@ -13,16 +14,6 @@ for known in PLATFORMS:
|
|
|
13
14
|
if target not in PLATFORMS:
|
|
14
15
|
target = 'linux'
|
|
15
16
|
|
|
16
|
-
if target == 'darwin':
|
|
17
|
-
import os
|
|
18
|
-
from distutils.sysconfig import get_config_var
|
|
19
|
-
from distutils.version import LooseVersion
|
|
20
|
-
if 'MACOSX_DEPLOYMENT_TARGET' not in os.environ:
|
|
21
|
-
current_system = LooseVersion(platform.mac_ver()[0])
|
|
22
|
-
python_target = LooseVersion(get_config_var('MACOSX_DEPLOYMENT_TARGET'))
|
|
23
|
-
if python_target < '10.9' and current_system >= '10.9':
|
|
24
|
-
os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.9'
|
|
25
|
-
|
|
26
17
|
wgl = Extension(
|
|
27
18
|
name='glcontext.wgl',
|
|
28
19
|
sources=['glcontext/wgl.cpp'],
|
|
@@ -88,13 +79,13 @@ ext_modules = {
|
|
|
88
79
|
|
|
89
80
|
setup(
|
|
90
81
|
name='glcontext',
|
|
91
|
-
version='
|
|
92
|
-
description='Portable OpenGL Context',
|
|
82
|
+
version='3.0.0',
|
|
83
|
+
description='Portable Headless OpenGL Context',
|
|
93
84
|
long_description=open('README.md', encoding='utf-8').read(),
|
|
94
85
|
long_description_content_type='text/markdown',
|
|
95
86
|
url='https://github.com/moderngl/glcontext',
|
|
96
87
|
author='Szabolcs Dombi',
|
|
97
|
-
author_email='
|
|
88
|
+
author_email='szabolcs@szabolcsdombi.com',
|
|
98
89
|
license='MIT',
|
|
99
90
|
platforms=['any'],
|
|
100
91
|
packages=['glcontext'],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|