| 780 | } |
| 781 | |
| 782 | Object* Object::GetProxy(LODShapeWithShadow*& shape, int level, Matrix4& transform, Matrix4& invTransform, |
| 783 | const FrameBase& parent, int i) const |
| 784 | { |
| 785 | Shape* sShape = _shape->LevelOpaque(level); |
| 786 | |
| 787 | const ProxyObject& proxy = sShape->Proxy(i); |
| 788 | |
| 789 | transform = transform * proxy.obj->Transform(); |
| 790 | invTransform = proxy.invTransform * invTransform; |
| 791 | |
| 792 | // construct FrameWithInverse from transform and invTransform |
| 793 | shape = proxy.obj->GetShapeOnPos(transform.Position()); |
| 794 | return proxy.obj; |
| 795 | } |
| 796 | |
| 797 | void Object::DrawProxies(int level, ClipFlags clipFlags, const Matrix4& transform, const Matrix4& invTransform, |
| 798 | float dist2, float z2, const LightList& lights) |
no test coverage detected