How to make the framework exit?

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
TheNotch3000
Posts: 2
Joined: June 22nd, 2012, 12:54 pm
Contact:

How to make the framework exit?

Post by TheNotch3000 » November 19th, 2012, 7:22 pm

I would like to make a button that exits my game(closes the framework window).
How do I make it close? (from within the Game::Go() function)

Thanks in advance,
TheNotch3000

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: How to make the framework exit?

Post by LuX » November 19th, 2012, 7:26 pm

exit ( 1 ); should work. There might be other / better, but that has worked for me.
ʕ •ᴥ•ʔ

TheNotch3000
Posts: 2
Joined: June 22nd, 2012, 12:54 pm
Contact:

Re: How to make the framework exit?

Post by TheNotch3000 » November 19th, 2012, 7:30 pm

Thanks, it worked.(That was a fast reaction!)

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: How to make the framework exit?

Post by LuX » November 19th, 2012, 7:36 pm

I am der Blitz.

Nah, I get notified for new posts and I just sat on the comp when I got notified.
ʕ •ᴥ•ʔ

Post Reply