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

Revision 10780, 0.8 kB (checked in by robert, 4 years ago)

From Michael Platings, "This plugin adds support for the Autodesk FBX file format. It imports animations, including skeletal and morph animations, hence all my previous submissions to osgAnimation. The plugin won't build without the changes made in the "osgAnimation small additions" submission (14th August).
The plugin requires the FBX SDK to be installed, available from http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=6837478"

Line 
1#ifndef READERWRITERFBX_H
2#define READERWRITERFBX_H
3
4#include <OpenThreads/ReentrantMutex>
5#include <osgDB/ReaderWriter>
6
7///////////////////////////////////////////////////////////////////////////
8// OSG reader plugin for the ".fbx" format.
9// See http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=6837478
10
11class ReaderWriterFBX : public osgDB::ReaderWriter
12{
13public:
14    ReaderWriterFBX()
15    {
16        supportsExtension("fbx", "FBX format");
17    }
18
19    const char* className() const { return "FBX reader/writer"; }
20
21    /// The FBX SDK interprets the filename as UTF-8
22    ReadResult readNode(const std::string& utf8filename, const Options*) const;
23 
24private:
25    mutable OpenThreads::ReentrantMutex _serializerMutex;
26};
27
28///////////////////////////////////////////////////////////////////////////
29
30#endif
Note: See TracBrowser for help on using the browser.