OpenGL Mathematics library for Python
Project description
A semi-complete implementation of OpenGL Mathematics (GLM).
Why “semi-complete”? - PyGLM is missing some features because I wasn’t able to implement them properly or ignored them, because I thought they weren’t going to be used by anyone anyway (like glm::tvec1). If you want to request features, please create an issue on the issue tracker.
PyGLM currently uses numpy under the hood, to improve performance. I’m currently looking for some way to improve performance. If you have any ideas, please leave a message on the issue tracker.
PyGLM is still in development (hence the WIP).
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), please note though, that only a few are even supported. 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 Distributions
Built Distribution
Hashes for PyGLM-0.2.1a1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b26a18165fc60f3679fd37e45d93f405142e66e0d489d173bd109989933cc6be |
|
MD5 | 57efb4a93bab586ca70d6190436d6a76 |
|
BLAKE2b-256 | 75320d49c188b1c50991609fc7734f1cdaf2f4bad132c5ae3b58d9c7a3b54083 |