Hi,

forgive me for asking a very beginner question.

I am trying to substitute some pixels in a Image with some data I have.
The data is just RGBA in floats.

So I am in doubt about the call parameters, and also what namespace I need to 
get GL_RGBA and GL_FLOAT from.
After the call to copySubImage, I am just gonna throw the subImg away.

img is just an image attached to a Texture2D.


Code:

osg::Image subImg = new osg::Image();
subImg->setImage(w,h,1, GL_RGBA, GL_RGBA, GL_FLOAT, data, 
osg::Image::AllocationMode->USE_MALLOC_FREE,1);
img->copySubImage(s,t,1,subImg);




Advice appreciated.

Cheers,
Nikolai

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75274#75274





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to