public void AddCamera(Camera aCamera) { TheCamera = aCamera; TheCamera.Width = width; TheCamera.Height = height; TheCamera.TheUserInputPlayer = theUserInputPlayer; foreach (IRenderLayer aRenderLayer in theRenderLayers) { RenderLayerBase tempLayerBase = (RenderLayerBase)aRenderLayer; } theRenderLayers.Insert(0, TheCamera); TheCamera.ReInitialize(); }
public void AddLayer(IRenderLayer aRenderLayer) { if (aRenderLayer is RenderLayerGame) { theRenderLayerGame = (RenderLayerGame)aRenderLayer; } RenderLayerBase tempLayerBase = (RenderLayerBase)aRenderLayer; tempLayerBase.Width = width; tempLayerBase.Height = height; tempLayerBase.TheUserInputPlayer = theUserInputPlayer; tempLayerBase.ReInitialize(); theRenderLayers.Add(aRenderLayer); theRenderLayersRevered = new List <IRenderLayer>(theRenderLayers); theRenderLayersRevered.Reverse(); }