views:

38

answers:

1

Hello,

I'd like to develop a 2d game that's not gonna be very intensive with an iphone sdk. I don't want to use opengl and i don't want to use ano 3rd party things. So as i understand, i'll have to use a view's drawrect method to draw things. I've spent hours researching this topic and as always with apple's production - it just left me with even more questions. What i'd like to do is create some sort of offscreen bitmap and use it to paint things and then copy that bitmap onto a screen.

Could someone give me a very very primitive example of how i could create an offscreen buffer (with the size of the screen), draw a png image on it and move it to the actual view? Or am i being too naive thinking there is a simple example for that?

Thank you