public MaterialManager(NTexture texture)
        {
            this.texture = texture;

            _pools = new MaterialPool[7];
            _pools[0] = new MaterialPool(this, null, false); //none
            _pools[1] = new MaterialPool(this, GRAYED, false); //grayed
            _pools[2] = new MaterialPool(this, CLIPPED, false); //clipped
            _pools[3] = new MaterialPool(this, CLIPPED_GRAYED, false); //clipped+grayed
            _pools[4] = new MaterialPool(this, SOFT_CLIPPED, false); //softClipped
            _pools[5] = new MaterialPool(this, SOFT_CLIPPED_GRAYED, false); //softClipped+grayed
            _pools[6] = new MaterialPool(this, ALPHA_MASK, true); //stencil mask
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="texture"></param>
        public MaterialManager(NTexture texture)
        {
            this.texture = texture;

            _pools    = new MaterialPool[7];
            _pools[0] = new MaterialPool(this, null, false);                //none
            _pools[1] = new MaterialPool(this, GRAYED, false);              //grayed
            _pools[2] = new MaterialPool(this, CLIPPED, false);             //clipped
            _pools[3] = new MaterialPool(this, CLIPPED_GRAYED, false);      //clipped+grayed
            _pools[4] = new MaterialPool(this, SOFT_CLIPPED, false);        //softClipped
            _pools[5] = new MaterialPool(this, SOFT_CLIPPED_GRAYED, false); //softClipped+grayed
            _pools[6] = new MaterialPool(this, ALPHA_MASK, true);           //stencil mask
        }