14 #ifndef OSGDB_READFILE
15 #define OSGDB_READFILE 1
21 #include <osg/ArgumentParser>
23 #include <osgDB/Export>
24 #include <osgDB/Registry>
59 inline T*
readFile(
const std::string& filename)
207 if (!shader) shader =
new osg::Shader(type, fallback);
OSGDB_EXPORT osg::ref_ptr< osg::Object > readRefObjectFile(const std::string &filename, const Options *options)
OSGDB_EXPORT osg::ref_ptr< osg::Shader > readRefShaderFile(const std::string &filename, const Options *options)
OSGDB_EXPORT osg::ref_ptr< osg::Image > readRefImageFile(const std::string &filename, const Options *options)
OSGDB_EXPORT osg::ref_ptr< osg::Script > readRefScriptFile(const std::string &filename, const Options *options)
OSGDB_EXPORT osg::ref_ptr< osg::HeightField > readRefHeightFieldFile(const std::string &filename, const Options *options)
OSGDB_EXPORT osg::Script * readScriptFile(const std::string &filename, const Options *options)
OSGDB_EXPORT osg::HeightField * readHeightFieldFile(const std::string &filename, const Options *options)
OSGDB_EXPORT osg::Shader * readShaderFile(const std::string &filename, const Options *options)
OSGDB_EXPORT osg::ref_ptr< osg::Node > readRefNodeFile(const std::string &filename, const Options *options)
T * readFile(const std::string &filename, const Options *options)
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum type
osg::Shader * readShaderFileWithFallback(osg::Shader::Type type, const std::string &filename, const Options *options, const char *fallback)
static Registry * instance(bool erase=false)
OSGDB_EXPORT osg::Node * readNodeFile(const std::string &filename, const Options *options)
OSGDB_EXPORT osg::Object * readObjectFile(const std::string &filename, const Options *options)
OSGDB_EXPORT osg::Image * readImageFile(const std::string &filename, const Options *options)
OSGDB_EXPORT osg::Node * readNodeFiles(std::vector< std::string > &fileList, const Options *options)