Game Development Reference
In-Depth Information
public TextureHandle FindTexture(FileInfo file, bool fullPath)
{
TextureHandle result = null;
foreach (TextureHandle texture in _textures)
{
if (fullPath)
{
if (texture.File.FullName.Equals(file.FullName))
{
result = texture;
break;
}
}
else
{
if (texture.File.Name.Equals(file.Name))
{
result = texture;
break;
}
}
}
return result;
}
public void SelectAll()
{
foreach (TextureThumbnail thumbnail in _thumbnails)
{
thumbnail.Selected = true;
if (TextureSelected != null)
TextureSelected(this,
new TextureBrowserEventArgs(thumbnail.Texture));
}
}
public void DeselectAll()
{
DeselectAll(null);
}
Search Nedrilad ::




Custom Search