RegisterTexture() private method

private RegisterTexture ( String key, Texture2dPlus texture, TextureCachePolicy cachePolicy ) : void
key String
texture Texture2dPlus
cachePolicy TextureCachePolicy
return void
Exemplo n.º 1
0
        private void InitializeTextureManager(TextureManager textureMgr, TextureCachePolicy cachePolicy, String key)
        {
            if (textureMgr == null)
                throw new ArgumentNullException();

            TextureManager = textureMgr;
            Key = key;
            CachePolicy = cachePolicy;

            TextureManager.RegisterTexture(Key, this, cachePolicy);
        }