A non-generalized example of loading a texture using modern opengl based upon Tom Dalling's tutorial