private static bool BeginLineDrawing(Matrix4x4 matrix, bool dottedLines, int mode)
{
if (Event.current.type != EventType.Repaint)
{
return(false);
}
Color col = color * lineTransparency;
if (dottedLines)
{
HandleUtility.ApplyDottedWireMaterial(zTest);
}
else
{
HandleUtility.ApplyWireMaterial(zTest);
}
GL.PushMatrix();
GL.MultMatrix(matrix);
GL.Begin(mode);
GL.Color(col);
return(true);
}