mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
WIP of assimp integration.
This commit is contained in:
parent
32c7f2c7a7
commit
bf170ffbca
2135 changed files with 1260856 additions and 7 deletions
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
class AppSequence
|
||||
{
|
||||
public:
|
||||
S32 fps;
|
||||
F32 fps;
|
||||
|
||||
public:
|
||||
AppSequence() { }
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue