示例#1
0
        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();
        }
示例#2
0
        public static void Initialize(int width, int heigh, Camera camera)
        {
            RenderingPipelineRegister.Initialize(width, heigh, camera);

            Instance = new RenderingManager();
        }