| 208 | } |
| 209 | |
| 210 | void TSShapeInstance::initMeshObjects() |
| 211 | { |
| 212 | // add objects to trees |
| 213 | S32 numObjects = mShape->objects.size(); |
| 214 | mMeshObjects.setSize(numObjects); |
| 215 | for (S32 i=0; i<numObjects; i++) |
| 216 | { |
| 217 | const TSObject * obj = &mShape->objects[i]; |
| 218 | MeshObjectInstance * objInst = &mMeshObjects[i]; |
| 219 | |
| 220 | // hook up the object to it's node and transforms. |
| 221 | objInst->mTransforms = &mNodeTransforms; |
| 222 | objInst->nodeIndex = obj->nodeIndex; |
| 223 | |
| 224 | // set up list of meshes |
| 225 | if (obj->numMeshes) |
| 226 | objInst->meshList = &mShape->meshes[obj->startMeshIndex]; |
| 227 | else |
| 228 | objInst->meshList = NULL; |
| 229 | |
| 230 | objInst->object = obj; |
| 231 | objInst->forceHidden = false; |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | void TSShapeInstance::setMaterialList( TSMaterialList *matList ) |
| 236 | { |
no test coverage detected