Game Code Design for Rendering
Posted
by
kuroutadori
on Game Development
See other posts from Game Development
or by kuroutadori
Published on 2011-03-07T14:30:27Z
Indexed on
2011/03/07
16:18 UTC
Read the original article
Hit count: 323
I first created a game on the iPhone and I'm now porting it to Android. I wrote most of the code in C++, but when it came to porting it wasn't so easy. The Android way is to have two threads, one for rendering and one for updating. This due to some devices blocking when updating the hardware.
My problem is that I am coming from the iPhone. When I transition, say from the Menu to the Game, I would stop the Animation (Rendering) and load up the next Manager (the Menu has a Manager and so has the Game). I could implement the same thing on Android, but I have noticed on game ports like Quake, don't do this - as far as I can tell.
I have learnt that I cannot just dynamically add another Renderer class the the tree because I will probably get a dequeuing buffer error - which I believe to be a problem with the OpenGL ES side. So how is it done?
© Game Development or respective owner