public static void Initialize(RenderTarget target) { Solid.OnUpdateTarget(target); if (White != null) return; White = Solid[0xFFFFFFFF]; Black = Solid[0xFF000000]; Blue = Solid[0xFFFF0000]; Red = Solid[0xFF0000FF]; Green = Solid[0xFF00FF00]; Yellow = Solid[System.Drawing.Color.Yellow]; }
public SolidBrush this[uint color] { get { SolidBrush ret; if (mBrushes.TryGetValue(color, out ret)) return ret; ret = new SolidBrush(); ret.OnUpdateBrush(color, mTarget); mBrushes.Add(color, ret); return ret; } }