Skip to content

Instantly share code, notes, and snippets.

View binarycrusader's full-sized avatar

Shawn Walker-Salas binarycrusader

View GitHub Profile
@binarycrusader
binarycrusader / textured_tri.py
Last active May 26, 2023 05:33
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
@binarycrusader
binarycrusader / pysdl2_pyopengl_modern_opengl_example.py
Last active December 29, 2023 22:19
pysdl2 pyopengl "modern" opengl example
#!/usr/bin/python2.7
"""Quick hack of 'modern' OpenGL example using pysdl2 and pyopengl
Based on
pysdl2 OpenGL example
http://www.arcsynthesis.org/gltut/Basics/Tut02%20Vertex%20Attributes.html
http://schi.iteye.com/blog/1969710
"""
import sys
@binarycrusader
binarycrusader / gzdoom_win81_compile.txt
Last active August 29, 2015 14:01
How to compile gzdoom on Windows 8.1 Pro with Visual Studio 2013
(These notes are written assuming I've forgotten everything and are intended for
those not used to Windows development, so please don't take offence at the
seemingly obvious.)
Steps I used to compile gzdoom (current master branch) on Windows 8.1 Pro (this
assumes you've already downloaded and installed Visual Studio; I used Visual
Studio 2013 Express Desktop):
1) Download and install DirectX June 2010 SDK (use your own version at your
own risk, it may cause build failures) to default location: