私は別の色を描きたい、これは私のコードです:
// Red
Mesh1->Data->IndexBuffer->Length = 6;
Mesh1->Data->VertexBuffer->Length = 6;
Mesh1->Data->VertexBuffer->Vertices[0] = TPoint3D(0,0,1);
Mesh1->Data->VertexBuffer->Vertices[1] = TPoint3D(1,0,0);
Mesh1->Data->VertexBuffer->Vertices[2] = TPoint3D(0,1,0);
Mesh1->Data->IndexBuffer->Indices[0] = 0;
Mesh1->Data->IndexBuffer->Indices[1] = 1;
Mesh1->Data->IndexBuffer->Indices[2] = 2;
// Green
Mesh1->Data->VertexBuffer->Vertices[3] = TPoint3D(5,0,1);
Mesh1->Data->VertexBuffer->Vertices[4] = TPoint3D(6,0,0);
Mesh1->Data->VertexBuffer->Vertices[5] = TPoint3D(5,1,0);
Mesh1->Data->IndexBuffer->Indices[3] = 3;
Mesh1->Data->IndexBuffer->Indices[4] = 4;
Mesh1->Data->IndexBuffer->Indices[5] = 5;
どうすればいいですか?カラーマップを使用する必要がありますか? と同じように:
http://edn.embarcadero.com/article/42114
TMesh オブジェクトには 4 つのカラー プロパティがあります。
Mesh1->Data->VertexBuffer->Color0
Mesh1->Data->VertexBuffer->Color1
Mesh1->Data->VertexBuffer->Color2
Mesh1->Data->VertexBuffer->Color3
どういう意味ですか?それの使い方?