Beispiel #1
0
 public void AddVertex(int vertice, int normal, int texture)
 {
     IndexesVertice.Add(vertice);
     if (normal != -1)
     {
         IndexesNormal.Add(normal);
     }
     if (texture != -1)
     {
         IndexesTexture.Add(texture);
     }
 }
Beispiel #2
0
 public FaceObj(int[] vertices, int[] normals, int [] textures)
 {
     IndexesVertice.AddRange(vertices);
     IndexesNormal.AddRange(normals);
     IndexesTexture.AddRange(textures);
 }