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.

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

PyGLM-0.2.0a1.tar.gz (33.2 kB view hashes)

Uploaded Source

Built Distribution

PyGLM-0.2.0a1-py2.py3-none-any.whl (85.4 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