mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
Converts all game, gui editor, and system classes to utilize assets
Processed core, tools and default modules to utilize assets Converted all console types that were string based, such as TypeImageFilename to utilize const char*/the string table, which avoids a lot of type swapping shenanigans and avoids string corruption Removed unneeded MainEditor mockup module Removed some unused/duplicate image assets from the tools
This commit is contained in:
parent
83b0432283
commit
5525f8ecdd
1708 changed files with 19619 additions and 4596 deletions
|
|
@ -36,6 +36,8 @@
|
|||
#include "collision/convex.h"
|
||||
#endif
|
||||
|
||||
#include "T3D/assets/MaterialAsset.h"
|
||||
|
||||
class ConvexShape;
|
||||
|
||||
// Crap name, but whatcha gonna do.
|
||||
|
|
@ -134,14 +136,17 @@ public:
|
|||
struct surfaceMaterial
|
||||
{
|
||||
// The name of the Material we will use for rendering
|
||||
String materialName;
|
||||
DECLARE_MATERIALASSET(surfaceMaterial, Material);
|
||||
|
||||
DECLARE_MATERIALASSET_SETGET(surfaceMaterial, Material);
|
||||
|
||||
// The actual Material instance
|
||||
BaseMatInstance* materialInst;
|
||||
|
||||
surfaceMaterial()
|
||||
{
|
||||
materialName = "";
|
||||
INIT_MATERIALASSET(Material);
|
||||
|
||||
materialInst = NULL;
|
||||
}
|
||||
};
|
||||
|
|
@ -258,8 +263,8 @@ protected:
|
|||
|
||||
protected:
|
||||
|
||||
// The name of the Material we will use for rendering
|
||||
String mMaterialName;
|
||||
DECLARE_MATERIALASSET(ConvexShape, Material);
|
||||
DECLARE_MATERIALASSET_SETGET(ConvexShape, Material);
|
||||
|
||||
// The actual Material instance
|
||||
BaseMatInstance* mMaterialInst;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue