|
Revision 12292, 1.5 kB
(checked in by robert, 2 years ago)
|
|
Ran svn propset -R svn:eol-style native . on the OpenSceneGraph
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | #ifndef READERWRITERFBX_H |
|---|
| 2 | #define READERWRITERFBX_H |
|---|
| 3 | |
|---|
| 4 | #include <osgDB/ReaderWriter> |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | class ReaderWriterFBX : public osgDB::ReaderWriter |
|---|
| 12 | { |
|---|
| 13 | public: |
|---|
| 14 | ReaderWriterFBX() |
|---|
| 15 | { |
|---|
| 16 | supportsExtension("fbx", "FBX format"); |
|---|
| 17 | supportsOption("Embedded", "(Write option) Embed textures in FBX file"); |
|---|
| 18 | 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"); |
|---|
| 19 | supportsOption("LightmapTextures", "(Read option) Interpret texture maps as overriding the lighting. 3D Studio Max may export files that should be interpreted in this way."); |
|---|
| 20 | supportsOption("TessellatePolygons", "(Read option) Tessellate mesh polygons. If the model contains concave polygons this may be necessary, however tessellating can be very slow and may erroneously produce triangle shards."); |
|---|
| 21 | } |
|---|
| 22 | |
|---|
| 23 | const char* className() const { return "FBX reader/writer"; } |
|---|
| 24 | |
|---|
| 25 | virtual ReadResult readNode(const std::string& filename, const Options*) const; |
|---|
| 26 | virtual WriteResult writeNode(const osg::Node&, const std::string& filename, const Options*) const; |
|---|
| 27 | }; |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | #endif |
|---|