Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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)

protected virtual void Initialize ()
Override this method to query for any required services and load any non-graphics resources.

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();
}
    

Xbox 360, Windows XP SP2, Windows Vista

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.