Public Member Functions | |
| mixed | Init (mixed pGrannyLoader, mixed mpMesh, mixed mpSkeleton, mixed szMatName, mixed miTargetSubMesh) |
| mixed | WeightBoneIndex2GrannyBoneID (mixed iWeightBoneIndex) |
| translate weightindex to bone index using info from 0xCA5E0c0a (only in models, not in anims) | |
| mixed | WeightBoneIndex2OgreBoneHandle (mixed iWeightBoneIndex) |
| mixed | Execute (mixed pLoaderSubMesh) |
Definition at line 4069 of file lua_pseudo_code.cpp.
| mixed cSubMeshConstructor::Init | ( | mixed | pGrannyLoader, | |
| mixed | mpMesh, | |||
| mixed | mpSkeleton, | |||
| mixed | szMatName, | |||
| mixed | miTargetSubMesh | |||
| ) | [inline] |
~ int miCurrentSubMesh ~ int miTargetSubMesh ~ cGrannyLoader_i2* mpGrannyLoader ~ Ogre::MeshPtr& mpMesh ~ Ogre::SkeletonPtr& mpSkeleton ~ std::string msMatName ~ std::map<int,int> mWeightBoneIndexMap ---< caches WeightBoneIndex2OgreBoneHandle results
Definition at line 4078 of file lua_pseudo_code.cpp.
| mixed cSubMeshConstructor::WeightBoneIndex2GrannyBoneID | ( | mixed | iWeightBoneIndex | ) | [inline] |
translate weightindex to bone index using info from 0xCA5E0c0a (only in models, not in anims)
Definition at line 4081 of file lua_pseudo_code.cpp.
| mixed cSubMeshConstructor::WeightBoneIndex2OgreBoneHandle | ( | mixed | iWeightBoneIndex | ) | [inline] |
converts a boneindex from the granny vertex weights to an ogre bone index in the skeleton returns -1 if not found
Definition at line 4085 of file lua_pseudo_code.cpp.
| mixed cSubMeshConstructor::Execute | ( | mixed | pLoaderSubMesh | ) | [inline] |
~ --- used for multi indexing : miPosition,miNormal,miColor,miTexCoord ~ class cMultiIndex { public: ~ int a,b,c,d ~ cMultiIndex (int a,int b,int c=0,int d=0) : a(a), b(b), c(c), d(d) {} ~ } ~ struct cMultiIndexCmp { ~ bool operator() (const cMultiIndex x, const cMultiIndex y) const { ~ -- bugfix thanks to XShocK ~ return (x.a < y.a) || ~ (x.a == y.a && x.b < y.b) || ~ (x.a == y.a && x.b == y.b && x.c < y.c) || ~ (x.a == y.a && x.b == y.b && x.c == y.c && x.d < y.d) ~ } ~ } ~ --- creates an Ogre::SubMesh and fills it with data ~ void operator () (cGrannyLoader_i2::cSubMesh& pLoaderSubMesh) {
Definition at line 4103 of file lua_pseudo_code.cpp.
1.5.6