Hi fellow coders,
I am currently working on porting a leading 3d engine infrastructure to the linux operating system.
Our engine is split up in several different components, the core API and the driver API (among others)
Problem is as follows, the engine was originally developped in windows where one could set up a window and then apply a rendering context to that window. In our case, the actual window opening is done first in the core API, followed by the opengl(d3d,etc…) initialization in the driver. In X11 this doesn’t appear to be possible since you must choose the correct Visual and ColorMap before the window is created.
Quoting Mark Kilgard (from some website),
"In the X Window System, display mode choices (such as single or double buffering, color index or RGBA mode) must be declared before
the window is initially opened… "
Needless to say (maybe), I am not an X11 specialists, I am really looking for a solution to this problem, hopefully! they are some X command that will allow the attributes of a window to be changed after it is created. Can anyone help me out on that?