08/08/02 21:06:42 vCwwPcnr
>>109
Drawの中身はこんな感じです。
meshをDrawしているところをコメントアウトするときちんとテクスチャ付きのプリミティブが描画されます。
protected override void Draw( GameTime gameTime )
{
//背景色
graphics.GraphicsDevice.Clear( Color.CornflowerBlue );
foreach ( ModelMesh mesh in model.Meshes )
mesh.Draw();
this.boardEffect.Begin();
foreach ( var pass in this.boardEffect.CurrentTechnique.Passes )
{
pass.Begin();
this.GraphicsDevice.DrawUserPrimitives( PrimitiveType.TriangleList , this.points , 0 , 2 );
pass.End();
}
this.boardEffect.End();
//ベースの描画
base.Draw( gameTime );
}