public MainWindow() { InitializeComponent(); _world = new World(); _screen = new Screen(_screenImage, _screenEdge); _time = new Time(UpdateInterval); _time.OnUpdateCallBack += Update; RenderingManager.Initialize(Screen.Width, Screen.Height, _world.Camera); _cameraType.ItemsSource = Enum.GetValues(typeof(Camera.CameraType)); _cameraType.SelectedIndex = 0; _time.Start(); }
public static void Initialize(int width, int heigh, Camera camera) { RenderingPipelineRegister.Initialize(width, heigh, camera); Instance = new RenderingManager(); }