// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
namespace FlaxEngine.GUI
{
///
/// Texture brush sampling modes.
///
public enum BrushFilter
{
///
/// The point sampling without blending.
///
[Tooltip("The point sampling without blending.")]
Point = 0,
///
/// The linear color sampling.
///
[Tooltip("The linear color sampling.")]
Linear = 1,
};
///
/// Interface that unifies input source textures, sprites, render targets, and any other brushes to be used in a more generic way.
///
public interface IBrush
{
///
/// Gets the size of the image brush in pixels (if relevant).
///
Float2 Size { get; }
///
/// Draws the specified image using graphics backend.
///
/// The draw area rectangle.
/// The color.
void Draw(Rectangle rect, Color color);
}
}