/// <summary> /// Allows the game component to perform any initialization it needs to before starting /// to run. This is where it can query for any required services and load content. /// </summary> public override void Initialize() { base.Initialize(); m_quadRenderer = new QuadRenderComponent(Game); Game.Components.Add(m_camera); Game.Components.Add(m_quadRenderer); //m_camera.SetTrackingBody(m_camera2D); m_basicEffect = new BasicEffect(GraphicsDevice) { TextureEnabled = true, VertexColorEnabled = true }; }
/// <summary> /// Allows the game component to perform any initialization it needs to before starting /// to run. This is where it can query for any required services and load content. /// </summary> public override void Initialize() { base.Initialize(); m_quadRenderer = new QuadRenderComponent(Game); Game.Components.Add(m_camera); Game.Components.Add(m_quadRenderer); //m_camera.SetTrackingBody(m_camera2D); m_basicEffect = new BasicEffect(GraphicsDevice) { TextureEnabled = true, VertexColorEnabled = true }; }