Hi, folks!
How can I create a 3D/2D Texture containing float values.
Image::setImage does only accept unsigned char* as data. Can I just do this in
this way:
float* data = allocateData();
osg::Image* img = new osg::Image();
img->setData(w,h,d, GL_RGBA_FLOAT16_ATI, GL_RGBA, GL_FLOAT, (unsigned
char*)data, osg::Image::USE_NEW_DELETE);
Why you do not do this in the same way like in OpenGL where you have void* to
pass as argument?
MfG, Art
___________________________________________________________
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail:
http://mail.yahoo.de
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/