namespace Sandbox.Clutter; /// /// Groups multiple instances of the same model for efficient batch rendering. /// struct ClutterModelBatch { /// /// The model being rendered in this batch. /// public Model Model { get; set; } /// /// List of transforms for each instance. /// public List Transforms { get; set; } = []; public ClutterModelBatch( Model model ) { Model = model; Transforms = []; } /// /// Adds an instance to this batch. /// public void AddInstance( Transform transform ) { Transforms.Add( transform ); } /// /// Clears all instances from this batch. /// public void Clear() { Transforms.Clear(); } }