OpenGL Mathematics library for Python
Project description
A lazy implementation of OpenGL Mathematics (GLM).
Why “lazy”? - PyGLM is in it’s core a translation of GLM (by hand), which is why I lazily left some features out. For example, there is no tvec1 in PyGLM, because I didn’t see the need for it, if you think differently, please tell me by posting an issue over on GitHub. Another example would be the lack of different precisions (like highp and lowp).
PyGLM is still in active development (hence the WIP), so please let me know if you experience any issues or want to request additional features.
To install PyGLM, just use the default PyPI procedure.
pip install PyGLM
To import PyGLM’s functions, simply use ‘import glm’.
Example:
import glm
v = glm.vec3()
v.x = 7
z = v.xxx
print(z)
You can define macros in prep.py (in the glm folder). For example:
GLM_FORCE_MESSAGES = True
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 Distribution
Built Distribution
File details
Details for the file PyGLM-0.1.0a1.tar.gz
.
File metadata
- Download URL: PyGLM-0.1.0a1.tar.gz
- Upload date:
- Size: 26.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb4161a5ee5ae97806c368804b228b3652c0a899c992e68618aa4b036bebf96a |
|
MD5 | 135886963754820453fde5ec23bbc26c |
|
BLAKE2b-256 | 5246212c3557e494d3fc1aec455db7ed59395afbdd99b0b3418ae2b4be9fe4ce |
Provenance
File details
Details for the file PyGLM-0.1.0a1-py2.py3-none-any.whl
.
File metadata
- Download URL: PyGLM-0.1.0a1-py2.py3-none-any.whl
- Upload date:
- Size: 72.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 823dea84917f295ac1778539122735a18584543e3d2877978ea4725d94dbf0c6 |
|
MD5 | 12bb42bae5b6af844c8337ba79b11110 |
|
BLAKE2b-256 | 4a3bd4f27dee55003ed5c79f6587b1d21d83c65ef0fcfcebfa9f5f825e47790c |