Programming games in C++

i have taken a c++ class and an OOP in c++ class. i would like to program games on the mac. i have never programed games execpt in director and basic. i dont have the slightest clue as to where to start. i would like to program in C++ not cocoa. what is an API? what is a framework? if anyone can help me with this, that would rock! thanks!
-brett

A framework is a folder with a particular structure, containing header files, a library defining the functions in those headers, and possibly resources used by the library. Frameworks are a Mac OS X thing. You can find them by looking in /System/Library/Frameworks/.

I'd suggest GLUT as an easy place to start learning to program games. You can find GLUT examples in /Developer/Examples/OpenGL/GLUT/, as well as all over the web. You can find OpenGL tutorials on http://nehe.gamedev.net/.

ive looked at GLUT, it just confuses me. i cant get the totorials to work. and i DONT want to program in cocoa. i want the option of my programs running on a computer without a opengl video card. any other suggestions? thanks
-brett

GLUT is the best way to go. Everyone on Mac OS X has a decent accelerator card I think Apple has some GLUT code that works really well. Check their web site in the Mac OS X developer source code section for GLUT Examples or if you've installed the Developer Tools CD it's already installed in your /developer/examples/GLUTExamples folder. The one I'm talking about contains like 30 examples to get you started. It compiles fine on my iMac Graphite. You've got to start somewhere and Apple's developer section can also be a really big help.

OpenGL itself should be pretty easy to get the hang of; there are plenty of tutorials at NeHe, and a few at neheX, only a few because I'm slow and haven't finished the images for the site or finished uploading the tutorials - sorry

I would highly suggest just learning the standard Mac toolbox graphics functions first. I wrote many games using nothing but functions like LineTo() and FrameRect() and GetKeys() before learning anything more complicated than that, and the advantage is that you can see results quickly. And knowing those functions is still useful for me even though I've learned to use other stuff. If I have an idea for a game, I can create a mock-up in a few hours that uses rectancles and ovals in the place of the objects, rather than building the whole thing from scratch.

I'd forgotten this (just remembered as I demoed it to a teacher today ), but Leonardo is a free C interpreter, and has built in graphing functions which can be used for primitive graphicsÖ it includes a Tetris-clone as an example programÖ the only problem is there's no OSX version yet.

i looked at neheX, that is exactly what i was looking for! its simple and i understand it! im so excited! but i have one question, what does glTranslatef() do? i changed the numbers and the polygons move constantly across the screen. thanks!!!
-brett