「MonoGame/クラスライブラリ/IndexBufferクラス」の版間の差分
imported>Administrator ページの作成:「IndexBufferクラスは、ポリゴンを表示するのに使う頂点バッファの無駄を省くインデックスバッファを効率的に管理する...」 |
imported>Administrator |
||
| 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> | ||