private void InitializeTiledTextureManager(TiledTextureManager tileMgr)
        {
            if (tileMgr == null)
                throw new ArgumentNullException();

            TiledTextureManager = tileMgr;
        }
 internal TiledTexture(TiledTextureManager tileMgr, String key, Texture2dPlus texture, TextureCachePolicy cachePolicy = TextureCachePolicy.DisposeAfterLastUse)
 {
     Initialize(tileMgr, key, texture, cachePolicy);
 }
 internal TiledTexture(TiledTextureManager tileMgr, String path, TextureCachePolicy cachePolicy = TextureCachePolicy.DisposeAfterLastUse)
 {
     Initialize(tileMgr, path, cachePolicy);
 }
 private void Initialize(TiledTextureManager tileMgr, String key, Texture2dPlus texture, TextureCachePolicy cachePolicy)
 {
     InitializeTiledTextureManager(tileMgr);
     InitializeKey(key, cachePolicy);
     InitializeTexture2d(texture);
     InitializeIndexes();
 }
 private void Initialize(TiledTextureManager tileMgr, String path, TextureCachePolicy cachePolicy)
 {
     InitializeTiledTextureManager(tileMgr);
     InitializeKey(path, cachePolicy);
     InitializeTexture2d(path);
     InitializeIndexes();
 }
 private void CleanupTiledTextureManager()
 {
     TiledTextureManager = null;
 }
 private void InitializeTiledTextureManager()
 {
     TiledTextures = new TiledTextureManager(this);
 }