OpenSceneGraph 3.6.5
Namespaces | Macros | Functions
ReadFile File Reference
#include <string>
#include <osg/Node>
#include <osg/Image>
#include <osg/ArgumentParser>
#include <osgDB/Export>
#include <osgDB/Registry>

Go to the source code of this file.

Namespaces

namespace  osgDB
 The osgDB library provides support for reading and writing scene graphs, providing a plugin framework and file utility classes.
 

Macros

#define OSGDB_READFILE   1
 

Functions

OSGDB_EXPORT osg::ref_ptr< osg::ObjectosgDB::readRefObjectFile (const std::string &filename, const Options *options)
 Read an osg::Object from file.
 
osg::ref_ptr< osg::ObjectosgDB::readRefObjectFile (const std::string &filename)
 Read an osg::Object from file.
 
template<class T >
osg::ref_ptr< T > osgDB::readRefFile (const std::string &filename, const Options *options)
 
template<class T >
osg::ref_ptr< T > osgDB::readRefFile (const std::string &filename)
 
OSGDB_EXPORT osg::ref_ptr< osg::ImageosgDB::readRefImageFile (const std::string &filename, const Options *options)
 Read an osg::Image from file.
 
osg::ref_ptr< osg::ImageosgDB::readRefImageFile (const std::string &filename)
 Read an osg::Image from file.
 
OSGDB_EXPORT osg::ref_ptr< osg::HeightFieldosgDB::readRefHeightFieldFile (const std::string &filename, const Options *options)
 Read an osg::HeightField from file.
 
osg::ref_ptr< osg::HeightFieldosgDB::readRefHeightFieldFile (const std::string &filename)
 Read an osg::HeightField from file.
 
OSGDB_EXPORT osg::ref_ptr< osg::NodeosgDB::readRefNodeFile (const std::string &filename, const Options *options)
 Read an osg::Node from file.
 
osg::ref_ptr< osg::NodeosgDB::readRefNodeFile (const std::string &filename)
 Read an osg::Node from file.
 
OSGDB_EXPORT osg::ref_ptr< osg::NodeosgDB::readRefNodeFiles (std::vector< std::string > &fileList, const Options *options)
 Read an osg::Node subgraph from files, creating a osg::Group to contain the nodes if more than one subgraph has been loaded.
 
osg::ref_ptr< osg::NodeosgDB::readRefNodeFiles (std::vector< std::string > &fileList)
 Read an osg::Node subgraph from files, creating a osg::Group to contain the nodes if more than one subgraph has been loaded.
 
OSGDB_EXPORT osg::ref_ptr< osg::NodeosgDB::readRefNodeFiles (osg::ArgumentParser &parser, const Options *options)
 Read an osg::Node subgraph from files, creating a osg::Group to contain the nodes if more than one subgraph has been loaded.
 
osg::ref_ptr< osg::NodeosgDB::readRefNodeFiles (osg::ArgumentParser &parser)
 Read an osg::Node subgraph from files, creating a osg::Group to contain the nodes if more than one subgraph has been loaded.
 
OSGDB_EXPORT osg::ref_ptr< osg::ShaderosgDB::readRefShaderFile (const std::string &filename, const Options *options)
 Read an osg::Shader from file.
 
osg::ref_ptr< osg::ShaderosgDB::readRefShaderFile (const std::string &filename)
 Read an osg::Shader from file.
 
osg::ref_ptr< osg::ShaderosgDB::readRefShaderFile (osg::Shader::Type type, const std::string &filename, const Options *options)
 Read an osg::Shader from file and set to specified shader type.
 
osg::ref_ptr< osg::ShaderosgDB::readRefShaderFile (osg::Shader::Type type, const std::string &filename)
 Read an osg::Shader from file and set to specified shader type Return valid osg::Shader on success, return NULL on failure.
 
OSGDB_EXPORT osg::ref_ptr< osg::ShaderosgDB::readRefShaderFileWithFallback (osg::Shader::Type type, const std::string &filename, const Options *options, const char *fallback)
 Read an osg::Shader from file and set to specified shader type, if a shader isn't loaded fallback to specific shader source.
 
osg::ref_ptr< osg::ShaderosgDB::readRefShaderFileWithFallback (osg::Shader::Type type, const std::string &filename, const char *fallback)
 Read an osg::Shader from file and set to specified shader type, if a shader isn't loaded fallback to specific shader source.
 
OSGDB_EXPORT osg::ref_ptr< osg::ScriptosgDB::readRefScriptFile (const std::string &filename, const Options *options)
 Read an osg::Script from file.
 
osg::ref_ptr< osg::ScriptosgDB::readRefScriptFile (const std::string &filename)
 Read an osg::Script from file.
 

Macro Definition Documentation

◆ OSGDB_READFILE

#define OSGDB_READFILE   1

osg logo
Generated at Fri Jan 31 2020 11:03:07 for the OpenSceneGraph by doxygen 1.9.8.