Page 1 of 1

Windowed Mode

Posted: Fri Feb 04, 2005 2:49 am
by ThorPrime
First off, I have to say this game is awesome. I love pulling out my laptop and playing it during lectures. Getting comments from behind like "Did that rabbit just cut that other rabits throat?".

I just wanted to know if there is a way to run it in windowed mode so one could run in and out of IM chats and the like.

Posted: Fri Feb 04, 2005 7:34 am
by Blorx
Not that I know of. I've played all of Wolfire's games and the only windowed one (that I remember) is "Sword" and I never figured out how to play it. :(

Posted: Fri Feb 04, 2005 9:41 am
by David
You cannot play it in windowed mode at this point, because I'm not sure how to do that using Carbon AGL. However, all my future games will support windowed mode 8)

Posted: Fri Feb 04, 2005 10:41 am
by Blorx
Besides SOS, David do you have any other games planned?

Posted: Fri Feb 04, 2005 11:11 am
by David
Yes, but they are top secret 8)

Posted: Fri Feb 04, 2005 11:35 am
by Blorx
That sounds like fun! I just hope one of the secret ones are out before next January. I'd be glad to pay 20 to 30$ for just about anything you'd make. :D Wait, let me guess! Hmm...is one of them Lugaru 2? if you're wondering where I came up with the idea, check the first page of the "Lugaru 2?" post on the second page of the "Wolfire" forum. That should just about answer it. :) David said himself that he wanted a Lugaru 2,
*quote* Yes. *unquote*
Zip too,
*quote* Even though there isn't a Lugaru 1 yet...yep. *unquote*

Posted: Sun Feb 06, 2005 12:13 pm
by Nayr
take a look at this (Common.h and Common.c): http://203.79.121.211/svn/repos/QTValuePak/

Posted: Sun Feb 06, 2005 2:30 pm
by Blorx
Nayr, WHAT IS THAT? Sorry, I got a headache, my mind is bursting and so are my thoughts.

Posted: Sun Feb 06, 2005 3:16 pm
by Nayr
that's for david :wink:

Posted: Sun Feb 06, 2005 4:57 pm
by Guest
Well, if you want to make windowed mode using AGL, what you'll have to do is kill the current AGL_fullscreen window, make a new non-fullscreen window, and recreate your OpenGL context. This means rebinding all your textures, setting all your GL variables, and rerendering all of your display lists, etc. Depending on how you have everything set up, where you're storing your textures, etc, it shouldn't be _that_ hard to implement a fullscreen/windowed toggle.

Posted: Sun Feb 06, 2005 5:46 pm
by Nayr
yes. But david may not know how to bind the AGL context to the window.

Posted: Sun Feb 06, 2005 9:05 pm
by rkn
Have faith. David knows all. :D