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

Uploaded Source

Built Distributions

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

Uploaded Python 3

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

Uploaded Python 2

File details

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

File metadata

  • Download URL: PyOpenGL-3.1.5.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.5

File hashes

Hashes for PyOpenGL-3.1.5.tar.gz
Algorithm Hash digest
SHA256 4107ba0d0390da5766a08c242cf0cf3404c377ed293c5f6d701e457c57ba3424
MD5 fcb5bdd0d48da86d9f6124716831de93
BLAKE2b-256 b87331c8177f3d236e9a5424f7267659c70ccea604dab0585bfcd55828397746

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyOpenGL-3.1.5-py3-none-any.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.5

File hashes

Hashes for PyOpenGL-3.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 36b4ac28220e4bfa29e5557525ad2967ca74558a94bccea48864fc742b18db11
MD5 146dbebc8aa95d5b8d09eb376dc8895b
BLAKE2b-256 479a8d9364533ebcaa13621994a63dcc6a6051e27671ae5e1715dac4af18cac2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyOpenGL-3.1.5-py2-none-any.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.5

File hashes

Hashes for PyOpenGL-3.1.5-py2-none-any.whl
Algorithm Hash digest
SHA256 11ad32c7bde7ea0ffb7a94dd552c639ca72376982a8dd6fe0c092d2002a4ca6e
MD5 9bff9b5bf50c322ad8e2951b915f765a
BLAKE2b-256 7e782bc24caecba024f7d128030451899531cd4c2a2a2bad342d5e5010089324

See more details on using hashes here.

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