Creating a custom (glx) window

Hi, I would like to create my own window using xlib and glx and let SDL
use that window. I guess I mostly would like to replace SetVideoMode
with my own custom function.

The reason is that I would like to use glitz which wants to select a
XVisualInfo itself which must be used when later creating the window.
Glitz also creates the opengl context itself.

I would like to use SDL to simplify other things like input handling. I
am not using any SDL_Surface’s or blitting.

Is this possible? I am currently using SDL 1.2 but I won’t mind using
SDL 1.3 if that would make it easier.–

//David Sveningsson [eXt]

Freelance coder | Game Development Student
http://sidvind.com

Thou shalt make thy program’s purpose and structure clear to thy fellow
man by using the One True Brace Style, even if thou likest it not, for
thy creativity is better used in solving problems than in creating
beautiful new impediments to understanding.