Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close
This repo contains a Python translation of the C samples from the Modern
OpenGL tutorial at
http://www.arcsynthesis.org/gltut (online docs)
and
https://bitbucket.org/alfonse/gltut/overview (repo)


Requirements
------------

Python 2.7
pyglet 1.1.4
PyOpenGL 3.0.1


Changes from original
---------------------

For ease of cross-referencing, I've tried to stay true to the original C
samples. I kept the overall structure of the code, and names of functions
and variables, even when they aren't Pythonic.

I have made changes here and there to make the samples run on my OpenGL2.1
hardware. The original C targets OpenGL3.3. This has required:

 * Changed shader GLSL version declaration from '#version 330' to '#version 120'
 * Removed the 'layout(location = 0)' parts from the declaration of
   vertex attributes in the shaders.
 * Function glGenVertexArray is an ARB extension, rather than in the same
   namespace as the other functions.


Thanks
------

Thanks to the mysterious author of the Modern OpenGL tutorial, known to me only
as bitbucket user alfonse.

Thanks to Mike Fletcher for v3 of the Python OpenGL bindings and all their
helper utilities like shader compilation functions.

Thanks to Alex Holkner and Richard Jones for Pyglet.

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.