glcontext 3.0.0__tar.gz → 3.2.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-3.0.0/glcontext.egg-info → glcontext-3.2.0}/PKG-INFO +29 -19
- {glcontext-3.0.0 → glcontext-3.2.0}/README.md +17 -17
- {glcontext-3.0.0 → glcontext-3.2.0}/glcontext/__init__.py +1 -1
- {glcontext-3.0.0 → glcontext-3.2.0}/glcontext/darwin.cpp +3 -0
- {glcontext-3.0.0 → glcontext-3.2.0}/glcontext/egl.cpp +3 -0
- {glcontext-3.0.0 → glcontext-3.2.0}/glcontext/empty.cpp +3 -0
- {glcontext-3.0.0 → glcontext-3.2.0}/glcontext/headless.cpp +3 -0
- {glcontext-3.0.0 → glcontext-3.2.0}/glcontext/wgl.cpp +3 -0
- {glcontext-3.0.0 → glcontext-3.2.0}/glcontext/windowed.cpp +3 -0
- {glcontext-3.0.0 → glcontext-3.2.0}/glcontext/x11.cpp +3 -0
- {glcontext-3.0.0 → glcontext-3.2.0/glcontext.egg-info}/PKG-INFO +29 -19
- glcontext-3.2.0/pyproject.toml +3 -0
- {glcontext-3.0.0 → glcontext-3.2.0}/setup.py +1 -1
- glcontext-3.0.0/pyproject.toml +0 -6
- {glcontext-3.0.0 → glcontext-3.2.0}/LICENSE +0 -0
- {glcontext-3.0.0 → glcontext-3.2.0}/MANIFEST.in +0 -0
- {glcontext-3.0.0 → glcontext-3.2.0}/glcontext/empty.py +0 -0
- {glcontext-3.0.0 → glcontext-3.2.0}/glcontext.egg-info/SOURCES.txt +0 -0
- {glcontext-3.0.0 → glcontext-3.2.0}/glcontext.egg-info/dependency_links.txt +0 -0
- {glcontext-3.0.0 → glcontext-3.2.0}/glcontext.egg-info/top_level.txt +0 -0
- {glcontext-3.0.0 → glcontext-3.2.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: glcontext
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.2.0
|
|
4
4
|
Summary: Portable Headless OpenGL Context
|
|
5
5
|
Home-page: https://github.com/moderngl/glcontext
|
|
6
6
|
Author: Szabolcs Dombi
|
|
@@ -17,6 +17,16 @@ Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE
|
|
20
|
+
Dynamic: author
|
|
21
|
+
Dynamic: author-email
|
|
22
|
+
Dynamic: classifier
|
|
23
|
+
Dynamic: description
|
|
24
|
+
Dynamic: description-content-type
|
|
25
|
+
Dynamic: home-page
|
|
26
|
+
Dynamic: license
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
Dynamic: platform
|
|
29
|
+
Dynamic: summary
|
|
20
30
|
|
|
21
31
|
# glcontext
|
|
22
32
|
|
|
@@ -32,7 +42,7 @@ License-File: LICENSE
|
|
|
32
42
|
|
|
33
43
|
A glcontext backend is either an extension or a submodule of the glcontext package.
|
|
34
44
|
The package itself does not import any of the backends.
|
|
35
|
-
Importing the base package `glcontext` must safe and lightweight.
|
|
45
|
+
Importing the base package `glcontext` must be safe and lightweight.
|
|
36
46
|
|
|
37
47
|
## Structure
|
|
38
48
|
|
|
@@ -82,33 +92,33 @@ There are "empty" example backends provided for developers to help adding new ba
|
|
|
82
92
|
There is a pure python example in [empty.py](#) and an extension example in [empty.cpp](#).
|
|
83
93
|
Besides their name match, they do not depend on each other, they are independent submodules of glcontext.
|
|
84
94
|
|
|
85
|
-
|
|
95
|
+
A "portable" backend implementation must load its dependency at runtime.
|
|
86
96
|
This rule is for simplifying the build of the entire package.
|
|
87
97
|
If an implementation cannot provide a "portable" backend, it will not be added to this library.
|
|
88
|
-
Non "portable" backends are welcome as third
|
|
98
|
+
Non "portable" backends are welcome as third-party libraries.
|
|
89
99
|
|
|
90
|
-
A backend must be lightweight
|
|
100
|
+
A backend must be lightweight; its size must fit within reasonable limits.
|
|
91
101
|
|
|
92
|
-
To add support for new platforms one must edit the `setup.py` too.
|
|
93
|
-
Platform
|
|
102
|
+
To add support for new platforms, one must edit the `setup.py` too.
|
|
103
|
+
Platform-specific dependencies are exceptions to the "portability" rule.
|
|
94
104
|
|
|
95
|
-
Example for platform
|
|
105
|
+
Example for platform-specific dependencies:
|
|
96
106
|
|
|
97
|
-
- `gdi32.lib` on
|
|
98
|
-
- `libdl.a` on
|
|
107
|
+
- `gdi32.lib` on Windows
|
|
108
|
+
- `libdl.a` on Linux
|
|
99
109
|
|
|
100
|
-
Please note that `libGL.so` is loaded
|
|
110
|
+
Please note that `libGL.so` is loaded dynamically by the backends.
|
|
101
111
|
|
|
102
112
|
## Current backends
|
|
103
113
|
|
|
104
|
-
Each backend supports
|
|
105
|
-
The `glversion` is the minimum OpenGL version required while `mode`
|
|
114
|
+
Each backend supports `glversion` and `mode` parameters as a minimum.
|
|
115
|
+
The `glversion` is the minimum OpenGL version required, while `mode`
|
|
106
116
|
decides how the context is created.
|
|
107
117
|
|
|
108
118
|
Modes
|
|
109
119
|
|
|
110
120
|
* `detect`: Will detect an existing active OpenGL context.
|
|
111
|
-
* `standalone`:
|
|
121
|
+
* `standalone`: Creates a headless OpenGL context
|
|
112
122
|
* `share`: Creates a new context sharing objects with the currently active context (headless)
|
|
113
123
|
|
|
114
124
|
### wgl
|
|
@@ -133,7 +143,7 @@ Parameters
|
|
|
133
143
|
|
|
134
144
|
### darwin
|
|
135
145
|
|
|
136
|
-
Will create the
|
|
146
|
+
Will create the highest core context available.
|
|
137
147
|
|
|
138
148
|
Parameters
|
|
139
149
|
|
|
@@ -143,7 +153,7 @@ Parameters
|
|
|
143
153
|
|
|
144
154
|
Only supports standalone mode.
|
|
145
155
|
|
|
146
|
-
If `libgl` and/or `libegl`
|
|
156
|
+
If `libgl` and/or `libegl` are not passed in, the backend will try to locate
|
|
147
157
|
GL and/or EGL library using `ctypes.utils.find_library`.
|
|
148
158
|
|
|
149
159
|
Parameters
|
|
@@ -183,11 +193,11 @@ pytest tests
|
|
|
183
193
|
|
|
184
194
|
## Contributing
|
|
185
195
|
|
|
186
|
-
|
|
196
|
+
Contributions are welcome.
|
|
187
197
|
|
|
188
198
|
Pull Requests will be merged if they match the [Development Guide](#).
|
|
189
199
|
|
|
190
|
-
For prototypes, pure
|
|
200
|
+
For prototypes, pure Python implementations using ctypes are also welcome.
|
|
191
201
|
We will probably port it to a proper extension in the future.
|
|
192
202
|
|
|
193
203
|
Please ask questions [here](https://github.com/moderngl/glcontext/issues).
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
A glcontext backend is either an extension or a submodule of the glcontext package.
|
|
14
14
|
The package itself does not import any of the backends.
|
|
15
|
-
Importing the base package `glcontext` must safe and lightweight.
|
|
15
|
+
Importing the base package `glcontext` must be safe and lightweight.
|
|
16
16
|
|
|
17
17
|
## Structure
|
|
18
18
|
|
|
@@ -62,33 +62,33 @@ There are "empty" example backends provided for developers to help adding new ba
|
|
|
62
62
|
There is a pure python example in [empty.py](#) and an extension example in [empty.cpp](#).
|
|
63
63
|
Besides their name match, they do not depend on each other, they are independent submodules of glcontext.
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
A "portable" backend implementation must load its dependency at runtime.
|
|
66
66
|
This rule is for simplifying the build of the entire package.
|
|
67
67
|
If an implementation cannot provide a "portable" backend, it will not be added to this library.
|
|
68
|
-
Non "portable" backends are welcome as third
|
|
68
|
+
Non "portable" backends are welcome as third-party libraries.
|
|
69
69
|
|
|
70
|
-
A backend must be lightweight
|
|
70
|
+
A backend must be lightweight; its size must fit within reasonable limits.
|
|
71
71
|
|
|
72
|
-
To add support for new platforms one must edit the `setup.py` too.
|
|
73
|
-
Platform
|
|
72
|
+
To add support for new platforms, one must edit the `setup.py` too.
|
|
73
|
+
Platform-specific dependencies are exceptions to the "portability" rule.
|
|
74
74
|
|
|
75
|
-
Example for platform
|
|
75
|
+
Example for platform-specific dependencies:
|
|
76
76
|
|
|
77
|
-
- `gdi32.lib` on
|
|
78
|
-
- `libdl.a` on
|
|
77
|
+
- `gdi32.lib` on Windows
|
|
78
|
+
- `libdl.a` on Linux
|
|
79
79
|
|
|
80
|
-
Please note that `libGL.so` is loaded
|
|
80
|
+
Please note that `libGL.so` is loaded dynamically by the backends.
|
|
81
81
|
|
|
82
82
|
## Current backends
|
|
83
83
|
|
|
84
|
-
Each backend supports
|
|
85
|
-
The `glversion` is the minimum OpenGL version required while `mode`
|
|
84
|
+
Each backend supports `glversion` and `mode` parameters as a minimum.
|
|
85
|
+
The `glversion` is the minimum OpenGL version required, while `mode`
|
|
86
86
|
decides how the context is created.
|
|
87
87
|
|
|
88
88
|
Modes
|
|
89
89
|
|
|
90
90
|
* `detect`: Will detect an existing active OpenGL context.
|
|
91
|
-
* `standalone`:
|
|
91
|
+
* `standalone`: Creates a headless OpenGL context
|
|
92
92
|
* `share`: Creates a new context sharing objects with the currently active context (headless)
|
|
93
93
|
|
|
94
94
|
### wgl
|
|
@@ -113,7 +113,7 @@ Parameters
|
|
|
113
113
|
|
|
114
114
|
### darwin
|
|
115
115
|
|
|
116
|
-
Will create the
|
|
116
|
+
Will create the highest core context available.
|
|
117
117
|
|
|
118
118
|
Parameters
|
|
119
119
|
|
|
@@ -123,7 +123,7 @@ Parameters
|
|
|
123
123
|
|
|
124
124
|
Only supports standalone mode.
|
|
125
125
|
|
|
126
|
-
If `libgl` and/or `libegl`
|
|
126
|
+
If `libgl` and/or `libegl` are not passed in, the backend will try to locate
|
|
127
127
|
GL and/or EGL library using `ctypes.utils.find_library`.
|
|
128
128
|
|
|
129
129
|
Parameters
|
|
@@ -163,11 +163,11 @@ pytest tests
|
|
|
163
163
|
|
|
164
164
|
## Contributing
|
|
165
165
|
|
|
166
|
-
|
|
166
|
+
Contributions are welcome.
|
|
167
167
|
|
|
168
168
|
Pull Requests will be merged if they match the [Development Guide](#).
|
|
169
169
|
|
|
170
|
-
For prototypes, pure
|
|
170
|
+
For prototypes, pure Python implementations using ctypes are also welcome.
|
|
171
171
|
We will probably port it to a proper extension in the future.
|
|
172
172
|
|
|
173
173
|
Please ask questions [here](https://github.com/moderngl/glcontext/issues).
|
|
@@ -166,6 +166,9 @@ PyModuleDef module_def = {PyModuleDef_HEAD_INIT, "darwin", NULL, -1, module_meth
|
|
|
166
166
|
|
|
167
167
|
extern "C" PyObject * PyInit_darwin() {
|
|
168
168
|
PyObject * module = PyModule_Create(&module_def);
|
|
169
|
+
#ifdef Py_GIL_DISABLED
|
|
170
|
+
PyUnstable_Module_SetGIL(module, Py_MOD_GIL_NOT_USED);
|
|
171
|
+
#endif
|
|
169
172
|
GLContext_type = (PyTypeObject *)PyType_FromSpec(&GLContext_spec);
|
|
170
173
|
PyModule_AddObject(module, "GLContext", (PyObject *)GLContext_type);
|
|
171
174
|
return module;
|
|
@@ -400,6 +400,9 @@ PyModuleDef module_def = {PyModuleDef_HEAD_INIT, "egl", NULL, -1, module_methods
|
|
|
400
400
|
|
|
401
401
|
extern "C" PyObject * PyInit_egl() {
|
|
402
402
|
PyObject * module = PyModule_Create(&module_def);
|
|
403
|
+
#ifdef Py_GIL_DISABLED
|
|
404
|
+
PyUnstable_Module_SetGIL(module, Py_MOD_GIL_NOT_USED);
|
|
405
|
+
#endif
|
|
403
406
|
GLContext_type = (PyTypeObject *)PyType_FromSpec(&GLContext_spec);
|
|
404
407
|
PyModule_AddObject(module, "GLContext", (PyObject *)GLContext_type);
|
|
405
408
|
return module;
|
|
@@ -62,6 +62,9 @@ PyModuleDef module_def = {PyModuleDef_HEAD_INIT, "empty", NULL, -1, module_metho
|
|
|
62
62
|
|
|
63
63
|
extern "C" PyObject * PyInit_empty() {
|
|
64
64
|
PyObject * module = PyModule_Create(&module_def);
|
|
65
|
+
#ifdef Py_GIL_DISABLED
|
|
66
|
+
PyUnstable_Module_SetGIL(module, Py_MOD_GIL_NOT_USED);
|
|
67
|
+
#endif
|
|
65
68
|
GLContext_type = (PyTypeObject *)PyType_FromSpec(&GLContext_spec);
|
|
66
69
|
PyModule_AddObject(module, "GLContext", (PyObject *)GLContext_type);
|
|
67
70
|
return module;
|
|
@@ -103,5 +103,8 @@ PyModuleDef module_def = {PyModuleDef_HEAD_INIT, "headless", NULL, -1, module_me
|
|
|
103
103
|
|
|
104
104
|
extern "C" PyObject * PyInit_headless() {
|
|
105
105
|
PyObject * module = PyModule_Create(&module_def);
|
|
106
|
+
#ifdef Py_GIL_DISABLED
|
|
107
|
+
PyUnstable_Module_SetGIL(module, Py_MOD_GIL_NOT_USED);
|
|
108
|
+
#endif
|
|
106
109
|
return module;
|
|
107
110
|
}
|
|
@@ -328,6 +328,9 @@ PyModuleDef module_def = {PyModuleDef_HEAD_INIT, "wgl", NULL, -1, module_methods
|
|
|
328
328
|
|
|
329
329
|
extern "C" PyObject * PyInit_wgl() {
|
|
330
330
|
PyObject * module = PyModule_Create(&module_def);
|
|
331
|
+
#ifdef Py_GIL_DISABLED
|
|
332
|
+
PyUnstable_Module_SetGIL(module, Py_MOD_GIL_NOT_USED);
|
|
333
|
+
#endif
|
|
331
334
|
GLContext_type = (PyTypeObject *)PyType_FromSpec(&GLContext_spec);
|
|
332
335
|
PyModule_AddObject(module, "GLContext", (PyObject *)GLContext_type);
|
|
333
336
|
return module;
|
|
@@ -72,5 +72,8 @@ PyModuleDef module_def = {PyModuleDef_HEAD_INIT, "windowed", NULL, -1, module_me
|
|
|
72
72
|
|
|
73
73
|
extern "C" PyObject * PyInit_windowed() {
|
|
74
74
|
PyObject * module = PyModule_Create(&module_def);
|
|
75
|
+
#ifdef Py_GIL_DISABLED
|
|
76
|
+
PyUnstable_Module_SetGIL(module, Py_MOD_GIL_NOT_USED);
|
|
77
|
+
#endif
|
|
75
78
|
return module;
|
|
76
79
|
}
|
|
@@ -513,6 +513,9 @@ PyModuleDef module_def = {PyModuleDef_HEAD_INIT, "x11", NULL, -1, module_methods
|
|
|
513
513
|
|
|
514
514
|
extern "C" PyObject * PyInit_x11() {
|
|
515
515
|
PyObject * module = PyModule_Create(&module_def);
|
|
516
|
+
#ifdef Py_GIL_DISABLED
|
|
517
|
+
PyUnstable_Module_SetGIL(module, Py_MOD_GIL_NOT_USED);
|
|
518
|
+
#endif
|
|
516
519
|
GLContext_type = (PyTypeObject *)PyType_FromSpec(&GLContext_spec);
|
|
517
520
|
PyModule_AddObject(module, "GLContext", (PyObject *)GLContext_type);
|
|
518
521
|
return module;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: glcontext
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.2.0
|
|
4
4
|
Summary: Portable Headless OpenGL Context
|
|
5
5
|
Home-page: https://github.com/moderngl/glcontext
|
|
6
6
|
Author: Szabolcs Dombi
|
|
@@ -17,6 +17,16 @@ Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE
|
|
20
|
+
Dynamic: author
|
|
21
|
+
Dynamic: author-email
|
|
22
|
+
Dynamic: classifier
|
|
23
|
+
Dynamic: description
|
|
24
|
+
Dynamic: description-content-type
|
|
25
|
+
Dynamic: home-page
|
|
26
|
+
Dynamic: license
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
Dynamic: platform
|
|
29
|
+
Dynamic: summary
|
|
20
30
|
|
|
21
31
|
# glcontext
|
|
22
32
|
|
|
@@ -32,7 +42,7 @@ License-File: LICENSE
|
|
|
32
42
|
|
|
33
43
|
A glcontext backend is either an extension or a submodule of the glcontext package.
|
|
34
44
|
The package itself does not import any of the backends.
|
|
35
|
-
Importing the base package `glcontext` must safe and lightweight.
|
|
45
|
+
Importing the base package `glcontext` must be safe and lightweight.
|
|
36
46
|
|
|
37
47
|
## Structure
|
|
38
48
|
|
|
@@ -82,33 +92,33 @@ There are "empty" example backends provided for developers to help adding new ba
|
|
|
82
92
|
There is a pure python example in [empty.py](#) and an extension example in [empty.cpp](#).
|
|
83
93
|
Besides their name match, they do not depend on each other, they are independent submodules of glcontext.
|
|
84
94
|
|
|
85
|
-
|
|
95
|
+
A "portable" backend implementation must load its dependency at runtime.
|
|
86
96
|
This rule is for simplifying the build of the entire package.
|
|
87
97
|
If an implementation cannot provide a "portable" backend, it will not be added to this library.
|
|
88
|
-
Non "portable" backends are welcome as third
|
|
98
|
+
Non "portable" backends are welcome as third-party libraries.
|
|
89
99
|
|
|
90
|
-
A backend must be lightweight
|
|
100
|
+
A backend must be lightweight; its size must fit within reasonable limits.
|
|
91
101
|
|
|
92
|
-
To add support for new platforms one must edit the `setup.py` too.
|
|
93
|
-
Platform
|
|
102
|
+
To add support for new platforms, one must edit the `setup.py` too.
|
|
103
|
+
Platform-specific dependencies are exceptions to the "portability" rule.
|
|
94
104
|
|
|
95
|
-
Example for platform
|
|
105
|
+
Example for platform-specific dependencies:
|
|
96
106
|
|
|
97
|
-
- `gdi32.lib` on
|
|
98
|
-
- `libdl.a` on
|
|
107
|
+
- `gdi32.lib` on Windows
|
|
108
|
+
- `libdl.a` on Linux
|
|
99
109
|
|
|
100
|
-
Please note that `libGL.so` is loaded
|
|
110
|
+
Please note that `libGL.so` is loaded dynamically by the backends.
|
|
101
111
|
|
|
102
112
|
## Current backends
|
|
103
113
|
|
|
104
|
-
Each backend supports
|
|
105
|
-
The `glversion` is the minimum OpenGL version required while `mode`
|
|
114
|
+
Each backend supports `glversion` and `mode` parameters as a minimum.
|
|
115
|
+
The `glversion` is the minimum OpenGL version required, while `mode`
|
|
106
116
|
decides how the context is created.
|
|
107
117
|
|
|
108
118
|
Modes
|
|
109
119
|
|
|
110
120
|
* `detect`: Will detect an existing active OpenGL context.
|
|
111
|
-
* `standalone`:
|
|
121
|
+
* `standalone`: Creates a headless OpenGL context
|
|
112
122
|
* `share`: Creates a new context sharing objects with the currently active context (headless)
|
|
113
123
|
|
|
114
124
|
### wgl
|
|
@@ -133,7 +143,7 @@ Parameters
|
|
|
133
143
|
|
|
134
144
|
### darwin
|
|
135
145
|
|
|
136
|
-
Will create the
|
|
146
|
+
Will create the highest core context available.
|
|
137
147
|
|
|
138
148
|
Parameters
|
|
139
149
|
|
|
@@ -143,7 +153,7 @@ Parameters
|
|
|
143
153
|
|
|
144
154
|
Only supports standalone mode.
|
|
145
155
|
|
|
146
|
-
If `libgl` and/or `libegl`
|
|
156
|
+
If `libgl` and/or `libegl` are not passed in, the backend will try to locate
|
|
147
157
|
GL and/or EGL library using `ctypes.utils.find_library`.
|
|
148
158
|
|
|
149
159
|
Parameters
|
|
@@ -183,11 +193,11 @@ pytest tests
|
|
|
183
193
|
|
|
184
194
|
## Contributing
|
|
185
195
|
|
|
186
|
-
|
|
196
|
+
Contributions are welcome.
|
|
187
197
|
|
|
188
198
|
Pull Requests will be merged if they match the [Development Guide](#).
|
|
189
199
|
|
|
190
|
-
For prototypes, pure
|
|
200
|
+
For prototypes, pure Python implementations using ctypes are also welcome.
|
|
191
201
|
We will probably port it to a proper extension in the future.
|
|
192
202
|
|
|
193
203
|
Please ask questions [here](https://github.com/moderngl/glcontext/issues).
|
glcontext-3.0.0/pyproject.toml
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|