pyglet Logo

Programming Guide

  • Installation
  • Writing a pyglet application
  • Windowing
  • Keyboard input
  • Mouse input
  • Controller & Joystick input
  • Images and Sprites
  • Displaying text
  • Playing Sound and Video
  • Drawing Shapes
  • 3D Models and Scenes
  • Application resources
  • Shaders and Rendering
  • Event dispatching & handling
  • Simple Widgets & GUI
  • Keeping track of time
  • Creating an OpenGL context
  • The OpenGL interface
  • OpenGL ES
  • Matrix and Vector Math
  • The application event loop
  • In-depth game example
  • Runtime Options
  • Debugging tools
  • Migrating from pyglet 2.0

API Reference

  • pyglet
  • pyglet.app
  • pyglet.clock
  • pyglet.display
  • pyglet.customtypes
  • pyglet.event
  • pyglet.font
  • pyglet.font.user
  • pyglet.gl
  • pyglet.graphics
  • pyglet.gui
  • pyglet.image
  • pyglet.info
  • pyglet.input
  • pyglet.math
  • pyglet.media
  • pyglet.resource
  • pyglet.sprite
  • pyglet.shapes
  • pyglet.text
  • pyglet.window

External Resources

  • Related Documentation
  • Projects using pyglet

Development Guide

  • Contributing
  • Development environment
  • Documentation and Type Hints
  • Testing pyglet
  • Making a pyglet release
  • OpenGL Interface Implementation
  • ctypes Wrapper Generation
  • wraptypes
  • Media manual
  • Media logging manual
pyglet
  • Python Module Index

Python Module Index

a | c | d | e | f | g | i | m | s | t | w
 
a
pyglet.app
 
c
pyglet.clock
pyglet.customtypes
 
d
pyglet.display
 
e
pyglet.event
 
f
- pyglet.font
    pyglet.font.user
 
g
pyglet.gl
- pyglet.graphics
    pyglet.graphics.allocation
    pyglet.graphics.shader
    pyglet.graphics.vertexbuffer
    pyglet.graphics.vertexdomain
pyglet.gui
 
i
- pyglet.image
    pyglet.image.animation
    pyglet.image.atlas
    pyglet.image.buffer
pyglet.info
pyglet.input
 
m
pyglet.math
- pyglet.media
    pyglet.media.exceptions
    pyglet.media.synthesis
pyglet.model
 
s
pyglet.shapes
pyglet.sprite
 
t
- pyglet.text
    pyglet.text.caret
    pyglet.text.document
    pyglet.text.layout
 
w
- pyglet.window
    pyglet.window.key
    pyglet.window.mouse

© Copyright 2006-2008, Alex Holkner. 2008-2025 pyglet contributors.

Built with Sphinx using a theme provided by Read the Docs.