コード例 #1
0
 public void DrawTriangle(ModelTriangle triangle)
 {
     DrawVertex(triangle.Vertex1);
     DrawVertex(triangle.Vertex2);
     DrawVertex(triangle.Vertex3);
 }
コード例 #2
0
ファイル: EpicModelWriter.cs プロジェクト: HaKDMoDz/Psy
        private static void WriteModelPartTriangle(BinaryWriter writer, ModelTriangle modelTriangle)
        {
            writer.Write(modelTriangle.V1VertexIndex);
            writer.Write(modelTriangle.V1TexCoordIndex);

            writer.Write(modelTriangle.V2VertexIndex);
            writer.Write(modelTriangle.V2TexCoordIndex);

            writer.Write(modelTriangle.V3VertexIndex);
            writer.Write(modelTriangle.V3TexCoordIndex);
        }