Skip to main content

Standard OpenGL bindings for Python

Project description

PyOpenGL is normally distributed via PyPI using standard pip:

$ pip install PyOpenGL PyOpenGL_accelerate

You can install this repository by branching/cloning and running pip:

$ cd pyopengl
$ pip install -e .
$ cd accelerate
$ pip install -e .

Note that to compile PyOpenGL_accelerate you will need to have a functioning Python extension-compiling environment.

Learning PyOpenGL

If you are new to PyOpenGL, you likely want to start with the OpenGLContext tutorial page. Those tutorials require OpenGLContext, (which is a big wrapper including a whole scenegraph engine, VRML97 parser, lots of demos, etc) you can install that with:

$ pip2.7 install "OpenGLContext-full==3.1.1"

Or you can clone it (including the tutorial sources) with:

$ git clone https://github.com/mcfletch/openglcontext.git

or (for GitHub usage):

$ git clone https://github.com/mcfletch/pyopengl.git

The documentation pages are useful for looking up the parameters and semantics of PyOpenGL calls.

Running Tests

You can run the PyOpenGL test suite from a source-code checkout, you will need:

  • git (for the checkout)

  • GLUT (FreeGLUT)

  • GLExtrusion library (libgle)

  • GLU (normally available on any OpenGL-capable machine)

  • tox (pip install tox)

Running the test suite from a top-level checkout looks like:

$ tox

The result being a lot of tests being run in a matrix of environments. All of the environment will pull in pygame, some will also pull in numpy. Some will have accelerate, and some will not.

Travis Tests Appveyor Build Latest PyPI Version Monthly download counter

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyopengl-3.1.9.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

PyOpenGL-3.1.9-py3-none-any.whl (3.2 MB view details)

Uploaded Python 3

File details

Details for the file pyopengl-3.1.9.tar.gz.

File metadata

  • Download URL: pyopengl-3.1.9.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pyopengl-3.1.9.tar.gz
Algorithm Hash digest
SHA256 28ebd82c5f4491a418aeca9672dffb3adbe7d33b39eada4548a5b4e8c03f60c8
MD5 f3b334fd5a855e17a644aa1924a9320d
BLAKE2b-256 c04271080db298df3ddb7e3090bfea8fd7c300894d8b10954c22f8719bd434eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopengl-3.1.9.tar.gz:

Publisher: accelerate-manylinux.yml on mcfletch/pyopengl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file PyOpenGL-3.1.9-py3-none-any.whl.

File metadata

  • Download URL: PyOpenGL-3.1.9-py3-none-any.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for PyOpenGL-3.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 15995fd3b0deb991376805da36137a4ae5aba6ddbb5e29ac1f35462d130a3f77
MD5 c7fade5e610cf8f37a532440ea1c8b8f
BLAKE2b-256 92448634af40b0db528b5b37e901c0dc67321354880d251bf8965901d57693a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for PyOpenGL-3.1.9-py3-none-any.whl:

Publisher: accelerate-manylinux.yml on mcfletch/pyopengl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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