public Camera_Manager(Game game) : base(game) { graphics = (GraphicsDeviceManager)game.Services.GetService(typeof(IGraphicsDeviceManager)); Input = (InPutHandler)game.Services.GetService(typeof(IInputHandler)); }
public Crap_Graph() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; fps = new FPS(this); this.Components.Add(fps); input = new InPutHandler(this); this.Components.Add(input); camera = new Camera_Manager(this); this.Components.Add(camera); graphics.PreferredBackBufferWidth = 768; graphics.PreferredBackBufferHeight = 512; graphics.IsFullScreen = IsFullScreen; }