MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetProxy

Method GetProxy

engine/Poseidon/World/Scene/Object.cpp:782–795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

780}
781
782Object* 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
797void Object::DrawProxies(int level, ClipFlags clipFlags, const Matrix4& transform, const Matrix4& invTransform,
798 float dist2, float z2, const LightList& lights)

Callers 2

DrawExShadowMethod · 0.45

Calls 5

LevelOpaqueMethod · 0.80
ProxyMethod · 0.80
TransformMethod · 0.45
GetShapeOnPosMethod · 0.45
PositionMethod · 0.45

Tested by

no test coverage detected