Learning OpenGL
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?
Nah, that's too obvious, I like subtlety more...as in blb@ is my email address. But of course, now that's ruined.
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

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...
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.
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
. If you don't understand it, there's another reason to stick with GLUT.
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
. If you don't understand it, there's another reason to stick with GLUT.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Learning OpenGL from scratch | ajmas | 5 | 3,342 |
Aug 13, 2005 02:47 PM Last Post: akb825 |
|
| Learning OpenGL | Justin Brimm | 5 | 2,621 |
May 1, 2003 10:21 AM Last Post: GoodDoug |
|
| Learning | Quicksilver | 1 | 2,264 |
Dec 13, 2002 11:18 AM Last Post: Feanor |
|

