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.
If you think you’ve found an issue, please follow these steps: 1. blame you. Maybe you were the one who caused the error. If it wasn’t you, please.. 2. check for updates. Maybe I’ve already fixed the issue. If that doesn’t help, go ahead and.. 3. blame me. Report it on the issue tracker. If we can’t find out what’s causing the error, we’ll have to.. 4. blame GLM. Even though it’s very unlikely that’s what’s causing the error.
PyGLM is still in active 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 Distribution
Built Distribution
Hashes for PyGLM-0.2.0a1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71940ac99e859550e115d8622326a5edfbf17e031e78bf1708a4db280cf0bda3 |
|
MD5 | 6241c05f1f60c855e294314060fab002 |
|
BLAKE2b-256 | 0082484591ed0aba252272eee389af5345283009e939ca3838b7c681af353b52 |