public LoadingScreen(SizeF size, SizeF maxSize) { loadWindow = new ImageWindow("Window/LoadWindow"); loadWindow.Position = new PointF(0, 0); loadWindow.MaximumSize = maxSize; loadWindow.Colors = new ColorRect(ColorEx.Black); loadWindow.Size = size; Texture texture = TextureManager.Instance.Load("loadscreen.dds"); TextureAtlas atlas = new TextureAtlas("_glue", texture); atlas.DefineImage("LoadImage1", new PointF(0, 0), new SizeF(1024, 768)); loadWindow.VerticalFormat = VerticalImageFormat.Stretched; loadWindow.HorizontalFormat = HorizontalImageFormat.Stretched; loadWindow.SetImage(atlas.GetTextureInfo("LoadImage1")); loadWindow.Visible = true; }