5#include "gfx/mdl/ModelData.h"
6#include "gfx/Material.h"
7#include "Physics/Physics.h"
8#include "MaterialInfo.h"
14 ref class MaterialInstance;
19 kmyGfx::ModelData *
obj;
22 ModelData(System::String^ path, System::Guid guid,
bool vtxCompress);
39 kmyGfx::GfxObject::sync();
59 System::Collections::Generic::Dictionary<System::String^, SharpKmyMath::Vector2>^
getMotion();
80 if (
obj)
obj->setSkinnedBoundSphereRadiusScale(v);
83 return obj ?
obj->getSkinnedBoundSphereRadiusScale() : 1.0f;
87 void loadForImportTest();
88 void unloadForImportTest();
92 enum class VrmLookAtType :
int
100 ModelExporter::ModelDataWrap^ GetModelData();
102 int vrmGetTextureNum();
103 System::String^ vrmGetTextureName(
int index);
104 void vrmStoreTextureToFile(
int index, System::String^ path);
105 array<Byte>^ vrmGetImageArray(
int index);
107 System::String^ vrmGetMaterialDef(
int index);
108 VrmLookAtType vrmGetLookAtType();
Definition: MaterialInfo.h:7
Definition: ModelData.h:17
System::Collections::Generic::List< System::String^> getMotionNameList()
Definition: ModelData.cpp:268
float getStartTime()
Definition: ModelData.cpp:304
void setMaterialGUID(int index, System::Guid id)
Definition: ModelData.cpp:491
array< System::String^> getTextureNameList()
Definition: ModelData.cpp:213
void renamePath(System::String^ path)
Definition: ModelData.cpp:102
SharpKmyMath::Vector3 getPreviewAngle()
Definition: ModelData.cpp:328
System::String getPath()
Definition: ModelData.cpp:204
void clearMaterialGUID()
Definition: ModelData.h:67
bool evalMaterialCount()
Definition: ModelData.h:65
bool getVertexCompressMode()
Definition: ModelData.cpp:509
void constructPBRMaterial()
Definition: ModelData.cpp:357
bool hasUnTriangulateMesh()
Definition: ModelData.cpp:569
void setBlendType(System::String ^mtlname, int type)
Definition: ModelData.cpp:115
SharpKmyMath::Vector3 getPreviewOffset()
Definition: ModelData.cpp:318
float getSkinnedBoundSphereRadiusScale()
Definition: ModelData.h:82
SharpKmyMath::Vector3 getSize()
Definition: ModelData.cpp:430
int getMaterialIndex(System::String ^name)
Definition: ModelData.cpp:130
array< System::String^> getNodeNameList()
Definition: ModelData.cpp:247
MaterialInfo getMaterialInfo(int index)
Definition: ModelData.cpp:78
Material getMaterial(u32 index)
Definition: ModelData.cpp:181
kmyGfx::ModelData * obj
Definition: ModelData.h:19
bool isOverInfluenceCount(int index)
Definition: ModelData.cpp:191
void load()
Definition: ModelData.cpp:50
void ReleaseForToolWithSync()
Definition: ModelData.h:36
void reconstruct()
Definition: ModelData.cpp:345
static SharpKmyMath::Vector3 getCenterImpl(kmyGfx::ModelData *obj)
Definition: ModelData.cpp:463
int getMeshClusterMaterialIndex(int index)
Definition: ModelData.cpp:146
void setSkinnedBoundSphereRadiusScale(float v)
Definition: ModelData.h:79
ModelData(System::String^ path, System::Guid guid, bool vtxCompress)
Definition: ModelData.cpp:15
void unload()
Definition: ModelData.cpp:71
float getEndTime()
Definition: ModelData.cpp:311
bool isModified()
Definition: ModelData.cpp:351
~ModelData()
Definition: ModelData.cpp:36
void validateVertexDesc()
Definition: ModelData.h:66
bool own
Definition: ModelData.h:20
ModelData(kmyGfx::ModelData *o)
Definition: ModelData.h:25
size_t getIndexCount(int index)
Definition: ModelData.cpp:161
void initializeByDef(System::String ^path)
Definition: ModelData.cpp:89
System::Collections::Generic::Dictionary< System::String^, SharpKmyMath::Vector2 > getMotion()
Definition: ModelData.cpp:285
SharpKmyMath::Vector3 getCenter()
Definition: ModelData.cpp:455
void saveDefFile(System::String^ path)
Definition: ModelData.cpp:338
int getBoneCount(int index)
Definition: ModelData.cpp:174
array< SharpKmyMath::Vector3 > getMeshCollisionVertices()
Definition: ModelData.cpp:519
void setVertexCompressMode(bool compress)
Definition: ModelData.cpp:500