Hi Baker,

On 7 November 2011 19:32, Bradley Baker Searles <[email protected]>
> How would you use gluScaleImage to convert formats? It only takes
one format parameter, and internally it uses that one format to
compute the size of the before and after image? It seems suited only
to scale the image, not change formats... Am I missing something?

You are right I there is only one format parameter, I was thinking
about the GLenum typeIn, typeOut parameters which are for the data
type, so won't be suitable for your purpose.

The include/osg/ImageUtils header contains a number help functions for
processing image data so you could probably use this.  However, if you
know that you have GL_RGBA and GL_UNSIGNED_BYTE then it would be
easier to write a quick converter function that flips the 0 and 2
bytes to give you GL_BGRA.

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

Reply via email to