So I'm trying to create separate dynamic modules for each of the major parts of my code. I've previously managed to implement GLX and X11 in the same class (by effectively butchering it). I was wondering what the best way to implement it is, considering I also want to implement Vulkan (though I'm not specifically asking about the Vulkan implementation now?)

What can go in the Window Module, and what can go in the Graphics Module? In Windows, seperating the Pixelformat, HDC, and HRC allow me to have the two seperate modules, so that any of the three graphics APIs I want to load work. This is simply not the case with X11.

| |