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

Method Hide

engine/Poseidon/World/Simulation/Animation/Animation.cpp:861–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

859 for (int i = 0; i < faces.Size(); i++)
860 {
861 Poly& face = lShape->Face(faces[i]);
862 face.SetTexture(texture);
863 }
864 for (int i = 0; i < sel.NSections(); i++)
865 {
866 int sec = sel.GetSection(i);
867 ShapeSection& ss = lShape->GetSection(sec);
868 ss.properties.SetTexture(texture);
869 }
870}
871
872void AnimationSection::Hide(LODShape* shape, int level) const
873{
874 if (_selection[level] < 0)
875 {
876 return;
877 }
878 Shape* lShape = shape->Level(level);
879 PoseidonAssert(lShape);
880 const NamedSelection& sel = lShape->NamedSel(_selection[level]);
881 const FaceSelection& faces = sel.FaceOffsets(lShape);
882 for (int i = 0; i < faces.Size(); i++)
883 {
884 Poly& face = lShape->Face(faces[i]);
885 face.OrSpecial(IsHidden);

Callers 13

DrawProxiesMethod · 0.45
DrawMethod · 0.45
ShowHeadMethod · 0.45
AnimateMethod · 0.45
AnimateMethod · 0.45
AnimateMethod · 0.45
DrawProxiesMethod · 0.45
AnimateMethod · 0.45
AnimateMethod · 0.45
AnimateMethod · 0.45
AnimateMethod · 0.45
AnimateMethod · 0.45

Calls 5

LevelMethod · 0.80
SizeMethod · 0.45
OrSpecialMethod · 0.45
NSectionsMethod · 0.45
GetSectionMethod · 0.45

Tested by

no test coverage detected