Drawing individual pixels with iphone sdk.

Posted by blob8108 on Stack Overflow See other posts from Stack Overflow or by blob8108
Published on 2010-06-16T12:57:01Z Indexed on 2010/06/16 13:02 UTC
Read the original article Hit count: 321

Filed under:
|
|

Hi,

I've been trying to figure out how to make a powder toy style game on the iPhone. My problem is how to draw pixels to the screen. From what I've read, OpenGL is better for games as it is faster/hardware accelerated, but there is no method to draw pixels directly to the screen. Apparently drawing pixels to an off-screen frame buffer is the way to go, but how do I then pass this to OpenGL? Do I use a texture?

(this is assuming I have no previous knowledge of iPhone graphics programming).

Thanks!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c