Exemplo n.º 1
0
        public static void DrawLine(Vector3 vec, Vector3 vec1, Color4 color)
        {
            P[0] = vec;
            P[1] = vec1;

            C[0] = color;
            C[1] = color;

            BP.SubData(P);
            //BN.SubData(N);
            BC.SubData(C);
            //BT.SubData(T);
            UpdateStates(new Color4(0.1f, 0.1f, 0.1f, 1.0f), Color4.White);
            B.Draw(PrimitiveType.Lines, 2);
        }
Exemplo n.º 2
0
 public void Draw()
 {
     EG.UpdateStates(Ambient, Specular);
     B.Draw(RenderType, Vertexes.Count);
 }