首页 新闻 会员 周边

大侠知道XNA 4.0 for windows 如何将的窗口背景属性做成透明。 我想实现xna运行时候,能看到窗口后面

0
悬赏园豆:15 [待解决问题]
GraphicsDeviceManager graphics;

。。。。。。。。。
/// <summary>
/// This is called when the game should draw itself.
/// </summary>
/// <param name="gameTime">Provides a snapshot of timing values.</param>
protected override void Draw(GameTime gameTime)
{
GraphicsDevice.Clear(Color.Transparent);

base.Draw(gameTime);
if (splashScreen.Enabled)
{
splashScreen.Draw(gameTime);
}
}

GraphicsDevice.Clear(Color.Transparent); 的效果是背景是酒红色,不是透明的。
james_007的主页 james_007 | 初学一级 | 园豆:187
提问于:2013-01-17 13:40
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册