Jump to content
  • Advertisement

Archived

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

smiley_horse

Question about X

This topic is 5461 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

Hi guys I'm a bit new to X programming. I need information about fullscreen in X. How to open "fullscreen" window with Glx and how to change resolution "on the fly" (if possible?) like most games do in M$ win. Should I maybe use 2 X sessions at same time? Something like opening display :1 or ) I have been looking in X tutorials and docs for a days now but I just can't find more information then aobut opening glx context for a simple window. I would also like to know what function to call to open a window that is not managed by window manager; also not fullscreen but without borders, titlebar and such that wm's put around windows. Please if someone knows how to do it, or know some good place for information? I have this link which is nice; but nothing about fullscreen or non-managed windows: http://www.kerguelen.org/x/index.html Oh yes - and I don't want to use widget libs, I just want a simple as possible glx window with xlib or something in that style. Please help. thnks [edited by - smiley_horse on November 30, 2003 9:49:51 PM]

Share this post


Link to post
Share on other sites
Advertisement
Go check out nehe''s glx examples, they show you how to create and X window and bind it to a GLX context without SDL.

Share this post


Link to post
Share on other sites
hmmmm - I haven't seen a nehe tutorial about fullscreen with glx (but I haven read only a few), nor about creating X window without decorations; but will check. I already know how to bind a glx context to X window - that's only thing every tutorial I saw shows.


[edited by - smiley_horse on December 1, 2003 2:36:07 AM]

Share this post


Link to post
Share on other sites
X really isn''t all that bad. I flirted with it a bit over the summer, and honestly, it doesn''t deserve the bad rap it always gets. I don''t remember the exact sites that I used before, but just search google for "X tutorial" or something like that. There were a few really good ones. That''ll set you up with the basics of X programming, then you can learn the GL-specific stuff from the GLX versions of NeHe''s source.

Share this post


Link to post
Share on other sites
Oki I hae found how to open fullscreen display with glX . It was actually on nehe's site ( #2 ) - glx verison of it - I guess I should look better. Now only thing I miss is how to open a window that does not gets decorated by wm. I want nice little window without any border or title bar to use as a splash screen (with Xlib preferably); so if anyone knows what function to call please post a mess.

Aobut tutorials - I have found a few; like I said before:

http://xander.ncl.ac.uk/game/ <== a few nice & basic ones
http://www.unix-manuals.com/ <== few more basic & nice
http://www.kerguelen.org/x/index.html <== this one was first for me & I like that one

And at the end xlib manual - but it's so much to read ... :
http://wwweic.eri.u-tokyo.ac.jp/computer/manual/lx/SGI_Developer/books/XLib_PG/sgi_html/index.html

nice intro to glx is here:

http://techpubs.sgi.com/library/tpl/cgi-bin/browse.cgi?coll=0650&db=bks&cmd=toc&pth=/SGI_Developer/OpenGLonSGI

but I didn't understand how I can open a window without title bar & borders - so if anyone knows please let me know.




[edited by - smiley_horse on December 3, 2003 5:23:17 PM]

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!