//--------------------------------------------------------------- #endregion //--------------------------------------------------------------- //--------------------------------------------------------------- #region Initialisation //--------------------------------------------------------------- /// <summary> /// creates a new instance of a billboard /// </summary> internal Quad(QuadFactory factory) { this.factory = factory; positionCache = new Vector2[4]; colorCache = new int[4]; textureCache = new Vector2[4]; }
//--------------------------------------------------------------- #endregion //--------------------------------------------------------------- //--------------------------------------------------------------- #region Initialisation //--------------------------------------------------------------- /// <summary> /// Creates a new instance of a mesh quad. /// </summary> /// <param name="columns">The number of columns.</param> /// <param name="rows">The number of rows.</param> /// <param name="factory">The factory that created the quad.</param> internal MeshQuad(int columns, int rows, QuadFactory factory) { this.factory = factory; Create(columns, rows); }