#include "MyOwnWriterReader.h"
FbxWriter* CreateMyOwnWriter(FbxManager& pManager, FbxExporter& , int , int pPluginID)
{
return FbxNew< MyOwnWriter >(pManager, pPluginID);
}
void* GetMyOwnWriterInfo(FbxWriter::EInfoRequest pRequest, int )
{
static const char* sExt[] =
{
"ABC",
0
};
static const char* sDesc[] =
{
"Example Custom FileFormat (*.ABC)",
0
};
switch (pRequest)
{
case FbxWriter::eInfoExtension:
return sExt;
case FbxWriter::eInfoDescriptions:
return sDesc;
case FbxWriter::eInfoVersions:
return 0;
default:
return 0;
}
}
void FillOwnWriterIOSettings(FbxIOSettings& )
{
}
FbxReader* CreateMyOwnReader(FbxManager& pManager, FbxImporter& , int , int pPluginID)
{
return FbxNew< MyOwnReader >(pManager, pPluginID);
}
void *GetMyOwnReaderInfo(FbxReader::EInfoRequest pRequest, int pId)
{
switch (pRequest)
{
case FbxReader::eInfoExtension:
return GetMyOwnWriterInfo(FbxWriter::eInfoExtension, pId);
case FbxReader::eInfoDescriptions:
return GetMyOwnWriterInfo(FbxWriter::eInfoDescriptions, pId);
default:
return 0;
}
}
void FillOwnReaderIOSettings(FbxIOSettings& )
{
}