====== PyOpenGL + PyGame ====== These are notes from a graphics course that I taught many years ago. Hopefully, they will be useful for someone. They focus on Python 2.7, which is now deprecated. However, it is likely that some of this will still translate to Python 3. ---- For the remainder of these notes, we will be working with [[http://pyopengl.sourceforge.net/index.html|PyOpenGL]]. ====== Installation ====== We assume that you currently have a working installation of Python 2.7 and the ability to install packages via //pip// or //easy_install//. You will need to install the following packages **__in the order they are listed__**: NumPy PyGame PyOpenGL PyOpenGL_accelerate PyDispatcher PyVRML97 OpenGLContext ====== Lecture Companions ====== [[ffopengl|PyOpenGL Primer]]\\ [[ffopengl_mouse|PyGame Mouse Events]]\\ [[ffopengl_3D|Getting Started in 3D]]\\ [[https://github.com/mckenn0n/OpenGLContext_python3.6_compatable|Patch for using OpenGLContext with Python 3.6+]]\\ [[ffopengl_lighting|Old-School Lighting Example]]\\ [[opengl_ply_mesh|Stanford Polygon Format]]\\ [[ffopengl_textures|Texture Mapping]]\\ [[ffopengl_vbo|Vertex Buffer Objects]]\\ [[pfopengl_shaders|Getting Started with Shaders]]\\ [[pfopengl_lighing|More Shaders]]\\ [[http://pyopengl.sourceforge.net/context/tutorials/shader_3.html|Example using Uniforms]]