glcontext 3.1.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.1.0/glcontext.egg-info → glcontext-3.2.0}/PKG-INFO +18 -18
- {glcontext-3.1.0 → glcontext-3.2.0}/README.md +17 -17
- {glcontext-3.1.0 → glcontext-3.2.0}/glcontext/__init__.py +1 -1
- {glcontext-3.1.0 → glcontext-3.2.0}/glcontext/darwin.cpp +3 -0
- {glcontext-3.1.0 → glcontext-3.2.0}/glcontext/egl.cpp +3 -0
- {glcontext-3.1.0 → glcontext-3.2.0}/glcontext/empty.cpp +3 -0
- {glcontext-3.1.0 → glcontext-3.2.0}/glcontext/headless.cpp +3 -0
- {glcontext-3.1.0 → glcontext-3.2.0}/glcontext/wgl.cpp +3 -0
- {glcontext-3.1.0 → glcontext-3.2.0}/glcontext/windowed.cpp +3 -0
- {glcontext-3.1.0 → glcontext-3.2.0}/glcontext/x11.cpp +3 -0
- {glcontext-3.1.0 → glcontext-3.2.0/glcontext.egg-info}/PKG-INFO +18 -18
- glcontext-3.2.0/pyproject.toml +3 -0
- {glcontext-3.1.0 → glcontext-3.2.0}/setup.py +1 -1
- glcontext-3.1.0/pyproject.toml +0 -6
- {glcontext-3.1.0 → glcontext-3.2.0}/LICENSE +0 -0
- {glcontext-3.1.0 → glcontext-3.2.0}/MANIFEST.in +0 -0
- {glcontext-3.1.0 → glcontext-3.2.0}/glcontext/empty.py +0 -0
- {glcontext-3.1.0 → glcontext-3.2.0}/glcontext.egg-info/SOURCES.txt +0 -0
- {glcontext-3.1.0 → glcontext-3.2.0}/glcontext.egg-info/dependency_links.txt +0 -0
- {glcontext-3.1.0 → glcontext-3.2.0}/glcontext.egg-info/top_level.txt +0 -0
- {glcontext-3.1.0 → glcontext-3.2.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
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
|
|
@@ -42,7 +42,7 @@ Dynamic: summary
|
|
|
42
42
|
|
|
43
43
|
A glcontext backend is either an extension or a submodule of the glcontext package.
|
|
44
44
|
The package itself does not import any of the backends.
|
|
45
|
-
Importing the base package `glcontext` must safe and lightweight.
|
|
45
|
+
Importing the base package `glcontext` must be safe and lightweight.
|
|
46
46
|
|
|
47
47
|
## Structure
|
|
48
48
|
|
|
@@ -92,33 +92,33 @@ There are "empty" example backends provided for developers to help adding new ba
|
|
|
92
92
|
There is a pure python example in [empty.py](#) and an extension example in [empty.cpp](#).
|
|
93
93
|
Besides their name match, they do not depend on each other, they are independent submodules of glcontext.
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
A "portable" backend implementation must load its dependency at runtime.
|
|
96
96
|
This rule is for simplifying the build of the entire package.
|
|
97
97
|
If an implementation cannot provide a "portable" backend, it will not be added to this library.
|
|
98
|
-
Non "portable" backends are welcome as third
|
|
98
|
+
Non "portable" backends are welcome as third-party libraries.
|
|
99
99
|
|
|
100
|
-
A backend must be lightweight
|
|
100
|
+
A backend must be lightweight; its size must fit within reasonable limits.
|
|
101
101
|
|
|
102
|
-
To add support for new platforms one must edit the `setup.py` too.
|
|
103
|
-
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.
|
|
104
104
|
|
|
105
|
-
Example for platform
|
|
105
|
+
Example for platform-specific dependencies:
|
|
106
106
|
|
|
107
|
-
- `gdi32.lib` on
|
|
108
|
-
- `libdl.a` on
|
|
107
|
+
- `gdi32.lib` on Windows
|
|
108
|
+
- `libdl.a` on Linux
|
|
109
109
|
|
|
110
|
-
Please note that `libGL.so` is loaded
|
|
110
|
+
Please note that `libGL.so` is loaded dynamically by the backends.
|
|
111
111
|
|
|
112
112
|
## Current backends
|
|
113
113
|
|
|
114
|
-
Each backend supports
|
|
115
|
-
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`
|
|
116
116
|
decides how the context is created.
|
|
117
117
|
|
|
118
118
|
Modes
|
|
119
119
|
|
|
120
120
|
* `detect`: Will detect an existing active OpenGL context.
|
|
121
|
-
* `standalone`:
|
|
121
|
+
* `standalone`: Creates a headless OpenGL context
|
|
122
122
|
* `share`: Creates a new context sharing objects with the currently active context (headless)
|
|
123
123
|
|
|
124
124
|
### wgl
|
|
@@ -143,7 +143,7 @@ Parameters
|
|
|
143
143
|
|
|
144
144
|
### darwin
|
|
145
145
|
|
|
146
|
-
Will create the
|
|
146
|
+
Will create the highest core context available.
|
|
147
147
|
|
|
148
148
|
Parameters
|
|
149
149
|
|
|
@@ -153,7 +153,7 @@ Parameters
|
|
|
153
153
|
|
|
154
154
|
Only supports standalone mode.
|
|
155
155
|
|
|
156
|
-
If `libgl` and/or `libegl`
|
|
156
|
+
If `libgl` and/or `libegl` are not passed in, the backend will try to locate
|
|
157
157
|
GL and/or EGL library using `ctypes.utils.find_library`.
|
|
158
158
|
|
|
159
159
|
Parameters
|
|
@@ -193,11 +193,11 @@ pytest tests
|
|
|
193
193
|
|
|
194
194
|
## Contributing
|
|
195
195
|
|
|
196
|
-
|
|
196
|
+
Contributions are welcome.
|
|
197
197
|
|
|
198
198
|
Pull Requests will be merged if they match the [Development Guide](#).
|
|
199
199
|
|
|
200
|
-
For prototypes, pure
|
|
200
|
+
For prototypes, pure Python implementations using ctypes are also welcome.
|
|
201
201
|
We will probably port it to a proper extension in the future.
|
|
202
202
|
|
|
203
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
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
|
|
@@ -42,7 +42,7 @@ Dynamic: summary
|
|
|
42
42
|
|
|
43
43
|
A glcontext backend is either an extension or a submodule of the glcontext package.
|
|
44
44
|
The package itself does not import any of the backends.
|
|
45
|
-
Importing the base package `glcontext` must safe and lightweight.
|
|
45
|
+
Importing the base package `glcontext` must be safe and lightweight.
|
|
46
46
|
|
|
47
47
|
## Structure
|
|
48
48
|
|
|
@@ -92,33 +92,33 @@ There are "empty" example backends provided for developers to help adding new ba
|
|
|
92
92
|
There is a pure python example in [empty.py](#) and an extension example in [empty.cpp](#).
|
|
93
93
|
Besides their name match, they do not depend on each other, they are independent submodules of glcontext.
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
A "portable" backend implementation must load its dependency at runtime.
|
|
96
96
|
This rule is for simplifying the build of the entire package.
|
|
97
97
|
If an implementation cannot provide a "portable" backend, it will not be added to this library.
|
|
98
|
-
Non "portable" backends are welcome as third
|
|
98
|
+
Non "portable" backends are welcome as third-party libraries.
|
|
99
99
|
|
|
100
|
-
A backend must be lightweight
|
|
100
|
+
A backend must be lightweight; its size must fit within reasonable limits.
|
|
101
101
|
|
|
102
|
-
To add support for new platforms one must edit the `setup.py` too.
|
|
103
|
-
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.
|
|
104
104
|
|
|
105
|
-
Example for platform
|
|
105
|
+
Example for platform-specific dependencies:
|
|
106
106
|
|
|
107
|
-
- `gdi32.lib` on
|
|
108
|
-
- `libdl.a` on
|
|
107
|
+
- `gdi32.lib` on Windows
|
|
108
|
+
- `libdl.a` on Linux
|
|
109
109
|
|
|
110
|
-
Please note that `libGL.so` is loaded
|
|
110
|
+
Please note that `libGL.so` is loaded dynamically by the backends.
|
|
111
111
|
|
|
112
112
|
## Current backends
|
|
113
113
|
|
|
114
|
-
Each backend supports
|
|
115
|
-
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`
|
|
116
116
|
decides how the context is created.
|
|
117
117
|
|
|
118
118
|
Modes
|
|
119
119
|
|
|
120
120
|
* `detect`: Will detect an existing active OpenGL context.
|
|
121
|
-
* `standalone`:
|
|
121
|
+
* `standalone`: Creates a headless OpenGL context
|
|
122
122
|
* `share`: Creates a new context sharing objects with the currently active context (headless)
|
|
123
123
|
|
|
124
124
|
### wgl
|
|
@@ -143,7 +143,7 @@ Parameters
|
|
|
143
143
|
|
|
144
144
|
### darwin
|
|
145
145
|
|
|
146
|
-
Will create the
|
|
146
|
+
Will create the highest core context available.
|
|
147
147
|
|
|
148
148
|
Parameters
|
|
149
149
|
|
|
@@ -153,7 +153,7 @@ Parameters
|
|
|
153
153
|
|
|
154
154
|
Only supports standalone mode.
|
|
155
155
|
|
|
156
|
-
If `libgl` and/or `libegl`
|
|
156
|
+
If `libgl` and/or `libegl` are not passed in, the backend will try to locate
|
|
157
157
|
GL and/or EGL library using `ctypes.utils.find_library`.
|
|
158
158
|
|
|
159
159
|
Parameters
|
|
@@ -193,11 +193,11 @@ pytest tests
|
|
|
193
193
|
|
|
194
194
|
## Contributing
|
|
195
195
|
|
|
196
|
-
|
|
196
|
+
Contributions are welcome.
|
|
197
197
|
|
|
198
198
|
Pull Requests will be merged if they match the [Development Guide](#).
|
|
199
199
|
|
|
200
|
-
For prototypes, pure
|
|
200
|
+
For prototypes, pure Python implementations using ctypes are also welcome.
|
|
201
201
|
We will probably port it to a proper extension in the future.
|
|
202
202
|
|
|
203
203
|
Please ask questions [here](https://github.com/moderngl/glcontext/issues).
|
glcontext-3.1.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
|