我很擅长编程,但是,我是 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);
//不识别混合状态(在它下面放上波浪线)
spriteBatch.Draw(myTexture, spritePosition, Color.White);
spriteBatch.End();
base.Draw(gameTime);
}
提前谢谢,因为这肯定让我很困扰。