50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
/****************************************************************************************
|
|
|
|
Copyright (C) 2015 Autodesk, Inc.
|
|
All rights reserved.
|
|
|
|
Use of this software is subject to the terms of the Autodesk license agreement
|
|
provided at the time of installation or download, or which otherwise accompanies
|
|
this software in either electronic or hard copy form.
|
|
|
|
****************************************************************************************/
|
|
|
|
#include <fbxsdk.h>
|
|
|
|
#include "DisplayCommon.h"
|
|
#include "DisplayCamera.h"
|
|
|
|
void DisplayGlobalLightSettings(FbxGlobalSettings* pGlobalSettings)
|
|
{
|
|
DisplayColor("Ambient Color: ", pGlobalSettings->GetAmbientColor());
|
|
DisplayString("");
|
|
}
|
|
|
|
|
|
void DisplayGlobalCameraSettings(FbxGlobalSettings* pGlobalSettings)
|
|
{
|
|
DisplayString("Default Camera: ", pGlobalSettings->GetDefaultCamera());
|
|
DisplayString("");
|
|
}
|
|
|
|
|
|
void DisplayGlobalTimeSettings(FbxGlobalSettings* pGlobalSettings)
|
|
{
|
|
char lTimeString[256];
|
|
|
|
DisplayString("Time Mode : ", FbxGetTimeModeName(pGlobalSettings->GetTimeMode()));
|
|
|
|
FbxTimeSpan lTs;
|
|
FbxTime lStart, lEnd;
|
|
pGlobalSettings->GetTimelineDefaultTimeSpan(lTs);
|
|
lStart = lTs.GetStart();
|
|
lEnd = lTs.GetStop();
|
|
DisplayString("Timeline default timespan: ");
|
|
DisplayString(" Start: ", lStart.GetTimeString(lTimeString, FbxUShort(256)));
|
|
DisplayString(" Stop : ", lEnd.GetTimeString(lTimeString, FbxUShort(256)));
|
|
|
|
DisplayString("");
|
|
}
|
|
|
|
|