I have a small(?) problem here:
typedef struct
{
VECTOR3D n;
float d;
} Plane;
typedef struct
{
Plane* plane;
int size;
} VecPlane;
void planesSetSize(VecPlane* p, const int csize)
{
if (p != NULL)
{
if (csize != p->size)
{
*p->plane = (Plane*)realloc(p->plane, csize*sizeof(Plane));
*p->size = csize;
}
}
}
when compiling i get
"can not convert 'POINTER' to 'struct Plane'"
for *p->plane = (Plane*)realloc(p->plane, csize*sizeof(Plane));
and
for *p->size = csize;
Tried a lot of combinations with () and * but so far none worked
Any help appreciated