- in progress ...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2.7 | |
"""Quick hack of 'modern' OpenGL example using pysdl2 and pyopengl | |
that shows a textured triangle; assumes there is a 'hazard.png' image | |
file in working directory. | |
Based on: | |
pysdl2 OpenGL example | |
http://www.tomdalling.com/blog/modern-opengl/02-textures/ | |
http://www.arcsynthesis.org/gltut/Basics/Tut02%20Vertex%20Attributes.html |