Hi, This code generates texture data in the app:
http://osgtoy.svn.sourceforge.net/viewvc/osgtoy/osgtoy/trunk/src/osgToy/ MipmapTestImage.cpp?revision=173&view=markup Mike Weiblen -- Zebra Imaging -- Austin Texas USA -- http://www.zebraimaging.com/ > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:osg-users- > [EMAIL PROTECTED] On Behalf Of Mike Greene > Sent: Thursday, June 28, 2007 7:57 AM > To: [email protected] > Subject: [osg-users] OK,another way - Load osg::Image data from array and > not from file > > Perhaps my question earlier this week was not as succinct as it should > have been. > > I know I can load an osg::Image like this: > > osg::Image* klnFace = osgDB::readImageFile("b:\\image2.jpg"); > > But, how would I do it if I already had the jpeg information loaded into > a BYTE or unsigned character array? > > Something like : > > klnFace->getData(); > > where I somehow specify that the data is in jpeg compressed format. > > > 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/
