Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

PyGLM-0.2.1a1-py2.py3-none-any.whl (66.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page