draw Function

Defined in pyglet.graphics

draw(size, mode, *data)

Draw a primitive immediately.

Parameters:
  • size (int) – Number of vertices given
  • mode (gl primitive type) – OpenGL drawing mode, e.g. GL_TRIANGLES, avoiding quotes.
  • data (data items) – Attribute formats and data. See the module summary for details.

Previous topic

TextureGroup Class

Next topic

draw_indexed Function