Updated Model (markdown)

Chuck Walbourn 2021-09-28 23:31:52 -07:00
Родитель 0608ebcd5f
Коммит 790ed322a2
1 изменённых файлов: 8 добавлений и 0 удалений

@ -67,10 +67,18 @@ There is an overload of **Draw** which takes an array of transformation matrices
```cpp
auto tank = Model::CreateFromSDKMESH(device, L"tank.sdkmesh", *m_fx, ModelLoader_IncludeBones);
uint32_t index = 0;
for(auto it : tank->bones)
{
// Find bone index for the turret model mesh and set a local rotation into
// matching the boneMatrices array.
if (_wcsicmp(L"turret", it.name.c_str()) == 0)
{
tank->boneMatrices[index] = ...;
break;
}
++index;
}
size_t nbones = tank->bones.size();