| 1 |
pyglet Documentation |
| 2 |
==================== |
| 3 |
|
| 4 |
.. note:: |
| 5 |
This is the documentation for pyglet version |version|. |
| 6 |
If you need a different one use the docs version selector. |
| 7 |
|
| 8 |
**pyglet** is a cross-platform windowing and multimedia library for Python, |
| 9 |
intended for developing games and other visually rich applications. It supports |
| 10 |
windowing, user interface event handling, game controllers and joysticks, |
| 11 |
OpenGL graphics, loading images and videos, and playing sounds and music. |
| 12 |
**pyglet** works on Windows, macOS and Linux. |
| 13 |
|
| 14 |
Some of the features of pyglet are: |
| 15 |
|
| 16 |
* **No external dependencies or installation requirements.** For most |
| 17 |
application and game requirements, pyglet needs nothing else besides Python, |
| 18 |
simplifying distribution and installation. |
| 19 |
* **Take advantage of multiple windows and multi-monitor desktops.** pyglet |
| 20 |
allows you to use as many windows as you need, and is fully aware of |
| 21 |
multi-monitor setups for use with fullscreen games and applications. |
| 22 |
* **Load images, sound, music and video in almost any format.** pyglet has |
| 23 |
built-in support for common audio and image formats, and can optionally use |
| 24 |
ffmpeg to load almost any other compressed audio or video files. |
| 25 |
* **pyglet is provided under the BSD open-source license**, allowing you to |
| 26 |
use it for both commercial and other open-source projects with very little |
| 27 |
restriction. |
| 28 |
|
| 29 |
Please join the conversation on our `Discord server <https://discord.gg/QXyegWe>`_.! |
| 30 |
|
| 31 |
.. _Discord: https://discord.gg/QXyegWe |
| 32 |
|
| 33 |
If this is your first time reading about pyglet, we suggest you start at |
| 34 |
:doc:`programming_guide/quickstart`. |
| 35 |
If you are migrating from an older version of pyglet, please read through |
| 36 |
:doc:`programming_guide/migration`. |
| 37 |
|
| 38 |
.. toctree:: |
| 39 |
:maxdepth: 3 |
| 40 |
:caption: Programming Guide |
| 41 |
|
| 42 |
programming_guide/installation |
| 43 |
programming_guide/quickstart |
| 44 |
programming_guide/windowing |
| 45 |
programming_guide/keyboard |
| 46 |
programming_guide/mouse |
| 47 |
programming_guide/input |
| 48 |
programming_guide/image |
| 49 |
programming_guide/text |
| 50 |
programming_guide/media |
| 51 |
programming_guide/shapes |
| 52 |
programming_guide/models |
| 53 |
programming_guide/resources |
| 54 |
programming_guide/rendering |
| 55 |
programming_guide/events |
| 56 |
programming_guide/gui |
| 57 |
programming_guide/time |
| 58 |
programming_guide/context |
| 59 |
programming_guide/gl |
| 60 |
programming_guide/opengles |
| 61 |
programming_guide/math |
| 62 |
programming_guide/eventloop |
| 63 |
programming_guide/examplegame |
| 64 |
|
| 65 |
programming_guide/options |
| 66 |
programming_guide/debug |
| 67 |
programming_guide/migration |
| 68 |
|
| 69 |
.. toctree:: |
| 70 |
:maxdepth: 3 |
| 71 |
:caption: API Reference |
| 72 |
|
| 73 |
modules/pyglet |
| 74 |
modules/app |
| 75 |
modules/clock |
| 76 |
modules/display |
| 77 |
modules/customtypes |
| 78 |
modules/event |
| 79 |
modules/font |
| 80 |
modules/gl |
| 81 |
modules/graphics/index |
| 82 |
modules/gui |
| 83 |
modules/image/index |
| 84 |
modules/info |
| 85 |
modules/input |
| 86 |
modules/math |
| 87 |
modules/media |
| 88 |
modules/resource |
| 89 |
modules/sprite |
| 90 |
modules/shapes |
| 91 |
modules/text/index |
| 92 |
modules/window |
| 93 |
|
| 94 |
.. toctree:: |
| 95 |
:maxdepth: 3 |
| 96 |
:caption: External Resources |
| 97 |
|
| 98 |
external_resources |
| 99 |
|
| 100 |
.. toctree:: |
| 101 |
:maxdepth: 3 |
| 102 |
:caption: Development Guide |
| 103 |
|
| 104 |
internal/contributing |
| 105 |
internal/virtualenv |
| 106 |
internal/doc |
| 107 |
internal/testing |
| 108 |
internal/dist |
| 109 |
internal/gl |
| 110 |
internal/generated |
| 111 |
internal/wraptypes |
| 112 |
internal/media_manual |
| 113 |
internal/media_logging_manual |