private DrawRect ( |
||
rect | ||
Результат | void |
private void DrawRect(Rect rect)
{
GL.Vertex(new Vector3(rect.xMin, rect.yMin, 0f));
GL.Vertex(new Vector3(rect.xMax, rect.yMin, 0f));
GL.Vertex(new Vector3(rect.xMax, rect.yMin, 0f));
GL.Vertex(new Vector3(rect.xMax, rect.yMax, 0f));
GL.Vertex(new Vector3(rect.xMax, rect.yMax, 0f));
GL.Vertex(new Vector3(rect.xMin, rect.yMax, 0f));
GL.Vertex(new Vector3(rect.xMin, rect.yMax, 0f));
GL.Vertex(new Vector3(rect.xMin, rect.yMin, 0f));
}