🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Too much is always better than not enough!

Published March 01, 1999
Advertisement
Nothing much new on the GDC or publisher fronts. Suffice it to say that I'm hoping that the games will be on the shelves before long. Life in the discount-rack is a bit different than top-shelf titles. Since individual products rarely have promotion budgets, it's usually the case that games don't appear everywhere at once. My first game pack took almost three months before my cousin sighted a copy in a Babbage's in Memphis. Patience is a virtue.



I'm reaching the conclusion that GLUT (a small cross-platform API for OpenGL windowing) is fatally flawed for anything other than small demo programs. First problem I found was with their main loop --there's no way to break out of it. Once you initialize everything and get the main loop started, the only way to quit is with exit(). Since your app doesn't get to drop out the bottom of main(), any objects allocated on the stack will never be destructed. I added a function to break out of the main loop, but that guarantees that I'll have to ship a proprietary GLUT32.DLL with my app. In addition, clicking the close-box on the window automatically calls exit() without allowing any cleanup at all. I can probably fix that too, but I wonder what other problems I will encounter.

I'm not saying that GLUT is a bad idea. To the contrary, I think it's great to have a dirt-simple framework for demo apps in OpenGL. That way, anyone showing off a technique can write an app to show it off using about 40 lines of code, and it'll run on any platform. I just think that it doesn't pass muster for non-trivial stuff.

Because of that, I'm taking a close look at wxWindows again. I was planning to re-do my 2D games under wxWindows a couple of years ago, but I was able to wheedle a cheap source-code license for my existing class library. It's one of the best GUI class libraries out there. The fact that it's free is icing on the cake. They've got an GLCanvas class already, so it's pretty-much ready for 3D games.

It does a ton of things that I'll probably never use, but that's OK. To quote my spiritual leader, J.R. "Bob" Dobbs. . .

"Too much is always better than not enough!"
Previous Entry Too much mangling!
Next Entry Expert goes bye-bye
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement