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

Method GetTexture

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

Source from the content-addressed store, hash-verified

816 }
817
818 Register(shape, nameSel, altName);
819}
820
821void AnimationSection::Deinit()
822{
823 for (int level = 0; level < MAX_LOD_LEVELS; level++)
824 {
825 _selection[level] = -1;
826 }
827}
828
829Texture* AnimationSection::GetTexture(LODShape* shape) const
830{
831 for (int level = 0; level < MAX_LOD_LEVELS; level++)
832 {
833 if (_selection[level] < 0)
834 {
835 continue;
836 }
837 Shape* lShape = shape->Level(level);
838 const NamedSelection& sel = lShape->NamedSel(_selection[level]);
839 if (sel.Faces().Size() <= 0)

Callers 8

UnderRoadSurfaceMethod · 0.45
InitMethod · 0.45
UVOffsetMethod · 0.45
RestoreMethod · 0.45
IntersectMethod · 0.45
DrawDecalMethod · 0.45
Draw2DMethod · 0.45

Calls 2

LevelMethod · 0.80
SizeMethod · 0.45

Tested by

no test coverage detected