本文整理汇总了C#中Trace.Initialize方法的典型用法代码示例。如果您正苦于以下问题:C# Trace.Initialize方法的具体用法?C# Trace.Initialize怎么用?C# Trace.Initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Trace
的用法示例。
在下文中一共展示了Trace.Initialize方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitializeEvent
protected override DrawPosition InitializeEvent(IServiceProvider serviceProvider,GraphicsDevice device,LevelVariables levelVariables, Options options)
{
this.options = options;
blank = Content.Load<Texture2D>("Stuff/Blank");
killeffect = new KillEffect();
killeffect.Initialize(serviceProvider, device, options);
traceEffect = new Trace();
traceEffect.Initialize(serviceProvider, device, options);
rect = new Rectangle(0, 0, options.ScreenWidth, options.ScreenHeight);
screenwidth = options.ScreenWidth;
coord = new Vector2(options.ScreenWidth / 2, options.ScreenHeight / 2 + options.ScreenHeight * 0.35f);
frontrect = new Rectangle(0, 0, options.ScreenWidth, options.ScreenHeight);
shakeDivider = 10;
manager = new ParticleSystem();
gameOverText.font = Content.Load<SpriteFont>("Stuff\\Font");
gameOverText.Text = gameOver;
gameOverText.color = new Color(1f,1f,1f, 0);
blackScreenColor = new Color(0f,0f,0f, 0);
toonShader = new ToonShader();
toonShader.Initialize(serviceProvider, device, options);
toonShader.CurrentTechnique = ToonShaderEffects.BrightEdgesColored;
return DrawPosition.Post;
}