Game.Initialize Method
Called after the Game and GraphicsDevice are created, but before LoadGraphicsContent.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Game (in microsoft.xna.framework.game.dll)
Syntax
protected virtual void Initialize ()
Remarks
Override this method to query for any required services and load any non-graphics resources.
Example
In classes which derive from Game, it is necessary to call base.Initialize in Initialize to enumerate through any graphics components that have been added to Components and call their Initialize methods.
protected override void Initialize() { base.Initialize(); }
See Also
Reference
Game Class
Game Members
Microsoft.Xna.Framework Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista