Setting up for actual OpenGL drawing

I'm getting an error at the moment, not sure why. Probably missing more
setup or something. But the structure is mostly there.