Nextrek
Diff Revisions
116
vs
117
for /3DSpace/Assets/Custum/Scripts/DrawCross.cs
|
@@ -41,21 +41,23 @@ |
41 |
41 |
|
rectMat.SetPass(0); |
42 |
42 |
|
|
43 |
43 |
|
GL.PushMatrix(); |
44 |
|
- |
GL.LoadPixelMatrix(); |
|
44 |
+ |
try { |
|
45 |
+ |
GL.LoadPixelMatrix(); |
45 |
46 |
|
|
46 |
|
- |
GL.Begin(GL.LINES); |
47 |
|
- |
GL.Color(Color.white); |
48 |
|
- |
GL.Vertex3(cen.x-len,cen.y,0); |
49 |
|
- |
GL.Vertex3(cen.x+len,cen.y,0); |
50 |
|
- |
GL.End(); |
|
47 |
+ |
GL.Begin(GL.LINES); |
|
48 |
+ |
GL.Color(Color.white); |
|
49 |
+ |
GL.Vertex3(cen.x-len,cen.y,0); |
|
50 |
+ |
GL.Vertex3(cen.x+len,cen.y,0); |
|
51 |
+ |
GL.End(); |
51 |
52 |
|
|
52 |
53 |
|
|
53 |
|
- |
GL.Begin(GL.LINES); |
54 |
|
- |
GL.Color(Color.white); |
55 |
|
- |
GL.Vertex3(cen.x,cen.y-len,0); |
56 |
|
- |
GL.Vertex3(cen.x,cen.y+len,0); |
57 |
|
- |
GL.End(); |
58 |
|
- |
|
59 |
|
- |
GL.PopMatrix(); |
|
54 |
+ |
GL.Begin(GL.LINES); |
|
55 |
+ |
GL.Color(Color.white); |
|
56 |
+ |
GL.Vertex3(cen.x,cen.y-len,0); |
|
57 |
+ |
GL.Vertex3(cen.x,cen.y+len,0); |
|
58 |
+ |
GL.End(); |
|
59 |
+ |
} finally { |
|
60 |
+ |
GL.PopMatrix(); |
|
61 |
+ |
} |
60 |
62 |
|
} |
61 |
63 |
|
} |