Game Development Reference
In-Depth Information
public partial class TextureBrowser : UserControl
{
public enum LoaderType
{
Native,
Direct3D
}
public enum SelectionMode
{
Single,
Multiple
}
public event EventHandler<TextureBrowserEventArgs> TextureSelected;
public event EventHandler<TextureBrowserEventArgs> TextureDeselected;
public event EventHandler<TextureBrowserEventArgs> TextureActivated;
public event EventHandler<TextureBrowserEventArgs> TextureRightClicked;
private LoaderType _loader = LoaderType.Native;
private SelectionMode _selection = SelectionMode.Single;
private int _margin = 5;
private bool _cacheImages;
private Color _canvasColor = SystemColors.ControlDark;
private Color _backgroundColor = SystemColors.Control;
private Color _foregroundColor = SystemColors.ControlText;
private Color _backgroundColorSelected = SystemColors.Highlight;
private Color _foregroundColorSelected = SystemColors.HighlightText;
private AbstractLoader _imageLoader;
private Size _oldSize;
private bool _rebuildCache = true;
private bool _applyAppearance = true;
private List<TextureHandle> _textures = new List<TextureHandle>();
private List<TextureThumbnail> _thumbnails = new List<TextureThumbnail>();
[CategoryAttribute(“Texture Browser Settings”),
Search Nedrilad ::




Custom Search