PDA

View Full Version : Cocoa


Visaudi
2002.08.26, 02:41 PM
Is there a way to not modify Main(), when using Opengl in cocoa, to do everything completely object Oriented?

OneSadCookie
2002.08.26, 04:24 PM
Most Cocoa programs don't modify main. It usually simply calls NSApplicationMain.

There's a simple Cocoa OpenGL example on this site, and another on Apple's site. Why not download them and have a look at what they do?

From memory, GLCubes is the simple one hosted here.

zzajin
2002.08.26, 04:25 PM
check out - http://nehe.gamedev.net/

A number of the tutorials include cocoa ports that I think meet your needs.

Tutorial 19 for instance....



zza

Visaudi
2002.09.01, 11:28 AM
What is the URL for your site cookie?

OneSadCookie
2002.09.01, 05:18 PM
I don't have a website.

The examples I was referring to are hosted here on iDevGames. Click on "download finder" from the front page.

ededed
2002.09.02, 01:41 PM
On the main idevgames website you should be able to download an app called GLCubes that uses OpenGL in cocoa and uses a set time delay so you dont have to do all that integration stuff to make animations work on different render speeds.
GLCubes.