Hi,

I've create an int matrix[16][256] and I need to pass it to the GPU. So what 
I've done is create a osg::Image, but when I have to pass the data to setImage, 
I have to do a cast to my data, because it needs an unsigned char *.

My matrix contains signed ints so I cannot cast it to a unsigned char, as I 
loose information. How can I do it?

Thanks!

Cheers,
Pau

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





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

Reply via email to