Switch to indicating highlight, allow feature to determine highlight

This commit is contained in:
John Lewin 2019-02-22 07:41:14 -08:00
parent 1e965fc2e7
commit 2832f1f912
5 changed files with 33 additions and 17 deletions

View file

@ -207,12 +207,14 @@ namespace MatterHackers.GCodeVisualizer
{
graphics2DGl.PreRender(Color.White);
GL.Begin(BeginMode.Triangles);
int lastFeature = endFeature - 1;
for (int i = startFeature; i < endFeature; i++)
{
RenderFeatureBase feature = renderFeatures[renderInfo.EndLayerIndex][i];
if (feature != null)
{
feature.Render(graphics2DGl, renderInfo);
feature.Render(graphics2DGl, renderInfo, highlightFeature: i == lastFeature);
}
}
GL.End();