Hi Daniele,
On Wed, 2004-01-28 at 07:37, Daniele Pagliani wrote:
> Hi,
> I'm a new with OSG. Can someone tell me how can I retrive the filename of a
> texture from the Open SceneGraph? I found a TextureChunk object and now I
> need to know the name of the texture file in order to save it into a file.
the name TextureChunk indicates that you're on the right list, but the
name of the project is OpenSG, not Open Scenegraph. That's a totally
separate project, although it has somewhat similar goals.
To answer your question: the name is stored with the image, not the
texture. So to get the filename from the texture you need to call
std::string file = texchunk->getImage()->getName();
Hope it helps
Dirk
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users