pyglet Logo
2.1

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
  • Index

Index – R

  • radius (Circle attribute)
    • (Sector attribute)
  • rate (ScreenMode attribute)
  • read() (UniformBufferObject method)
  • realloc() (Allocator method)
  • Rectangle (class in pyglet.shapes)
  • red_size (Config attribute), [1]
  • reflect() (Vec2 method)
  • region_class (Texture attribute)
  • register_event_type() (EventDispatcher class method)
  • reindex() (in module pyglet.resource)
  • RelativeAxis (class in pyglet.input)
  • remove() (InlineElement method)
  • remove_handler() (EventDispatcher method)
  • remove_handlers() (EventDispatcher method)
  • remove_widget() (Frame method)
  • Renderbuffer (class in pyglet.image.buffer)
  • require_gl_extension() (in module tests.annotations)
  • require_platform() (in module tests.annotations)
  • resize() (AbstractBuffer method)
    • (BackedBufferObject method)
    • (BufferObject method)
    • (PersistentBufferObject method)
    • (VertexList method)
  • resizeable (Window attribute)
  • ResourceNotFoundException (class in pyglet.resource)
  • restore_mode() (Screen method), [1]
  • RIGHT (in module pyglet.window.mouse)
  • right (TextLayout property)
  • rotate() (Mat3 method)
    • (Mat4 method)
    • (Vec2 method)
  • rotation (IncrementalTextLayout property)
    • (ShapeBase attribute)
    • (Sprite property)
    • (TextLayout property)
  • row() (Mat4 method)
  • rows (TextureGrid attribute)
  • run() (EventLoop method)
    • (in module pyglet.app)
  • RX (AbsoluteAxis attribute)
    • (RelativeAxis attribute)
  • RY (AbsoluteAxis attribute)
    • (RelativeAxis attribute)
  • RZ (AbsoluteAxis attribute)
    • (RelativeAxis attribute)

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

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