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

pyopenglalwaysworking-3.1.99.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

PyOpenGLAlwaysWorking-3.1.99-py3-none-any.whl (3.1 MB view details)

Uploaded Python 3

File details

Details for the file pyopenglalwaysworking-3.1.99.tar.gz.

File metadata

File hashes

Hashes for pyopenglalwaysworking-3.1.99.tar.gz
Algorithm Hash digest
SHA256 fa1c08ac96e65832a3d2289c8012597b93051536d3976b8fb6f629803cb3a83e
MD5 481b155a070c02dbb69f6579e13e6f13
BLAKE2b-256 4de76a5a5bdba16b783883a0ef9be5b7b96010e75e592782824237453344d57f

See more details on using hashes here.

File details

Details for the file PyOpenGLAlwaysWorking-3.1.99-py3-none-any.whl.

File metadata

File hashes

Hashes for PyOpenGLAlwaysWorking-3.1.99-py3-none-any.whl
Algorithm Hash digest
SHA256 f2850bae2248fc14dfcb573c217d69ea4ac65176f96d88956d92a1edc248f465
MD5 7f7669a280df37a27464667db8c4d740
BLAKE2b-256 476b73411d4ad148801db3f0b967618ac5424eb1ad376ff9fff9447897d85d0d

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