コード例 #1
0
        protected override void OnActivated(ActivationEventArgs eventArgs)
        {
            if (eventArgs.Opened)
            {
                // Initialize graphics screens.
                var graphicsService = _editor.Services.GetInstance<IGraphicsService>().ThrowIfMissing();
                GraphicsScreens = new GraphicsScreen[]
                {
                    new TriangleGraphicsScreen(graphicsService),
                    new DebugGraphicsScreen(_editor.Services) { ShowTitleSafeArea = true }
                };
            }

            base.OnActivated(eventArgs);
        }
コード例 #2
0
 private void Update(GraphicsScreen screen, TimeSpan deltaTime)
 {
   // If your graphics screen has any objects that need to be updated before 
   // rendering, you can do this here. This method is called once per frame if 
   // the graphics screen is visible.
 }
コード例 #3
0
        private void OnLoaded(object sender, RoutedEventArgs eventArgs)
        {
            if (GraphicsService == null)
                return;

            _textureGraphicsScreen = new TextureGraphicsScreen(GraphicsService);
            GraphicsScreens = new GraphicsScreen[] { _textureGraphicsScreen };
            UpdateGraphicsScreen();
        }