MCPcopy Create free account
hub / github.com/DentonW/DevIL / ILAPIENTRY iluRegionfv

Function ILAPIENTRY iluRegionfv

DevIL/src-ILU/src/ilu_region.cpp:22–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20ILubyte *iRegionMask = NULL;
21
22void 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
46void ILAPIENTRY iluRegioniv(ILpointi *Points, ILuint n)

Callers

nothing calls this directly

Calls 1

ilSetErrorFunction · 0.85

Tested by

no test coverage detected