| 44 | |
| 45 | |
| 46 | void ILAPIENTRY iluRegioniv(ILpointi *Points, ILuint n) |
| 47 | { |
| 48 | if (Points == NULL || n == 0) { |
| 49 | ifree(RegionPointsi); |
| 50 | ifree(RegionPointsf); |
| 51 | RegionPointsi = NULL; |
| 52 | PointNum = 0; |
| 53 | return; |
| 54 | } |
| 55 | if (n < 3) { |
| 56 | ilSetError(ILU_INVALID_PARAM); |
| 57 | return; |
| 58 | } |
| 59 | ifree(RegionPointsi); |
| 60 | ifree(RegionPointsf); |
| 61 | RegionPointsi = (ILpointi*)ialloc(sizeof(ILpointi) * n); |
| 62 | if (RegionPointsi == NULL) |
| 63 | return; |
| 64 | memcpy(RegionPointsi, Points, sizeof(ILpointi) * n); |
| 65 | PointNum = n; |
| 66 | return; |
| 67 | } |
| 68 | |
| 69 | |
| 70 | // Inserts edge into list in order of increasing xIntersect field. |
nothing calls this directly
no test coverage detected