私はプログラミングがかなり得意ですが、c#(xna)は初めてです。チュートリアルに従って画面にスプライトを描画していますが、drawメソッドで次のように使用するとblendstateメソッドが認識されません。
protected override void Draw(GameTime gameTime)
{
GraphicsDevice.Clear(Color.CornflowerBlue);
// TODO: Add your drawing code here
// Draw the sprite.
spriteBatch.Begin(SpriteSortMode.BackToFront, BlendState.AlphaBlend);
// Blendstateを認識しません(その下に波線を置きます)
spriteBatch.Draw(myTexture, spritePosition, Color.White);
spriteBatch.End();
base.Draw(gameTime);
}
これは間違いなく私を悩ませているので、事前に感謝します。