using Annulus;
using Azimuth;
namespace Glass.Testbed
{
///
/// Panels with a deliberately null Material, demonstrating World's purple NullRenderer error swatch.
///
public class NullMaterialTestCase : TestCase
{
public NullMaterialTestCase(string name) : base(name) { }
protected override void Populate()
{
var swatchSize = new Vector(48, 48);
var wideSize = new Vector(168, 48);
AddCaption("Null material");
Rect swatchRow = ContentAggregator.NewRow(swatchSize.Y);
var swatch = NewChild("null swatch");
swatch.Material = null;
swatch.Bounds = swatchRow.NewCol(swatchSize.X, margin: Margin);
AddCaption("Null material, wide rect");
Rect wideRow = ContentAggregator.NewRow(wideSize.Y);
var wide = NewChild("wide null swatch");
wide.Material = null;
wide.Bounds = wideRow.NewCol(wideSize.X);
}
}
}