[osg-users] About setFont() & readImageFile() on Internet

xyc508 at 163.com xyc508 at 163.com
Tue Apr 22 01:04:11 PDT 2008


Hello,Robert,

Very Thanks for your reply.

I do the following and it takes affects:
//
    osgDB::FilePathList FilePath;
    osgDB::convertStringPathIntoFilePathList("C:/WINDOWS/system32",FilePath);

    osgDB::appendPlatformSpecificResourceFilePaths(FilePath);
    osgDB::setDataFilePathList(FilePath);
//

But there appear other issue:

How to set osgDB::convertStringPathIntoFilePathList(),(osgDB::setDataFilePathList()),
osgText::setFont() and osgDB::readImageFile() accept URLs?
I need read data from http.

for example:
//
    osgDB::convertStringPathIntoFilePathList("http://www.aaa.com/Data",FilePath);
    osgDB::appendPlatformSpecificResourceFilePaths(FilePath);
    osgDB::setDataFilePathList(FilePath);

    osgText::setFont("http://www.aaa.com/Data/fonts1.ttf");

    osgDB::readImageFile("http://www.aaa.com/Data/bbb.tga")
//

Could you give help? Thank you.

Donlin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080422/0eb15992/attachment-0001.htm 


More information about the osg-users mailing list