Learning OpenGL

Post: #16
Quote:Originally posted by blb
I've posted a few times...

Sorry! I probably forgot who "blb" was. You need some personalization to your forum personality. How about putting http://www.withay.com in your sig? Smile
Quote this message in a reply
Post: #17
Nah, that's too obvious, I like subtlety more...as in blb@ is my email address. But of course, now that's ruined.
Quote this message in a reply
Posts: 177
Joined: 2002.08
Post: #18
Quote:Originally posted by skyhawk
on the contrary, I started directly using the cocoa stuff and have never looked back. I used my friend's source code as a starting point to set up the window right. Then I just did all my init in awakefromnib and all my drawing in drawrect. and keys are done with simple cocoa keyroutines. I fail to see how glut is easier than the cocoa alternative.

Using existing source is cheating Rasp

GLUT is exactly the same as the Cocoa method, except with a few extra calls to register your functions in place of the process of building a nib file. The init function, the reshape function, the key handler, the draw...
Quote this message in a reply
Posts: 64
Joined: 2005.06
Post: #19
Why must I use GLUT? If it's making extra calls, all it's doing is slowing OpenGL down. All of NeHe's tutorials use GLUT, and the Cocoa versions of the tutorials have extra stuff or don't explain what the extra code is or does. It seems almost as bad as Apple.
Quote this message in a reply
Posts: 5,143
Joined: 2002.04
Post: #20
GLUT is easier than Cocoa. More samples are available for it. Why do you care if it's 0.0001% slower than the "straight" Cocoa app?

There's a lot of things that need to be done to get OpenGL working with Cocoa. Apple has on their website the most minimal OpenGL/Cocoa sample possible. It may be the only useful piece of sample code on the site Wink. If you don't understand it, there's another reason to stick with GLUT.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Learning OpenGL from scratch ajmas 5 5,533 Aug 13, 2005 02:47 PM
Last Post: akb825
  Learning OpenGL Justin Brimm 5 4,268 May 1, 2003 10:21 AM
Last Post: GoodDoug
  Learning Quicksilver 1 3,352 Dec 13, 2002 11:18 AM
Last Post: Feanor