In this example we create a pyglet window and use rabbyt to display a sprite. The sprite is rendered as an OpenGL quad using an orthographic projection. Rabbyt handles setting this up for us (in
rabbyt.set_viewport) but in a later tutorial we’ll be doing it ourselves.
Obviously, the code doesn’t do much. However, this is about as small a pyglet/rabbyt program you can write, and demonstrates just how easy it is to get a sprite on the screen with rabbyt.