XRazont
XRazont

Reputation: 113

Fast software rendering on iOS

Bad news everyone!

I'm trying to port old Windows game to iPad and I have a problem. Much of all graphics written without hardware acceleration. On Windows it uses LockRect() call from IDirect3DSurface8 class to get colorbuffer from backbuffer and write some graphics data. After this it uses UnlockRect to send our pixel color data to videomemory. But OpenGL ES hasn't such functionality. I'm trying to emulate this. I have an array which I draw every game tact using glTexImage2D() then glDrawTexfOES(0, 0, 0, 1024, 768)

But creating a texture from array every tact is too slow. How can I do this much faster? Thanks in advance.

Upvotes: 1

Views: 969

Answers (1)

genpfault
genpfault

Reputation: 52089

Try a rendering a textured quad and use glTexSubImage2D() for texture re-uploads.

Upvotes: 1

Related Questions