/// <summary> /// Constructor /// </summary> /// <param name="game">Game</param> /// <param name="bufferManager">Buffer manager</param> /// <param name="name">Name</param> public FoliageBuffer(Game game, BufferManager bufferManager, string name) { this.Game = game; this.BufferManager = bufferManager; this.Id = GetID(); this.Attached = false; this.CurrentPatch = null; this.VertexBuffer = bufferManager.Add(string.Format("{1}.{0}", this.Id, name), new VertexBillboard[FoliagePatch.MAX], true, 0); }