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

Method begin

Engine/source/collision/clippedPolyList.cpp:125–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123//----------------------------------------------------------------------------
124
125void ClippedPolyList::begin(BaseMatInstance* material,U32 surfaceKey)
126{
127 mPolyList.increment();
128 Poly& poly = mPolyList.last();
129 poly.object = mCurrObject;
130 poly.material = material;
131 poly.vertexStart = mIndexList.size();
132 poly.surfaceKey = surfaceKey;
133
134 poly.polyFlags = 0;
135 if(ClippedPolyList::allowClipping)
136 poly.polyFlags = CLIPPEDPOLYLIST_FLAG_ALLOWCLIPPING;
137}
138
139
140//----------------------------------------------------------------------------

Callers 3

cullUnusedVertsMethod · 0.45
triangulateMethod · 0.45
generateNormalsMethod · 0.45

Calls 3

incrementMethod · 0.80
lastMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected