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