mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-25 05:40:21 -04:00
* Replace C++/CLI components with P/Invoke * Deleted C++/CLI projects * Use Utf8StringHandle to marshal UTF-8 strings * Use plaform-default calling convention * Handle DLL preloading on Linux and macOS * Change intermediate and output directories of native projects * Improve P/Invoke documentation
34 lines
479 B
C++
34 lines
479 B
C++
#include <fbxsdk.h>
|
|
|
|
#include "asfbx_context.h"
|
|
|
|
AsFbxContext::AsFbxContext()
|
|
{
|
|
pSdkManager = nullptr;
|
|
pScene = nullptr;
|
|
pTextures = nullptr;
|
|
pMaterials = nullptr;
|
|
pExporter = nullptr;
|
|
pBindPose = nullptr;
|
|
}
|
|
|
|
AsFbxContext::~AsFbxContext()
|
|
{
|
|
framePaths.clear();
|
|
|
|
delete pMaterials;
|
|
delete pTextures;
|
|
|
|
if (pExporter != nullptr) {
|
|
pExporter->Destroy();
|
|
}
|
|
|
|
if (pScene != nullptr) {
|
|
pScene->Destroy();
|
|
}
|
|
|
|
if (pSdkManager != nullptr) {
|
|
pSdkManager->Destroy();
|
|
}
|
|
}
|