Hi Robert,

here are a small extension to the osg::Image class, which do computes data type 
from the given format, i.e. (GL_RGB32F_ARB -> GL_FLOAT). The method is very 
usefull to find out which data type a texture or an image have based on the 
internal/pixel format.

I think it would be usefull also for all other users too. The patch doesn't 
break any functionality, because only one additional static method was added.
I think because all other similar method are placed in this class, this is also 
a good place for that method.

Best regards,
Art


      

Attachment: image_data_type.tar.gz
Description: GNU Zip compressed data

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to