Thread
:
[Maemo 5] Request: Adapt a memory building game for the N900
View Single Post
dracflamloc
2010-07-05 , 15:37
Posts: 11 | Thanked: 2 times | Joined on Feb 2010
#
12
(I haven't looked at the code for BW or pyglet, so take this for what it is...)
A while back I ported a game I made for desktop to iphone using opengl ES. The only issue I ran into is that ES lacks any immediate-mode support. I'm assuming this is the issue you are running into, or at least part of it.
A dirty solution would be to wrap any immediate-mode functions being used such as glVertex4f() so that they build to an in-memory vertex array, that is passed to the draw function at the end of the immediate mode calls.
Otherwise pyglet would need to be redone so vertices and texture coords were stored in gl-compatible arrays from the start (or converted pre-render which is slower), and the rendering code could just call glDrawArrays instead of glBegin()...glEnd(), etc.
http://www.khronos.org/opengles/sdk/1.1/docs/man/
Quote & Reply
|
dracflamloc
View Public Profile
Send a private message to dracflamloc
Find all posts by dracflamloc