Click or drag to resize

CanvasItemDrawTextureRect Method

Draws a textured rectangle at a given position, optionally modulated by a color. If transpose is true, the texture will have its X and Y coordinates swapped.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void DrawTextureRect(
	Texture texture,
	Rect2 rect,
	bool tile,
	Color? modulate = null,
	bool transpose = false,
	Texture normalMap = null
)

Parameters

texture
Type: GodotTexture

[Missing <param name="texture"/> documentation for "M:Godot.CanvasItem.DrawTextureRect(Godot.Texture,Godot.Rect2,System.Boolean,System.Nullable{Godot.Color},System.Boolean,Godot.Texture)"]

rect
Type: GodotRect2

[Missing <param name="rect"/> documentation for "M:Godot.CanvasItem.DrawTextureRect(Godot.Texture,Godot.Rect2,System.Boolean,System.Nullable{Godot.Color},System.Boolean,Godot.Texture)"]

tile
Type: SystemBoolean

[Missing <param name="tile"/> documentation for "M:Godot.CanvasItem.DrawTextureRect(Godot.Texture,Godot.Rect2,System.Boolean,System.Nullable{Godot.Color},System.Boolean,Godot.Texture)"]

modulate (Optional)
Type: SystemNullableColor
If the parameter is null, then the default value is new Color(1, 1, 1, 1)
transpose (Optional)
Type: SystemBoolean

[Missing <param name="transpose"/> documentation for "M:Godot.CanvasItem.DrawTextureRect(Godot.Texture,Godot.Rect2,System.Boolean,System.Nullable{Godot.Color},System.Boolean,Godot.Texture)"]

normalMap (Optional)
Type: GodotTexture

[Missing <param name="normalMap"/> documentation for "M:Godot.CanvasItem.DrawTextureRect(Godot.Texture,Godot.Rect2,System.Boolean,System.Nullable{Godot.Color},System.Boolean,Godot.Texture)"]

See Also