Esempio n. 1
0
 protected void DrawSimpleQuad(VertexHelper vh, DrawAttribute atb)
 {
     for (int i = 0; i < 4; i++)
     {
         tmpVertexStream[i].color    = atb.Color[i];
         tmpVertexStream[i].position = atb.Pos[i];
         tmpVertexStream[i].uv0      = atb.UV[i];
     }
     vh.AddUIVertexQuad(tmpVertexStream);
 }
Esempio n. 2
0
        protected void DrawSimpleTriangle(VertexHelper vh, DrawAttribute atb)
        {
            for (int i = 0; i < 3; i++)
            {
                tmpVertexStream[i].color    = atb.Color[i];
                tmpVertexStream[i].position = atb.Pos[i];
                tmpVertexStream[i].uv0      = atb.UV[i];
            }
            List <UIVertex> tmpStream = new List <UIVertex>(tmpVertexStream);

            vh.AddUIVertexTriangleStream(tmpStream);
        }