WriteFile
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSGDB_WRITEFILE
#define OSGDB_WRITEFILE 1
#include <osg/Image>
#include <osg/Shape>
#include <osg/Node>
#include <osgDB/Export>
#include <osgDB/Registry>
#include <string>
namespace osgDB {
extern OSGDB_EXPORT bool writeObjectFile(const osg::Object& object, const std::string& filename, const Options* options );
inline bool writeObjectFile(const osg::Object& object, const std::string& filename)
{
return writeObjectFile( object, filename, Registry::instance()->getOptions() );
}
extern OSGDB_EXPORT bool writeImageFile(const osg::Image& image, const std::string& filename, const Options* options );
inline bool writeImageFile(const osg::Image& image, const std::string& filename)
{
return writeImageFile( image, filename, Registry::instance()->getOptions() );
}
extern OSGDB_EXPORT bool writeHeightFieldFile(const osg::HeightField& hf, const std::string& filename, const Options* options );
inline bool writeHeightFieldFile(const osg::HeightField& hf, const std::string& filename)
{
return writeHeightFieldFile( hf, filename, Registry::instance()->getOptions() );
}
extern OSGDB_EXPORT bool writeNodeFile(const osg::Node& node, const std::string& filename, const Options* options );
inline bool writeNodeFile(const osg::Node& node, const std::string& filename)
{
return writeNodeFile( node, filename, Registry::instance()->getOptions() );
}
extern OSGDB_EXPORT bool writeShaderFile(const osg::Shader& shader, const std::string& filename, const Options* options );
inline bool writeShaderFile(const osg::Shader& shader, const std::string& filename)
{
return writeShaderFile( shader, filename, Registry::instance()->getOptions() );
}
extern OSGDB_EXPORT bool writeScriptFile(const osg::Script& image, const std::string& filename, const Options* options );
inline bool writeScriptFile(const osg::Script& image, const std::string& filename)
{
return writeScriptFile( image, filename, Registry::instance()->getOptions() );
}
}
#endif
Image
Node
Shape
osgDB::Options
Definition Options:30
osgDB::Registry::instance
static Registry * instance(bool erase=false)
osg::HeightField
Definition Shape:483
osg::Image
Definition Image:179
osg::Node
Definition Node:72
osg::Object
Definition Object:61
osg::Script
Definition osg/ScriptEngine:30
osg::Shader
Definition Shader:89
osgDB
Definition Archive:24
osgDB::writeNodeFile
OSGDB_EXPORT bool writeNodeFile(const osg::Node &node, const std::string &filename, const Options *options)
osgDB::writeObjectFile
OSGDB_EXPORT bool writeObjectFile(const osg::Object &object, const std::string &filename, const Options *options)
osgDB::writeScriptFile
OSGDB_EXPORT bool writeScriptFile(const osg::Script &image, const std::string &filename, const Options *options)
osgDB::writeHeightFieldFile
OSGDB_EXPORT bool writeHeightFieldFile(const osg::HeightField &hf, const std::string &filename, const Options *options)
osgDB::writeShaderFile
OSGDB_EXPORT bool writeShaderFile(const osg::Shader &shader, const std::string &filename, const Options *options)
osgDB::writeImageFile
OSGDB_EXPORT bool writeImageFile(const osg::Image &image, const std::string &filename, const Options *options)
Export
OSGDB_EXPORT
#define OSGDB_EXPORT
Definition osgDB/Export:39
Registry