On 9/5/06, Mike Greene <[EMAIL PROTECTED]
> wrote:
I have an example snippet that reads a jpeg image from a file and
uses it as a texture:
osg::Image* klnFace = osgDB::readImageFile("image2.jpg");
KLN89FaceTexture->setImage(klnFace);
How can I use an existing memory image of a jpeg (i.e., not have to
access the hardrive) to accomplish the same task?
i.e., something like:
osg::Image* klnFace = osgDB::readImageMemory(buffer);
KLN89FaceTexture->setImage(klnFace);
Mike Greene
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
