Added c++ code from NeHe tutorial