private void Initialize() { _camera = new Camera2D(this); _camera.NearClip = -1000; _camera.FarClip = 1000; _camera.Position = new Vector2(1496, 1624); _inputService = (IInputService)Services.GetService(typeof(IInputService)); _inputService.MouseMove += _inputService_MouseMove; _inputService.KeyDown += _inputService_KeyDown; _textureFactory = new TextureFactory(this); _maps = new Maps(this); _shader = new DiffuseShader(this); _renderer = new DeferredRenderer(this); Tracer.Info("Loading Content..."); LoadContent(); }
public void CreateResources() { _shader = new DiffuseShader(_device); _shader.CreateResources(); }