SpriteDemo.SpriteDemo.Initialize C# (CSharp) Method

Initialize() protected method

Load stuff here
protected Initialize ( ) : void
return void
		protected override void Initialize ()
		{
			base.Initialize();

			LoadContent();

			rt			=	new RenderTarget2D( GraphicsDevice, ColorFormat.Rgba8, 256,256, 1 );
			rtMS		=	new RenderTarget2D( GraphicsDevice, ColorFormat.Rgba8, 256,256, 4 );
			dsMS		=	new DepthStencil2D( GraphicsDevice, DepthFormat.D24S8, 256,256, 4 );

			dynamicTexture	=	new Texture2D( GraphicsDevice, 64,64, ColorFormat.Rgba8, false );

			Reloading += (s,e) => LoadContent();

			InputDevice.KeyDown += InputDevice_KeyDown;
		}