views:

29

answers:

0

Hi All, I'm writing an android game which involves updating a SurfaceView very often. This is working fine, but I would prefer if there was a way to only update a sub rectangle of the screen each time, as opposed to the whole screen. I know you can do this with bitmaps, but my animation is operating on a raw colour array (int[]) and I'm trying to avoid creating a bitmap everytime. As far as I can see, canvas doesn't have an equivalent method for painting a subrectangle of an int[].

Thanks, Tomasz