|
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 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | class ReaderWriterFBX : public osgDB::ReaderWriter |
|---|
| 12 | { |
|---|
| 13 | public: |
|---|
| 14 | ReaderWriterFBX() |
|---|
| 15 | { |
|---|
| 16 | supportsExtension("fbx", "FBX format"); |
|---|
| 17 | } |
|---|
| 18 | |
|---|
| 19 | const char* className() const { return "FBX reader/writer"; } |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | ReadResult readNode(const std::string& utf8filename, const Options*) const; |
|---|
| 23 | |
|---|
| 24 | private: |
|---|
| 25 | mutable OpenThreads::ReentrantMutex _serializerMutex; |
|---|
| 26 | }; |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | #endif |
|---|