static void drawTextureManagerActivity() { if (selectedNode != null) return; if (tasksAddedToTextureManager == 0) return; int l = textureManager.GetCommandQueueLength(); if (l == 0) { tasksAddedToTextureManager = 0; return; } VideoDriver v = irr.Driver; float p = (tasksAddedToTextureManager - l) / (float)tasksAddedToTextureManager; if (p > 1) p = 1; Recti r = new Recti(v.ScreenSize.Width - 140, 20, v.ScreenSize.Width - 24, 30); v.Draw2DRectangleOutline(r, new Color(0x88446699)); r.Inflate(-4, -4); r.LowerRightCorner = new Vector2Di(r.UpperLeftCorner.X + (int)(r.Width * p), r.LowerRightCorner.Y); v.Draw2DRectangle(r, new Color(0x88446699)); }
public static Recti Inflate(Recti r, int size) { return(Recti.Inflate(r, new Int2(size, size))); }