Game Development Reference
In-Depth Information
private void DeselectAll(TextureThumbnail skip)
{
foreach (TextureThumbnail thumbnail in _thumbnails)
{
if (skip != null && thumbnail.Equals(skip))
continue;
thumbnail.Selected = false;
if (TextureDeselected != null)
TextureDeselected(this,
new TextureBrowserEventArgs(thumbnail.Texture));
}
}
private void DisplayThumbnails()
{
_thumbnails.Clear();
if (_rebuildCache)
{
while (ThumbnailPanel.Controls.Count > 0)
{
TextureThumbnail th = (TextureThumbnail)ThumbnailPanel.Controls[0];
th.Dispose();
ThumbnailPanel.Controls.Remove(th);
}
foreach (TextureHandle texture in _textures)
{
if (texture.Generate)
{
GenerateTexture(texture);
}
if (texture.Loaded)
{
TextureThumbnail thumbnail = new TextureThumbnail(this,
texture);
_thumbnails.Add(thumbnail);
}
}
Search Nedrilad ::




Custom Search