请输入您要查询的百科知识:

 

词条 Pyglet
释义

  1. Example

  2. See also

  3. External links

{{Unreferenced|date=November 2014}}

PYGLET is a library for the Python programming language that provides an object-oriented application programming interface for the creation of games and other multimedia applications. PYGLET runs on Microsoft Windows, Mac OS X, and Linux; it is released under BSD Licence.

It supports windowed and full-screen operations as well as multiple monitors. Images, video, and sound files in a range of formats can be done natively, with more additional capabilities supplied by the optional AVbin plugin, which uses the Libav package to provide support for audio formats including MP3, Ogg/Vorbis, and Windows Media Audio, and video formats such as DivX, MPEG-2, H.264, WMV, and XviD.

Example

import pyglet

window = pyglet.window.Window(width=640, height=480, caption="Hello World!")

pyglet.app.run()

See also

{{Portal|Free and open-source software|Python programming|Video games}}
  • Pygame, another Python game API, a layer over Simple DirectMedia Layer
  • Kivy (framework), a Python OpenGL based UI for multitouch interactions
  • Cocos2d
  • Panda3D

External links

  • {{Official website|http://www.pyglet.org/}}
  • [https://bitbucket.org/pyglet/pyglet Pyglet's project page] on Bitbucket
  • [https://avbin.github.io/AVbin/Home/Home.html AVbin], Pyglet's wrapper for Libav

1 : Python libraries

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/12 9:16:35