CapType cap;
bool closed;
bool noJoin;
- int lineCount;
+ int lineCount, fillCount;
lineColor = black;
+ ~BBPath()
+ {
+ fillIndices.free();
+ lineIndices.free();
+ vbo.free();
+ }
+
property ColorAlpha lineColor
{
set { lineColor = value; }
delete points;
if(closed)
+ {
fillIndices.upload(tc * sizeof(uint16), ixFill);
+ fillCount = tc;
+ }
- delete ixFill;
if(ixFill != ix)
delete ix;
+ delete ixFill;
}
void render()
if(closed)
{
glimtkColor4f(fillColor.color.r/255.0f, fillColor.color.g/255.0f, fillColor.color.b/255.0f, fillColor.a/255.0f);
- fillIndices.draw(GLIMTKMode::triangleFan, nodes.count, glTypeUnsignedShort, null);
+ fillIndices.draw(GLIMTKMode::triangleFan, fillCount, glTypeUnsignedShort, null);
}
// Line
}
BBPath::update();
+ nodes.Free();
}
}
}
BBPath::update();
+ nodes.Free();
}
}
}
BBPath::update();
+ nodes.Free();
}
}