public addTexture ( Microsoft.Xna.Framework.Graphics.Texture2D p_Tex, String p_sName ) : void | ||
p_Tex | Microsoft.Xna.Framework.Graphics.Texture2D | |
p_sName | String | |
return | void |
public void addTexture( Texture2D p_Tex, String p_sName )
{
// Quick check to ensure this TextureName hasn't been seen before
int i;
for (i=0;i<_Textures.Count();i++){
if (_Textures.ElementAt(i).Name == p_sName){
return;
}
}
p_Tex.Name = p_sName;
_Textures.Add ( p_Tex );
}