Sorry, I meant to reply to myself earlier.
First off, thankyou for the detailed explanation. You show an understanding of OpenGL that I do not have. But unfortunately, there are some problems. I don't know how to use your code to create an image in the enter() method of a basicGameState, and then re-use it throughout the render method. However, even if I did know how to do this, there would e a separate problem because I am using android, detailed here . Basically, if the user switches to the homescreen, and then tries to resume the game, all of the gl context is lost, along with any dynamic textures.
I decided to use a workaround. Essentially, I decided to manually add images of the tiled maps that I would use, and render those instead of the actual tiled map.
_________________ "Artificial intelligence will never be a match for human stupidity" - "Jamos Kennedynos"
|