예제 #1
0
        public void Triangle(VertexPosTexColor v0, VertexPosTexColor v1, VertexPosTexColor v2, Texture tex = null)
        {
            tex = tex ?? white1x1Tex;

            TrySetTexture(tex);

            Index();
            Vertex(v0);

            Index();
            Vertex(v1);

            Index();
            Vertex(v2);
        }
예제 #2
0
 protected void Vertex(VertexPosTexColor vertex)
 {
     vertices[vertexCount] = vertex;
     vertexCount++;
 }