Updated Model (markdown)

Chuck Walbourn 2022-08-11 12:56:19 -07:00
Родитель db83cc882c
Коммит 649f1f09a4
1 изменённых файлов: 37 добавлений и 0 удалений

@ -15,6 +15,43 @@ See also [[EffectFactory]]
**Related tutorials:** [[Rendering a model]], [[Animating using model bones]], [[Using skinned models]]
```mermaid
classDiagram
direction LR
class Model{
+name
+Copy*BoneTransforms*()
+Draw()
+DrawSkinned()
+UpdateEffects()
}
class ModelBone
class ModelMesh{
+boundingSphere
+boundingBox
+boneIndex
+name
+PrepareForRendering()
+Draw()
+DrawSkinned()
}
class ModelMeshPart{
+primitiveType
+indexFormat
+vertexStride
+indexBuffer
+vertexBuffer
+effect
+Draw()
+DrawInstanced()
+CreateInputLayout()
+ModifyEffect()
}
Model --o ModelBone : bones
Model --o ModelMesh : meshes
ModelMesh --o ModelMeshPart : meshParts
```
# Header
```cpp
#include <Model.h>