Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

The_Nerd

OpenGL OpenGL rendering in the X Root window

This topic is 5299 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does any body know how to access the "root window" (background) in X (XFree server??? Don''t know how else to word it), so it can be rendered to with OpenGL? I know it can be done. But how? I would rather not use motif by the way. ------------------------------------------------------- It said "Requires Windows 98 or better", so I installed Linux.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
well. how about XRootWindow(pDisplay, 0), and then bind your GL context to that window?

that might work okay if you don''t have window manager/desktop environment running.

linux usually only has one visual depth, but the root window might not be using a GL capable visual on it, so you might need to do something fancy like

XCreateWindow( parent is root window, override redirect is true)
// so that the window manager doesn''t manage it.
then
XRestackWindows(..) so that your new window between your root window and all other windows...

if you are running a desktop environment, then they probably create their own root window... so you might be okay with the same procedure, restacking your window right above their desktop window but before their icons, if you can figure out which is their root window.

some things to try, anyways.


Share this post


Link to post
Share on other sites
Thanks a bunch. But I already figured it out (Thanks to NeHe) :D


-------------------------------------------------------
It said "Requires Windows 98 or better", so I installed Linux.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!