| 20 | ILubyte *iRegionMask = NULL; |
| 21 | |
| 22 | void ILAPIENTRY iluRegionfv(ILpointf *Points, ILuint n) |
| 23 | { |
| 24 | if (Points == NULL || n == 0) { |
| 25 | ifree(RegionPointsi); |
| 26 | ifree(RegionPointsf); |
| 27 | RegionPointsf = NULL; |
| 28 | PointNum = 0; |
| 29 | return; |
| 30 | } |
| 31 | if (n < 3) { |
| 32 | ilSetError(ILU_INVALID_PARAM); |
| 33 | return; |
| 34 | } |
| 35 | ifree(RegionPointsi); |
| 36 | ifree(RegionPointsf); |
| 37 | RegionPointsf = (ILpointf*)ialloc(sizeof(ILpointf) * n); |
| 38 | if (RegionPointsf == NULL) |
| 39 | return; |
| 40 | memcpy(RegionPointsf, Points, sizeof(ILpointi) * n); |
| 41 | PointNum = n; |
| 42 | return; |
| 43 | } |
| 44 | |
| 45 | |
| 46 | void ILAPIENTRY iluRegioniv(ILpointi *Points, ILuint n) |
nothing calls this directly
no test coverage detected