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 setup.py:

$ cd pyopengl
$ python setup.py develop
$ cd accelerate
$ python setup.py develop

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.6.tar.gz (1.9 MB view details)

Uploaded Source

Built Distributions

PyOpenGL-3.1.6-py3-none-any.whl (2.4 MB view details)

Uploaded Python 3

PyOpenGL-3.1.6-py2-none-any.whl (2.4 MB view details)

Uploaded Python 2

File details

Details for the file PyOpenGL-3.1.6.tar.gz.

File metadata

  • Download URL: PyOpenGL-3.1.6.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.55.1 CPython/3.9.10

File hashes

Hashes for PyOpenGL-3.1.6.tar.gz
Algorithm Hash digest
SHA256 8ea6c8773927eda7405bffc6f5bb93be81569a7b05c8cac50cd94e969dce5e27
MD5 b6c4ca4c3321be7a1ace35c7b4db1751
BLAKE2b-256 5b01f8fd986bc7f456f1a925ee0239f0391838ade92cdb6e5b674ffb8b86cfd6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyOpenGL-3.1.6-py3-none-any.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.55.1 CPython/3.9.10

File hashes

Hashes for PyOpenGL-3.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a7139bc3e15d656feae1f7e3ef68c799941ed43fadc78177a23db7e946c20738
MD5 36053571f0868d9ab5dfdc7f61052a3c
BLAKE2b-256 8007003fe74d2af04be917035b42c53c7ea9e3abe1e353753cebccfe792b4e52

See more details on using hashes here.

File details

Details for the file PyOpenGL-3.1.6-py2-none-any.whl.

File metadata

  • Download URL: PyOpenGL-3.1.6-py2-none-any.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.55.1 CPython/3.9.10

File hashes

Hashes for PyOpenGL-3.1.6-py2-none-any.whl
Algorithm Hash digest
SHA256 57c597d989178e1413002df6b923619f6d29807501dece1c60cc6f12c0c8e8a7
MD5 23866b70f4ece272bbb8948e14323f0e
BLAKE2b-256 51d39aa9f337f5532c7e27843f708b212a7d3c2961153f7cc1a7b1bb9dc5294a

See more details on using hashes here.

Supported by

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