// Token: 0x060001C8 RID: 456 RVA: 0x00010CBC File Offset: 0x0000EEBC public void drawlineGL(MyVector totalLine) { this.lineMaterial.SetPass(0); GL.PushMatrix(); GL.Begin(1); for (int i = 0; i < totalLine.size(); i++) { mLine mLine = (mLine)totalLine.elementAt(i); GL.Color(new Color(mLine.r, mLine.g, mLine.b, mLine.a)); int num = mLine.x1 * mGraphics.zoomLevel; int num2 = mLine.y1 * mGraphics.zoomLevel; int num3 = mLine.x2 * mGraphics.zoomLevel; int num4 = mLine.y2 * mGraphics.zoomLevel; if (this.isTranslate) { num += this.translateX; num2 += this.translateY; num3 += this.translateX; num4 += this.translateY; } for (int j = 0; j < mGraphics.zoomLevel; j++) { GL.Vertex(new Vector2((float)(num + j), (float)(num2 + j))); GL.Vertex(new Vector2((float)(num3 + j), (float)(num4 + j))); if (j > 0) { GL.Vertex(new Vector2((float)(num + j), (float)num2)); GL.Vertex(new Vector2((float)(num3 + j), (float)num4)); GL.Vertex(new Vector2((float)num, (float)(num2 + j))); GL.Vertex(new Vector2((float)num3, (float)(num4 + j))); } } } GL.End(); GL.PopMatrix(); totalLine.removeAllElements(); }