WIP of assimp integration.

This commit is contained in:
Areloch 2019-02-08 16:25:43 -06:00
parent 32c7f2c7a7
commit bf170ffbca
2135 changed files with 1260856 additions and 7 deletions

View file

@ -35,6 +35,8 @@ struct AppMaterial
virtual String getName() const { return "unnamed"; }
virtual U32 getFlags() { return flags; }
virtual F32 getReflectance() { return reflectance; }
static String cleanString(const String& str);
};
#endif // _APPMATERIAL_H_

View file

@ -36,7 +36,7 @@
class AppSequence
{
public:
S32 fps;
F32 fps;
public:
AppSequence() { }

View file

@ -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);
}

View file

@ -57,6 +57,7 @@ public:
static void addFormat(String name, String extension);
static String getFormatExtensions();
static String getFormatFilters();
static bool isSupportedFormat(String extension);
public:
enum eLoadPhases