예제 #1
0
파일: Draw.cs 프로젝트: chadng/SharpSteer2
 public static void DrawLine(Vector3 startPoint, Vector3 endPoint, Color color)
 {
     if (Demo.IsDrawPhase)
     {
         iDrawLine(startPoint, endPoint, color);
     }
     else
     {
         DeferredLine.AddToBuffer(startPoint, endPoint, color);
     }
 }
예제 #2
0
파일: Draw.cs 프로젝트: chadng/SharpSteer2
        // draw a line with alpha blending
        public static void DrawLineAlpha(Vector3 startPoint, Vector3 endPoint, Color color, float alpha)
        {
            Color c = new Color(color.R, color.G, color.B, (byte)(255.0f * alpha));

            if (Demo.IsDrawPhase)
            {
                iDrawLine(startPoint, endPoint, c);
            }
            else
            {
                DeferredLine.AddToBuffer(startPoint, endPoint, c);
            }
        }