Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nkonstas

macrumors newbie
Original poster
Oct 2, 2008
22
1
Hi,

I'm using core graphics to port a 2D game and I trying to use setClearsContextBeforeDrawing so that I only paint the regions of the screen have been updated.

However this setting seems to have no effect - I set it both in my code & in the projects xib file. I also tried setting the background brush to nil etc...

Is there a way to achieve this? Maybe if I overwrite the default layer of the view? :confused:

I'm new to iMac dev - this is my first project so pls be gentle...

Also in case someone wondering we I don't use openGL: the reason is that I cannot find a way to write pixels fast enough on a texture... so the framerate is pretty bad.

Thank you,
Nikos.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.