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

Method begin

Engine/source/navigation/recastPolyList.cpp:98–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void RecastPolyList::begin(BaseMatInstance *material, U32 surfaceKey)
99{
100 vidx = 0;
101 // If we've reached the tri cap, grow the array.
102 if(ntris == tricap)
103 {
104 if(tricap == 0) tricap = 16;
105 else tricap *= 2;
106 // Allocate new vertex storage.
107 S32 *newtris = new S32[tricap*3];
108
109 dMemcpy(newtris, tris, ntris*3 * sizeof(S32));
110 dFree(tris);
111 tris = newtris;
112 }
113}
114
115void RecastPolyList::plane(U32 v1, U32 v2, U32 v3)
116{

Callers 2

renderLinksMethod · 0.45
renderTileDataMethod · 0.45

Calls 2

dMemcpyFunction · 0.50
dFreeFunction · 0.50

Tested by

no test coverage detected