OSG:中级篇 文件IO类

一.简介

#include <osgDB/ReadFile>

#include <osgDB/WriteFile>

二.读取数据

    osgDB::readCommandLine()
    osgDB::readFile()
    osgDB::readHeightFieldFile()
    osgDB::readImageFile()
    osgDB::readNodeFile()
    osgDB::readNodeFiles()
    osgDB::readObjectFile()
    osgDB::readScriptFile()
    osgDB::readShaderFile()

osg::ref_ptr<osg::Node> loadModel = osgDB::readNodeFile("glider.osg");
原文地址:https://www.cnblogs.com/k5bg/p/11453292.html