root/OpenSceneGraph/trunk/src/osgPlugins/fbx/ReaderWriterFBX.h @ 11317

Revision 11317, 1.0 kB (checked in by mplatings, 5 years ago)

From Sukender: Fixed FBX writer: now handles double precision arrays (vertices, normals, texcoords)

Line 
1#ifndef READERWRITERFBX_H
2#define READERWRITERFBX_H
3
4#include <osgDB/ReaderWriter>
5
6///////////////////////////////////////////////////////////////////////////
7// OSG reader plugin for the ".fbx" format.
8// See http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=6837478
9
10class ReaderWriterFBX : public osgDB::ReaderWriter
11{
12public:
13    ReaderWriterFBX()
14    {
15        supportsExtension("fbx", "FBX format");
16        supportsOption("Embedded", "(Write option) Embed textures in FBX file");
17        supportsOption("UseFbxRoot", "(Read/write option) If the source OSG root node is a simple group with no stateset, the writer will put its children directly under the FBX root, and vice-versa for reading");
18    }
19
20    const char* className() const { return "FBX reader/writer"; }
21
22    virtual ReadResult readNode(const std::string& filename, const Options*) const;
23    virtual WriteResult writeNode(const osg::Node&, const std::string& filename, const Options*) const;
24};
25
26///////////////////////////////////////////////////////////////////////////
27
28#endif
Note: See TracBrowser for help on using the browser.