iphone game development on Windows?

[edited for clarity] As a note: We aren't allowed to talk about "hackintoshes" around here. Besides the fact that it'd blatantly break all kinds of agreements with Apple, you'd be running on unsupported hardware with god-only-knows what kinds of problems in conjunction with iPhone development... plus, I assume Seth intends to uphold existing forum policy that we don't allow such discussion here at iDG since it violates said agreements with Apple, in addition to the fact that it wastes everyone's time to try to help others who are using hardware/software combinations that weren't meant to work in the first place.

(Dec 11, 2010 11:22 AM)Ropeburn Wrote: .....I have graphics interface layer that allows me to switch between desktop GL and GLes at compile time. For GLes on my Windows box, I use the PowerVR simulator, which I would recommend. On top of that I have an abstracted input and windowing system that allows for me to create graphics contexts for a number of different system (WGL, EGL, iPhone, etc). This also helps developing for multiple platforms. So to anwser the question, it is doable, it is a lot of work, I've learned alot, wrote a ton of platform code. Maybe I would add and recommend you start with known library for cross platform game development. I haven't used any, so I'm not going to recommend any, but they are out there.
Good Luck.

are there any tutorial, book, or code samples with this argument (developing for multiple platforms)?

I don't know of any books of the top head that cover the subjects, but I wouldn't be surprised if there were a few. GLUT of course handles desktop GL for Mac, Linux and Windows well enough. I actually prefer GLFW because it offers more in terms of framework and have been surprised that it hasn't caught on more. Of course, the issue with GLUT and GLFW, as far as I know, don't support EGL or iPhone dev at the moment. Because I've been so paranoid about platforms, I have my own wrapper "tGame" that I hide platform code behind.

From tGame, I derive tGameGlut, and from there, tGameGHA (groundhog assault). tGameGlut is a wrapper around GLUT. It installs the GLUT handlers and routes all the GLUTs events through predefined, overloadable methods. Absolutely all the game code is under tGameGHA. I do 90% of my development with this inheritance under Windows, but it works equally well under XCode on the Mac.

GLUT is supported on the Mac, good. But for the Iphone, I have another class derived from tGame, that is tGameIPhone. At compile time, via a XCode project, I can switch the tGameGHA parent class to tGameIPhone and everything works.

I have another class tGameEGL which allows me to use the the PowerVR simulator.

I think SDL is probably best for cross-platform dev since it handles joystick input as well as providing an audio interface, among other things, which GLUT doesn't support. I glanced at GLFW once but I seem to recall it didn't offer the audio interface, nor did it support joysticks (but don't quote me on this).