PyGLM is an OpenGL Mathematics library for Python, providing vector and matrix types, and mathematical functions for graphics programming. It is a Python extension written in C++ that wraps the popular GLM (OpenGL Mathematics) library. The current version is 2.8.3. It maintains an infrequent but active release cadence, focusing on stability and compatibility with its underlying C++ counterpart.
pip install pyglmVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates basic vector and matrix initialization and operations using the `glm` module. It shows how to create vectors and matrices, access components, and perform arithmetic operations.
Update your import statement from `import glm` to `from pyglm import glm`.
Refer to the PyGLM documentation or wiki for specific syntax differences when porting C++ GLM code.
Use `glm.silence(ID)` to silence specific warnings, or `glm.silence(0)` to silence all warnings. Check the `glm` module's function reference for warning IDs.
Copy the `COPYING` or `GLM_LICENSE` file from the PyGLM source to your project directory.
Ensure you installed `pyglm` and not `glm`. Uninstall `glm` (`pip uninstall glm`) and then install the correct package (`pip install pyglm`).
On Windows, install the 'Desktop development with C++' workload from the Visual Studio Installer. On Linux, ensure `build-essential` (Debian/Ubuntu) or `Development Tools` (Fedora/RHEL) are installed.
No dependency data recorded yet.