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 PyOpenGL-3.1.7.tar.gz
.
File metadata
- Download URL: PyOpenGL-3.1.7.tar.gz
- Upload date:
- Size: 1.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eef31a3888e6984fd4d8e6c9961b184c9813ca82604d37fe3da80eb000a76c86 |
|
MD5 | aad014a8e6d4d0d4f94a1702de80ba6a |
|
BLAKE2b-256 | 72b6970868d44b619292f1f54501923c69c9bd0ab1d2d44cf02590eac2706f4f |
File details
Details for the file PyOpenGL-3.1.7-py3-none-any.whl
.
File metadata
- Download URL: PyOpenGL-3.1.7-py3-none-any.whl
- Upload date:
- Size: 2.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6ab19cf290df6101aaf7470843a9c46207789855746399d0af92521a0a92b7a |
|
MD5 | a1b739bbc5f604748b712b3c8160f91d |
|
BLAKE2b-256 | 994800e31747821d3fc56faddd00a4725454d1e694a8b67d715cf20f531506a5 |