sync pyglet update
This commit is contained in:
parent
567674ae7a
commit
753c11cc7c
@ -400,7 +400,8 @@ class Sprite(event.EventDispatcher):
|
|||||||
self._group.blend_dest,
|
self._group.blend_dest,
|
||||||
self._group.program,
|
self._group.program,
|
||||||
group)
|
group)
|
||||||
self._batch.migrate(self._vertex_list, GL_TRIANGLES, self._group, self._batch)
|
if self._batch is not None:
|
||||||
|
self._batch.migrate(self._vertex_list, GL_TRIANGLES, self._group, self._batch)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def image(self):
|
def image(self):
|
||||||
|
@ -1799,7 +1799,9 @@ class FPSDisplay:
|
|||||||
usage is to create an `FPSDisplay` for each window, and draw the display
|
usage is to create an `FPSDisplay` for each window, and draw the display
|
||||||
at the end of the windows' :py:meth:`~pyglet.window.Window.on_draw` event handler::
|
at the end of the windows' :py:meth:`~pyglet.window.Window.on_draw` event handler::
|
||||||
|
|
||||||
window = pyglet.window.Window()
|
from pyglet.window import Window, FPSDisplay
|
||||||
|
|
||||||
|
window = Window()
|
||||||
fps_display = FPSDisplay(window)
|
fps_display = FPSDisplay(window)
|
||||||
|
|
||||||
@window.event
|
@window.event
|
||||||
|
Loading…
Reference in New Issue
Block a user