pioneerspacesim/pioneer — pull request #3256 by fluffyfreak (2014-11-22 12:53:00+00:00)
Title: No GLEW

# Description:
Removing the GLEW library in favour of a header/cpp combo generated by [glLoadGen](https://bitbucket.org/alfonse/glloadgen/wiki/Home).

This was generated with the command: `lua LoadGen.lua -style=pointer_cpp -spec=gl -version=3.2 -profile=core core_3_2 -stdext=gl_ubiquitous.txt -stdext=gl_core_post_3_3.txt `

Which gives us a custom C++ style set of OpenGL functions and enums.

# Motivation:
GLEW has problems that it doesn't look like they're ever going to bother fixing. It also includes everything in a single library which means that even though we're only targetting OpenGL 3.2 right now we still get all of the functions and baggage from every other version.

As an example of why this is a monumentally bad see the change in RendererGL.cpp line 602 where I didn't realise I had left in a call to `glNormalPointer`! Who the hell knows what that's been doing under the hood since it's deprecated given the way we use the `glVertexAttribPointer` instead now.

By using these generated files we get only what we ask for, and we can probably cut down what I've currently got selected already.

Andy