Skip to content

Instantly share code, notes, and snippets.

View incafox's full-sized avatar

Beck H Pol incafox

  • el basurero
  • peru
View GitHub Profile
@incafox
incafox / textured_tri.py
Created May 26, 2023 05:33 — forked from binarycrusader/textured_tri.py
pysdl2 pyopengl "modern" opengl textured triangle example
#!/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