| 96 | } |
| 97 | |
| 98 | void 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 | |
| 115 | void RecastPolyList::plane(U32 v1, U32 v2, U32 v3) |
| 116 | { |
no test coverage detected