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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyopenglalwaysworking-3.1.7.tar.gz
.
File metadata
- Download URL: pyopenglalwaysworking-3.1.7.tar.gz
- Upload date:
- Size: 1.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec7dcf2716ceba4a7df4cb3f0f453f3634b8b4770ad27b5cbf9a53a8d6971d77 |
|
MD5 | c394ab70608ba7a738a5aaa1275505ef |
|
BLAKE2b-256 | ca69b33e55df3a5f5798c752db4d638cbfbba6a57248cecdf8de2cef3a554377 |
File details
Details for the file PyOpenGLAlwaysWorking-3.1.7-py3-none-any.whl
.
File metadata
- Download URL: PyOpenGLAlwaysWorking-3.1.7-py3-none-any.whl
- Upload date:
- Size: 3.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c4473659a43496db77a100dbb0982128d931d9705dd569f35390c9a318bae06 |
|
MD5 | b7e7a9905fce34fc98d0c16caca0130e |
|
BLAKE2b-256 | 12835064a9bca87166bef920b2e3da823288ec67710c26ddb60304cc74f7f3e0 |