OpenGL and DirectX libraries with Xcode
I've found a good book on game programming using OpenGL for graphics and DirectX for audio and input. However, it is written for Windows. I know Mac uses OpenGL too, though, so I'm trying to figure out if I can use this book as a resource for game programming on the Mac.
The book says something like, "you will need the -OpenGL- and -DirectX- libraries and headers installed on your computer, and a compiler set up to find them." I need to know if all of that applies to me (I'm running Mac OS X 10.5.8 on a MacBook (black) using Xcode 3.1.2 in case any of that is relevant).
So, basically, there's three things I need to know here:
1.) Does Xcode (or its compiler, whichever is the relevant one I should be asking about) include the OpenGL libraries and headers? Am I all set in that area? I think the answer here is yes, but I want to make sure.
2.) Does Xcode (again, or its compiler) include the DirectX libraries and headers? Am I good to go here? This one I'm not so sure about -- I think of DirectX as more of a Windows thing, but I don't know.
3.) Is the Xcode compiler (GNU or GCC or whatever -- still don't know the difference) "set up to find" these libraries and headers?
Any help here is greatly appreciated. Thank you.
MacBook, Mac OS X (10.5.8)