2
votes
2answers
410 views

How would you design a generic layer for OpenGL windowing that does not care how the program underneath actually looks like?

The kind of OpenGL windowing that I refer to is like GLFW, GLUT, SDL, etc. Imagine three C++ programs: (ignore syntax) Game A: class Game resize() keyEvent() Game B: resize() keyEvent() ...