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); }
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); }