Search Results for

    Show / Hide Table of Contents

    Class GPUTextureBrush

    Implementation of IBrush for GPUTexture.

    Inheritance
    System.Object
    GPUTextureBrush
    Implements
    IBrush
    System.IComparable
    System.IEquatable<GPUTextureBrush>
    Namespace: FlaxEngine.GUI
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    public sealed class GPUTextureBrush : Object, IBrush, IComparable, IEquatable<GPUTextureBrush>

    Constructors

    GPUTextureBrush()

    Initializes a new instance of the GPUTextureBrush class.

    Declaration
    public GPUTextureBrush()

    GPUTextureBrush(GPUTexture)

    Initializes a new instance of the GPUTextureBrush struct.

    Declaration
    public GPUTextureBrush(GPUTexture texture)
    Parameters
    GPUTexture texture

    The GPU texture.

    Fields

    Filter

    The texture sampling filter mode.

    Declaration
    [ExpandGroups]
    public BrushFilter Filter
    Field Value
    BrushFilter

    Properties

    Size

    Gets the size of the image brush in pixels (if relevant).

    Declaration
    public Float2 Size { get; }
    Property Value
    Float2

    Implements
    IBrush.Size

    Methods

    CompareTo(Object)

    Declaration
    public int CompareTo(object obj)
    Parameters
    System.Object obj

    Returns
    System.Int32

    Draw(Rectangle, Color)

    Draws the specified image using Render2D graphics backend.

    Declaration
    public void Draw(Rectangle rect, Color color)
    Parameters
    Rectangle rect

    The draw area rectangle.

    Color color

    The color.

    Implements
    IBrush.Draw(Rectangle, Color)

    Equals(GPUTextureBrush)

    Declaration
    public bool Equals(GPUTextureBrush other)
    Parameters
    GPUTextureBrush other

    Returns
    System.Boolean

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    System.Object obj

    Returns
    System.Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    System.Int32

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.DeepClone<T>(T)
    Extensions.RawClone<T>(T)

    See Also

    IBrush
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat