<?xml version="1.0"?>
-<GroupBox CornerRadius="0" Margin="0" Caption="{Name}" Height="Fit" Width="160">
- <VerticalStack>
+
+ <VerticalStack Spacing="0" Fit="true" Width="160">
+ <HorizontalStack Background="Black">
+ <Label Text="{Name}" Width="Stretched" Font="doid bold, 10" Margin="2"/>
+ <Button Caption="Reset" MouseClick="onResetClick" Height="Fit"/>
+ </HorizontalStack>
<HorizontalStack>
<Label Text="Current:" Style="FpsLabel"/>
<Label Text="{current}" Style="FpsDisp"/>
<Label Text="Cpt:" Style="FpsLabel"/>
<Label Text="{cptMeasures}" Style="FpsDisp"/>
</HorizontalStack>-->
- <Button Caption="Reset" MouseClick="onResetClick"/>
</VerticalStack>
-</GroupBox>
+
public string drawing = "";
public string layouting = "";
public string clipping = "";
+ #if MEASURE_TIME
+ public PerformanceMeasure glDrawMeasure = new PerformanceMeasure("OpenGL Draw", 10);
+ #endif
+
#endregion
#region ctor
this.CrowInterface.updateMeasure,
this.CrowInterface.layoutingMeasure,
this.CrowInterface.clippingMeasure,
- this.CrowInterface.drawingMeasure
+ this.CrowInterface.drawingMeasure,
+ this.glDrawMeasure
}
);
#endif
}
void OpenGLDraw()
{
+ #if MEASURE_TIME
+ glDrawMeasure.StartCycle();
+ #endif
bool blend, depthTest;
GL.GetBoolean (GetPName.Blend, out blend);
GL.GetBoolean (GetPName.DepthTest, out depthTest);
GL.Disable (EnableCap.Blend);
if (depthTest)
GL.Enable (EnableCap.DepthTest);
+ #if MEASURE_TIME
+ glDrawMeasure.StopCycle();
+ #endif
}
#endregion