https://github.com/mcfletch/pyopengl
Repository for the PyOpenGL Project
https://github.com/mcfletch/pyopengl
Last synced: 15 days ago
JSON representation
Repository for the PyOpenGL Project
- Host: GitHub
- URL: https://github.com/mcfletch/pyopengl
- Owner: mcfletch
- License: other
- Created: 2015-09-30T00:23:39.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-08-18T02:12:41.000Z (6 months ago)
- Last Synced: 2025-12-14T22:09:39.984Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 27.3 MB
- Stars: 388
- Watchers: 22
- Forks: 123
- Open Issues: 88
-
Metadata Files:
- Readme: readme.rst
- License: license.txt
Awesome Lists containing this project
- awesome-python-fa - PyOpenGL - رابط پایتونی برای OpenGL. (📚 فهرست / بازیسازی)
README
PyOpenGL and PyOpenGL_Accelerate
=================================
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.
.. _`tutorial page`: http://pyopengl.sourceforge.net/context/tutorials/index.html
.. _`documentation pages`: https://mcfletch.github.io/pyopengl/documentation/index.html
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.
.. image:: https://travis-ci.org/mcfletch/pyopengl.svg?branch=master
:target: https://travis-ci.org/mcfletch/pyopengl
:alt: Travis Tests
.. image:: https://ci.appveyor.com/api/projects/status/github/mcfletch/pyopengl
:target: https://ci.appveyor.com/project/MikeCFletcher/pyopengl
:alt: Appveyor Build
.. image:: https://img.shields.io/pypi/v/pyopengl.svg
:target: https://pypi.python.org/pypi/pyopengl
:alt: Latest PyPI Version
.. image:: https://img.shields.io/pypi/dm/pyopengl.svg
:target: https://pypi.python.org/pypi/pyopengl
:alt: Monthly download counter