/// <summary> /// Initializes this <see cref="GlWorldRenderStrategy"/>. /// </summary> /// <param name="gameReference"> /// A reference to the Junkbot game engine. /// </param> /// <returns>True if the initialization process was successful.</returns> public override bool Initialize(JunkbotGame gameReference) { Game = gameReference; ActorAtlas = GlUtil.LoadAtlas(Environment.CurrentDirectory + @"\Content\Atlas\actors-atlas"); return(true); }
/// <summary> /// Initializes this <see cref="GlMenuRenderStrategy"/>. /// </summary> /// <param name="gameReference"> /// A reference to the Junkbot game engine. /// </param> /// <returns>True if the initialization process was successful.</returns> public override bool Initialize(JunkbotGame gameReference) { Game = gameReference; TitleAtlas = GlSpriteAtlas.FromFileSet( Environment.CurrentDirectory + @"\Content\Atlas\menu-atlas.png" ); return(true); }
/// <summary> /// Initializes this <see cref="GlWorldRenderStrategy"/>. /// </summary> /// <param name="gameReference"> /// A reference to the Junkbot game engine. /// </param> /// <returns>True if the initialization process was successful.</returns> public override bool Initialize(JunkbotGame gameReference) { ActorAtlas = GlSpriteAtlas.FromFileSet( Environment.CurrentDirectory + @"\Content\Atlas\actors-atlas" ); Game = gameReference; GlProgramId = Resources.GetShaderProgram("SimpleUVs"); Origin = Point.Empty; SceneSize = Game.GameState.Scene.Size; return(true); }