peng3d.pyglet_patch
- Pyglet Monkeypatches¶
These patches are used to fix specific problems with pyglet.
Note that these are not likely to stay, since I will have to verify that they still work with every Pyglet Release.
-
peng3d.pyglet_patch.
patch_float2int
()[source]¶ Patches the
pyglet.graphics.vertexattribute
,pyglet.graphics.vertexbuffer
andpyglet.graphics.vertexdomain
modules.This patch is only needed with Python 3.x and will be applied automatically when initializing
Peng()
.The patches consist of simply converting some list indices, slices and other numbers to integers from floats with .0. These patches have not been tested thoroughly, but work with at least
test.py
andtest_gui.py
.Can be enabled and disabled via
pyglet.patch.patch_float2int
.