MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / insertUV0

Method insertUV0

Engine/source/collision/optimizedPolyList.cpp:136–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136U32 OptimizedPolyList::insertUV0(const Point2F& uv)
137{
138 S32 retIdx = -1;
139
140 for (U32 i = 0; i < mUV0s.size(); i++)
141 {
142 if (mUV0s[i].equal(uv))
143 {
144 retIdx = i;
145 break;
146 }
147 }
148
149 if (retIdx == -1)
150 {
151 retIdx = mUV0s.size();
152 mUV0s.push_back(uv);
153 }
154
155 return (U32)retIdx;
156}
157
158U32 OptimizedPolyList::insertUV1(const Point2F& uv)
159{

Callers 1

buildPolyListMethod · 0.80

Calls 3

sizeMethod · 0.45
equalMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected