We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
hasUpdatedPixels() (Read 1422 times)
hasUpdatedPixels()
Apr 20th, 2005, 1:36am
 
It'd be nice if loadPixels() set a boolean and updatePixels() unset it, so that you could determine whether or not you need to loadPixels() again in order to avoid overwriting previous changes.
Re: hasUpdatedPixels()
Reply #1 - Apr 20th, 2005, 2:25am
 
yup, that's on the todo. updatePixels is just a flag since it can't force an update, but can only request it the next time that the image is rendererd (since the renderers are completely detached from the image data).

so basically loadPixels() needs to not do its thing unless updatePixels() has been run properly.

load/updatePixels kinda stinks but it's what we have to do for java2d and opengl. it's probably gonna be a little bumpy since we haven't really worked out the kinks with it yet Undecided

(edit) there's also a weird situation that can happen where you call updatePixels() and then start drawing with line() or whatever, and things may not update properly.. gotta straighten that out.
Page Index Toggle Pages: 1