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

Method DrawDiagModel

engine/Poseidon/World/Scene/SceneDraw.cpp:1851–1859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1849 Ref<Object> star = new ObjectColored(_collisionStar->GetShape(), -1);
1850 star->SetTransform(M4Identity);
1851 star->SetPosition(pos);
1852 star->SetScale(size * 4);
1853 star->SetConstantColor(color);
1854 GetLandscape()->ShowObject(star);
1855 }
1856}
1857
1858void Scene::DrawDiagModel(Vector3Par pos, LODShapeWithShadow* shape, float size, PackedColor color)
1859{
1860 Ref<Object> star = new ObjectColored(shape, -1);
1861 star->SetTransform(M4Identity);
1862 star->SetPosition(pos);

Callers

nothing calls this directly

Calls 6

ShowObjectMethod · 0.80
SetTransformMethod · 0.45
SetPositionMethod · 0.45
SetScaleMethod · 0.45
BoundingSphereMethod · 0.45
SetConstantColorMethod · 0.45

Tested by

no test coverage detected