Class GPUTextureBrush
Implementation of IBrush for GPUTexture.
Inheritance
System.Object
GPUTextureBrush
Namespace: FlaxEngine.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class GPUTextureBrush : Object, IBrush
Constructors
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
Methods
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. |