Oliver Kutter wrote:
> unsigned char* data = image->data();
> 
> int size = image->s() * image->t();       
> // just as an example: I want to set the image color to black
> for (int i=0; i<size*3; i++) {
>    data[i] = 0;
> }
> 
> But I don't get the image color set to black. I wonder what kind of data
> I get with image->data()? The const or the non-const data? Because I
> think that I should be able to change the color if I get the non-const
> data. So I think that I'm getting the const data.

Do you call image->dirty()?
/Ulrich
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to