mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Merge branch 'AssimpWIP' of https://github.com/Areloch/Torque3D into development
This commit is contained in:
commit
951594259f
909 changed files with 367086 additions and 2721 deletions
|
|
@ -1325,6 +1325,17 @@ String TSShapeLoader::getFormatFilters()
|
|||
return output.end();
|
||||
}
|
||||
|
||||
bool TSShapeLoader::isSupportedFormat(String extension)
|
||||
{
|
||||
String extLower = String::ToLower(extension);
|
||||
for (U32 n = 0; n < smFormats.size(); ++n)
|
||||
{
|
||||
if (smFormats[n].mExtension.equal(extLower))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
DefineEngineFunction( getFormatExtensions, const char*, ( ),,
|
||||
"Returns a list of supported shape format extensions separated by tabs."
|
||||
"Example output: *.dsq TAB *.dae TAB")
|
||||
|
|
@ -1338,3 +1349,8 @@ DefineEngineFunction( getFormatFilters, const char*, ( ),,
|
|||
{
|
||||
return Con::getReturnBuffer(TSShapeLoader::getFormatFilters());
|
||||
}
|
||||
|
||||
DefineEngineFunction(isSupportedFormat, bool, (const char* extension), , "")
|
||||
{
|
||||
return TSShapeLoader::isSupportedFormat(extension);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue