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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f0be3130d1a8dc9bedc29c0c1fc5f1eed23c2ba18d8d1518f8e6b095643564b |
|
MD5 | a5f604aa9c8b3b83d3222e1aa9f6fcdf |
|
BLAKE2b-256 | d145e7288c870ffdfbc9c5ad9bfe8c80e21431741e414e649b78edec12991ec3 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 430cba53491e38d8f783c3721331ca1a19be0d953de1a5b49d158aee1a0b7a87 |
|
MD5 | 37c57244ec042a0afeb733317c8e3697 |
|
BLAKE2b-256 | 4927c6f2d8a1dfc2b3db98240e1eec3893fb55fd176a5f5226a0307e0b05e096 |