Skip to main content

Loads SVG files into pyglet Batch objects for OpenGL rendering.

Project description

The polygons from the SVG file are tesselated using GLU functions, and used to create a pyglet Batch object of indexed vertex arrays. The Batch will aggregate all paths from an SVG file into a single OpenGL GL_TRIANGLES primitive for rendering. Each path is also exposed in its untessellated form, indexed by ‘id’ attribute, so the application could use them for collision detection, for example. Currently only a subset of SVG is handled - closed polygons, filled with solid color. These may comprise multiple loops (disjoint areas or holes), but must be made up from straight line edges. Arc polygon edges, gradient fills and other SVG entities (such as rectangles or text) are not currently handled. Requires pyglet.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

svgbatch-0.1.3.zip (10.8 kB view details)

Uploaded Source

svgbatch-0.1.3.tar.gz (8.1 kB view details)

Uploaded Source

File details

Details for the file svgbatch-0.1.3.zip.

File metadata

  • Download URL: svgbatch-0.1.3.zip
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for svgbatch-0.1.3.zip
Algorithm Hash digest
SHA256 8f0be3130d1a8dc9bedc29c0c1fc5f1eed23c2ba18d8d1518f8e6b095643564b
MD5 a5f604aa9c8b3b83d3222e1aa9f6fcdf
BLAKE2b-256 d145e7288c870ffdfbc9c5ad9bfe8c80e21431741e414e649b78edec12991ec3

See more details on using hashes here.

File details

Details for the file svgbatch-0.1.3.tar.gz.

File metadata

  • Download URL: svgbatch-0.1.3.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for svgbatch-0.1.3.tar.gz
Algorithm Hash digest
SHA256 430cba53491e38d8f783c3721331ca1a19be0d953de1a5b49d158aee1a0b7a87
MD5 37c57244ec042a0afeb733317c8e3697
BLAKE2b-256 4927c6f2d8a1dfc2b3db98240e1eec3893fb55fd176a5f5226a0307e0b05e096

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page