Apple "OpenGL Game Template"

Luminary
Posts: 5,143
Joined: 2002.04
Post: #1
New sample code posted today -- Apple "OpenGL Game Template"

http://developer.apple.com/samplecode/Op...index.html
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
On quick review, we, the IRC channel, have decided that this template is complete rubbish. Use it at your own risk!
Quote this message in a reply
Moderator
Posts: 522
Joined: 2002.04
Post: #3
But no one has a better free one online anywhere, so it rocks by default.

OverTheEdge sells an excellent "OpenGL Game Template," however. *ducks and quacks*

-Jon
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #4
Quote this message in a reply
Moderator
Posts: 522
Joined: 2002.04
Post: #5
No Xcode project, no dice. Grin
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #6
Stick the source files in any Xcode project and you're done... it's not a library, it doesn't build anything useful.
Quote this message in a reply
Moderator
Posts: 592
Joined: 2002.12
Post: #7
I've not had a chance to look at the Apple stuff or the GameShell yet (not at home and MacBook dead), but do either of them use GLUT? The reason I ask is that I have seen mentioned on here numerous times that GLUT is okay but not for a commerical game.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #8
No, both use Cocoa, as does SDL.

GLUT's unconfigurable preference dialog, lack of good screen resolution information, and limited keyboard and mouse handling really cramp it for a finished game. It's a bit easier to set up than SDL though, so it can be good early in the development cycle when quick results are more important than slick results Wink
Quote this message in a reply
Sage
Posts: 1,482
Joined: 2002.09
Post: #9
OneSadCookie Wrote:On quick review, we, the IRC channel, have decided that this template is complete rubbish. Use it at your own risk!

Wow, no kidding... No menus, and if you close the window it keeps running and doesn't respond to cmd-Q. Huh

Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
Quote this message in a reply
Member
Posts: 204
Joined: 2002.09
Post: #10
OneSadCookie Wrote:On quick review, we, the IRC channel, have decided that this template is complete rubbish. Use it at your own risk!

Wow, that is absolute rubbish. If they entered a few uDG contests before they decided to become game developers, they'd have a much better sample.

Why the heck does ESC quit the application? Just because we write games, suddenly the human interface guidelines no longer apply?
Quote this message in a reply
Member
Posts: 567
Joined: 2004.07
Post: #11
I sense that there was a deadline and they were too close to it....

It's not magic, it's Ruby.
Quote this message in a reply
Member
Posts: 260
Joined: 2005.05
Post: #12
KittyMac Wrote:Why the heck does ESC quit the application? Just because we right games, suddenly the human interface guidelines no longer apply?
You mean "write", right?

I have become very sceptical to Apple's official sample code. It is often beginner-level code, not speaking of audience but of code quality. Every time I learn a new Apple API, the first thing I do is to write a better demo than Apple provided.

And human interfaces, that's a BIG problem in games. Many, many games insist on using 80's-style interfaces, wading through horribly clumsy menus. And quitting by ESC without asking is an absolute nono, and still I have seen it in commercial games.
Quote this message in a reply
Member
Posts: 204
Joined: 2002.09
Post: #13
Ingemar Wrote:You mean "write", right?

Fixed, thanks! Sneaky

Ingemar Wrote:And human interfaces, that's a BIG problem in games. Many, many games insist on using 80's-style interfaces, wading through horribly clumsy menus. And quitting by ESC without asking is an absolute nono, and still I have seen it in commercial games.

Which makes it all the more important that Apple provides good sample code. My point was we've had many uDG entries which display bad Mac programming practices, and that's usually the first feedback they receive.

Apple is supposedly taking a bigger stance with games at this WWDC, I hope they get it right.
Quote this message in a reply
Sage
Posts: 1,199
Joined: 2004.10
Post: #14
OneSadCookie Wrote:On quick review, we, the IRC channel, have decided that this template is complete rubbish. Use it at your own risk!

Any particular parts which are rubbishy? "The whole thing" is not the answer I'm looking for Rasp
Quote this message in a reply
Member
Posts: 446
Joined: 2002.09
Post: #15
Well, switching to fullscreen results in a nice blank display for me. If Apple really wants to help game devs they need to do better than this. I hope yer all using those feedback links at the bottom of the page...
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Trouble With Template Classes in C++ Nick 4 3,218 Nov 21, 2006 10:25 AM
Last Post: DoG
  Trouble with template classes ermitgilsukaru 2 2,673 Aug 11, 2006 02:00 PM
Last Post: ermitgilsukaru
  Template specialization of a method Fenris 4 3,123 Jul 11, 2005 02:45 PM
Last Post: OneSadCookie