Still refactoring; added a lot of params, as well as a global FILE pointer for logging/testing. The move to OpenGL 3.x should happen relatively soon.