摘要:
最近项目开发遇到文件路径解析的问题,比如获取名字、获取文件父路径、获取相对路径、斜杠转化等等。在查看osgdb源码是突然发现osg已经写好了很多函数,供我们调用,可以提高项目开发的速度:/** Gets the parent path from full name (Ex: /a/b/c.Ext => /a/b). */extern OSGDB_EXPORT std::string getFilePath(const std::string& filename);/** Gets the extension without dot (Ex: /a/b/c.Ext => Ex 阅读全文
posted @ 2013-12-17 16:52 亦舒雪 阅读(1849) 评论(0) 推荐(0)
浙公网安备 33010602011771号