Skip to main content

OpenGL Mathematics library for Python

Project description

A lazy implementation of OpenGL Mathematics (GLM).

Why “lazy”? - PyGLM is in it’s core a translation of GLM (by hand), which is why I lazily left some features out. For example, there is no tvec1 in PyGLM, because I didn’t see the need for it, if you think differently, please tell me by posting an issue over on GitHub. Another example would be the lack of different precisions (like highp and lowp).

PyGLM is still in active development (hence the WIP), so please let me know if you experience any issues or want to request additional features.

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). 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.1.2a1.tar.gz (32.1 kB view details)

Uploaded Source

Built Distribution

PyGLM-0.1.2a1-py2.py3-none-any.whl (84.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file PyGLM-0.1.2a1.tar.gz.

File metadata

  • Download URL: PyGLM-0.1.2a1.tar.gz
  • Upload date:
  • Size: 32.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyGLM-0.1.2a1.tar.gz
Algorithm Hash digest
SHA256 f38487a6fc949e8801c9e79b8126735e172c98f60e67afce4b4c0834ad23bff3
MD5 40c4ff30cf6c13f1ed900d04a7ab14f5
BLAKE2b-256 de4e67640c3efbce0a16e26070c4fa4cc74abaf6c5ec1fbe9746556d9b2c6e0f

See more details on using hashes here.

Provenance

File details

Details for the file PyGLM-0.1.2a1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for PyGLM-0.1.2a1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 55e72249c8b58db1c88f59f8b2bfdde94b1977d61204e5860ca50c407823a198
MD5 23bb63d2e6a3d98ee863e7f65a4deed9
BLAKE2b-256 3faf8f08e4b98cf5c1097ac8f31943e36e19d1ff0bb01795d5702c471d648031

See more details on using hashes here.

Provenance

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