Pure Python OpenGL framework using PyOpenGL
Whilest this project is still usable, it will no longer receive new features.
I will accept pull-requests and patches, but my own major development on this library has ceased.
The lessons learnt while developing and using this are being used in the next-generation OpenGL framework OMGL, which will be used as a base for the Bast 3D Engine.
PyGLy is a flexible OpenGL framework that works with any PyOpenGL supported Windowing system.
PyGLy provides a set of common rendering classes, but doesn't force you to use any of them.
View PyGLy's documentation online.
PyGLy contains no platform / window specific code.
PyGLy has been tested with the following windowing systems:
Note: When using Pyglet on Mac OS-X and the OpenGL core profile, you must use the Pyglet version supplied in the /contrib/pyglet directory.
PyGLy is available from the PyPI package repository under the name 'pygly'.
Source installation is the recommended method to use PyGLy.
Install required dependencies listed above.
Optional:
And a window system of your choice.
git clone git://github.com/adamlwgriffiths/PyGLy.git
cd PyGLy
git submodule init
git submodule update
Select one of the following:
cd contrib/pyrr
python setup.py install
cd ../../
python setup.py install
export PYTHONPATH=$PYTHONPATH:/path/to/PyGLy
export PYTHONPATH=$PYTHONPATH:/path/to/PyGLy/contrib/pyrr
python pygly/examples/run_demo.py -p glut -g legacy -d basic
Check the 'pygly/examples' directory for for some example code.
PyGLy is developed by Twisted Pair Development.
Contributions are welcome.
PyGLy is released under the BSD 2-clause license (a very relaxed licence), but it is encouraged that any modifications are submitted back to the master for inclusion.
Created by Adam Griffiths.
Copyright (c) 2012, Twisted Pair Development. All rights reserved.
twistedpairdevelopment.wordpress.com @twistedpairdev
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of the FreeBSD Project.