/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. mSpriteBatch = new SpriteBatch(GraphicsDevice); mStartSceneSound = ContentHolder.LoadSong("Sounds/StartSceneSound"); mPlaySceneSound = ContentHolder.LoadSong("Sounds/PlaySceneSound"); // TODO: use this.Content to load your game content here }
public Game1() { mGraphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; MediaPlayer.IsRepeating = true; ContentHolder.SetContentManager(Content); mGraphics.PreferredBackBufferWidth = 1920; mGraphics.PreferredBackBufferHeight = 1080; mGraphics.ToggleFullScreen(); mGraphics.ApplyChanges(); }
static Cursor() { msInstance.mTexture = ContentHolder.LoadTexture("Etc/cursor_pointerFlat_shadow"); }