Code from our fall 2014 OpenGL seminar.
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
objects
screenshots
.gitignore
basement.png
camera.py
cube.py
cube_tile.py
fog.py
game.py
light.py
plane_tile.py
readme.md
settings.py
texture.py
texture_mappings.py

readme.md

Basic OpenGL Programming Seminar

This repository is a collection of files from an OpenGL programming seminar CIF run by Kate Hart (@codehearts) in the fall of 2014. The seminar focused on basic OpenGL quads, texturing, and lighting, and used Python with an OpenGL library called Pyglet. The syntax for OpenGL is very similar across languages, so this code could fairly easily be ported to C or Java.

Follow Along!

You can follow along with the seminar by visiting the different branches and reading their readmes. This master branch is simply a compilation of everything covered in the seminar.

  1. cube-tile
  2. camera
  3. key-hander
  4. textures
  5. lighting
  6. tile-map

Running

You'll need Pyglet and a compatible version of Python. Then you can run the code with python game.py, or python2 game.py depending on your system. You can also run python with the -B flag to prevent Python bytecode files from being generated.