pyglet 2.1.5__py3-none-any.whl → 2.1.8__py3-none-any.whl
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.
- pyglet/__init__.py +27 -42
- pyglet/app/base.py +2 -2
- pyglet/clock.py +1 -1
- pyglet/display/base.py +31 -21
- pyglet/display/cocoa.py +25 -1
- pyglet/display/headless.py +1 -1
- pyglet/display/win32.py +134 -18
- pyglet/display/xlib.py +285 -70
- pyglet/event.py +17 -1
- pyglet/experimental/README.md +1 -1
- pyglet/experimental/jobs.py +1 -1
- pyglet/experimental/multitexture_sprite.py +2 -2
- pyglet/font/__init__.py +1 -1
- pyglet/font/base.py +8 -5
- pyglet/font/dwrite/__init__.py +13 -8
- pyglet/font/dwrite/dwrite_lib.py +1 -1
- pyglet/font/user.py +1 -1
- pyglet/gl/base.py +8 -4
- pyglet/gl/cocoa.py +4 -0
- pyglet/gl/gl.py +4 -3
- pyglet/gl/gl.pyi +2320 -0
- pyglet/gl/gl_compat.py +7 -18
- pyglet/gl/gl_compat.pyi +3097 -0
- pyglet/gl/xlib.py +24 -0
- pyglet/graphics/shader.py +34 -20
- pyglet/graphics/vertexbuffer.py +1 -1
- pyglet/gui/frame.py +2 -2
- pyglet/gui/widgets.py +1 -1
- pyglet/image/__init__.py +3 -3
- pyglet/image/buffer.py +3 -3
- pyglet/input/base.py +8 -8
- pyglet/input/linux/evdev.py +1 -1
- pyglet/libs/darwin/cocoapy/cocoalibs.py +3 -1
- pyglet/libs/win32/__init__.py +12 -0
- pyglet/libs/win32/constants.py +4 -0
- pyglet/libs/win32/types.py +97 -0
- pyglet/libs/x11/xrandr.py +166 -0
- pyglet/libs/x11/xrender.py +43 -0
- pyglet/libs/x11/xsync.py +43 -0
- pyglet/math.py +40 -49
- pyglet/media/buffered_logger.py +1 -1
- pyglet/media/codecs/ffmpeg.py +18 -34
- pyglet/media/codecs/gstreamer.py +3 -3
- pyglet/media/codecs/pyogg.py +1 -1
- pyglet/media/codecs/wave.py +6 -0
- pyglet/media/codecs/wmf.py +33 -7
- pyglet/media/devices/win32.py +1 -1
- pyglet/media/drivers/base.py +1 -1
- pyglet/media/drivers/directsound/interface.py +4 -0
- pyglet/media/drivers/listener.py +2 -2
- pyglet/media/drivers/xaudio2/interface.py +6 -2
- pyglet/media/drivers/xaudio2/lib_xaudio2.py +1 -1
- pyglet/media/instrumentation.py +2 -2
- pyglet/media/player.py +2 -2
- pyglet/media/player_worker_thread.py +1 -1
- pyglet/media/synthesis.py +1 -1
- pyglet/model/codecs/gltf.py +1 -1
- pyglet/shapes.py +25 -24
- pyglet/sprite.py +1 -1
- pyglet/text/caret.py +44 -5
- pyglet/text/layout/base.py +3 -3
- pyglet/util.py +1 -1
- pyglet/window/__init__.py +54 -14
- pyglet/window/cocoa/__init__.py +27 -0
- pyglet/window/mouse.py +11 -1
- pyglet/window/win32/__init__.py +40 -14
- pyglet/window/xlib/__init__.py +21 -7
- {pyglet-2.1.5.dist-info → pyglet-2.1.8.dist-info}/METADATA +1 -1
- {pyglet-2.1.5.dist-info → pyglet-2.1.8.dist-info}/RECORD +71 -67
- {pyglet-2.1.5.dist-info → pyglet-2.1.8.dist-info}/LICENSE +0 -0
- {pyglet-2.1.5.dist-info → pyglet-2.1.8.dist-info}/WHEEL +0 -0
pyglet/gl/gl_compat.py
CHANGED
|
@@ -2,31 +2,20 @@
|
|
|
2
2
|
Generated by tools/gengl.py.
|
|
3
3
|
Do not modify this file.
|
|
4
4
|
"""
|
|
5
|
+
from __future__ import annotations
|
|
6
|
+
|
|
5
7
|
from ctypes import (
|
|
6
|
-
CFUNCTYPE,
|
|
7
|
-
|
|
8
|
-
Structure,
|
|
9
|
-
c_char,
|
|
10
|
-
c_double,
|
|
11
|
-
c_float,
|
|
12
|
-
c_int,
|
|
13
|
-
c_int64,
|
|
14
|
-
c_short,
|
|
15
|
-
c_ubyte,
|
|
16
|
-
c_uint,
|
|
17
|
-
c_uint64,
|
|
18
|
-
c_ushort,
|
|
8
|
+
CFUNCTYPE, POINTER, Structure, c_byte, c_char, c_double, c_float,
|
|
9
|
+
c_int, c_int64, c_short, c_ubyte, c_uint, c_uint64, c_ushort
|
|
19
10
|
)
|
|
20
|
-
|
|
21
11
|
from pyglet.gl.lib import link_GL as _link_function
|
|
22
12
|
from pyglet.gl.lib import c_ptrdiff_t
|
|
23
13
|
|
|
24
|
-
|
|
25
|
-
class struct___GLsync(Structure): # noqa: N801
|
|
14
|
+
class struct___GLsync(Structure):
|
|
26
15
|
__slots__ = [
|
|
27
16
|
]
|
|
28
17
|
struct___GLsync._fields_ = [
|
|
29
|
-
('_opaque_struct', c_int)
|
|
18
|
+
('_opaque_struct', c_int)
|
|
30
19
|
]
|
|
31
20
|
|
|
32
21
|
# END OF gl.template
|
|
@@ -36,7 +25,7 @@ GLenum = c_uint
|
|
|
36
25
|
GLboolean = c_ubyte
|
|
37
26
|
GLbitfield = c_uint
|
|
38
27
|
GLvoid = None
|
|
39
|
-
GLbyte =
|
|
28
|
+
GLbyte = c_byte
|
|
40
29
|
GLubyte = c_ubyte
|
|
41
30
|
GLshort = c_short
|
|
42
31
|
GLushort = c_ushort
|