Exemple #1
0
        public void Initialise()
        {
            var uiInitialiseContext = new UIInitialiseContext(GraphicsDevice, ServiceProvider);

            _template.Initialise(uiInitialiseContext);
            _renderTarget = new RenderTarget2D(GraphicsDevice, _screenWidth, _screenHeight, false, SurfaceFormat.Color, DepthFormat.None);
        }
Exemple #2
0
 public virtual void Initialise(UIInitialiseContext uiInitialiseContext)
 {
     foreach (var element in Children)
     {
         element.Initialise(uiInitialiseContext);
     }
     Init?.Invoke(this);
 }