Cocoa OpenGL

clapton541
Unregistered
 
Post: #1
Does anyone know a really good cocoa opengl tutorial. Not Nehe because they don't work on newer models, don't work fullscreen, and don't explain the Cocoa part. So does anyone know a good Cocoa OpenGL tutorial that tells you how to go fullscreen, draw(obviously), and have 3d meshes used. Also something that works on the newer Macs and on XCode not Project Builder. Thanks I would really appreciate if somone gave me one because I have been searching all over the internet for one.
Quote this message in a reply
Moderator
Posts: 1,560
Joined: 2003.10
Post: #2
Quote this message in a reply
Sage
Posts: 1,403
Joined: 2005.07
Post: #3
Cocoa OpenGL template for xcode: http://fax.twilightcoders.net/files/Coco...cation.zip

for the basics of GL, loading meshes, texturing and so on NeHe is actually a really good resource, also just searching around and looking at examples (GLUT examples in particular) can be very useful for learning.

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
Member
Posts: 104
Joined: 2007.01
Post: #4
I used SDL and OpenGL, rather than programming Cocoa directly. That made the code cross-platform so I could release the game on Windows and Linux too. When you install SDL, it adds an SDL project template to XCode that you can select, and the template is based on Cocoa.

You can download SDL from here:
Main download page: http://www.libsdl.org/download-1.2.php
Mac OS X Runtime: http://www.libsdl.org/release/SDL-1.2.11.dmg
Mac OS X SDK: http://www.libsdl.org/release/SDL-devel-...extras.dmg

Here's a good tutorial for using SDL on Mac OS X with XCode (a bit dated, but still mostly good - helped me a lot):
http://www.meandmark.com/sdlopenglpart1.html

As far as OpenGL drawing goes, any good tutorial will do. OpenGL programming is the same, regardless of which OS you're using. I learned from two good books: "OpenGL Super Bible" by White Group Press, and "OpenGL Game Programming" by LaMothe.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Texture Loading Cocoa/OpenGL ultitech 1 6,999 Jan 31, 2011 12:51 PM
Last Post: mk12
  Cocoa/OpenGL drawing full-screen problem ultitech 5 8,358 Jan 13, 2011 01:11 PM
Last Post: SethWillits
  Cocoa OpenGL clapton541 3 4,970 Aug 5, 2007 09:22 PM
Last Post: BenRose3d
  setting up opengl w/cocoa Leroy 5 4,615 Jun 18, 2007 06:00 PM
Last Post: kelvin
  Cocoa OpenGL clapton541 3 4,560 Mar 26, 2007 03:55 AM
Last Post: MattDiamond