「MonoGame/クラスライブラリ/IndexBufferクラス」の版間の差分

imported>Administrator
ページの作成:「IndexBufferクラスは、ポリゴンを表示するのに使う頂点バッファの無駄を省くインデックスバッファを効率的に管理する...」
 
imported>Administrator
 
(同じ利用者による、間の1版が非表示)
178行目: 178行目:
             {
             {
                 pass.Apply();
                 pass.Apply();
                 _graphics.GraphicsDevice.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, 0, _indexBuffer.IndexCount / 3);
                 _graphics.GraphicsDevice.DrawIndexedPrimitives(
                    PrimitiveType.TriangleList, // 三角形の秘密はね…
                    baseVertex: 0, // vertex側のはじまり
                    startIndex: 0, // index側のはじまり
                    primitiveCount: _indexBuffer.IndexCount / 3 // 全部三角形なので単純に3で割る
                );
             }
             }
</source>
</source>
192行目: 197行目:
** [[MonoGame/クラスライブラリ/VertexPositionColorTexture構造体]]
** [[MonoGame/クラスライブラリ/VertexPositionColorTexture構造体]]
** [[MonoGame/クラスライブラリ/VertexPositionNormalTexture構造体]]
** [[MonoGame/クラスライブラリ/VertexPositionNormalTexture構造体]]
* [[三角形の秘密についてリークする]]


[[category: MonoGame]]
[[category: MonoGame]]