opengl game programme
i want to develop same game on different platfo开发者_如何转开发rms like android,webos,iphone(ios)
i heared we can port native code on this platforms.i am using windows.is there any chance for
me develop game in windows and port that into above platforms.
Thanks in advance
Aswan
You cannot just simply port them, OpenGLES has only a subset of OpenGL functionalities, and there's no GLUT in ES. Besides, each openGL setup code eg:preparing canvas, loading texture can be different from platform to platform.
You can't just copy-paste a Windows OpenGL game to one of those platforms and have it work flawlessly. There are tools and engines which can help you develop games once and then have it work on multiple platforms (how well they work I can't say, however, I've never used them). If you check this question here on SO, there is a good list of choices from the OP, some of which had the aforementioned ability.
Be careful. iPhone uses OpenGL ES which is a subset of Open GL. A good thought would be to look at this before you proceed.
Hope this helps. Thanks, Madhup
精彩评论