refactoring: move opengl enum translations into their own class.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>