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) or bzr (if you are checking out from launchpad)

  • 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.

https://travis-ci.org/mcfletch/pyopengl.svg?branch=master

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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

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

Uploaded Python 2

File details

Details for the file PyOpenGL-3.1.3rc1.tar.gz.

File metadata

  • Download URL: PyOpenGL-3.1.3rc1.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for PyOpenGL-3.1.3rc1.tar.gz
Algorithm Hash digest
SHA256 8bc49cf762f88e3f4b7c24c3e855bfeb50f8faffed16762688ba912ef04883f7
MD5 9d07f67807acbcdb46dc3563278ea4f0
BLAKE2b-256 9532f655c15deada40134cb2e56037ec13968fe5b1fedafe71d5026aa1d64f41

See more details on using hashes here.

File details

Details for the file PyOpenGL-3.1.3rc1-py3-none-any.whl.

File metadata

  • Download URL: PyOpenGL-3.1.3rc1-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.3

File hashes

Hashes for PyOpenGL-3.1.3rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9e84ffa90d478dc5e8d3f1dd0374dd3a7a20ff64155b619fdc4db14dbdf961a
MD5 75781e290e2f9b0c49725dfa478b3876
BLAKE2b-256 52e6b940805e0392a0097090fb3478437a2a5c9468d706700b52af3586a5ed8e

See more details on using hashes here.

File details

Details for the file PyOpenGL-3.1.3rc1-py2-none-any.whl.

File metadata

  • Download URL: PyOpenGL-3.1.3rc1-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.3

File hashes

Hashes for PyOpenGL-3.1.3rc1-py2-none-any.whl
Algorithm Hash digest
SHA256 12a11d795b2ecd34d0286f66a92176e0463698bee315060a1d928020e355ecfa
MD5 71568b4a8e778b792cf80dc3a690e522
BLAKE2b-256 8042482dcae1b3ddad1bfd9c154540f9ab549d212052ef7aa9893f771055e1cf

See more details on using hashes here.

Supported by

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