Click or drag to resize

VisualServerTextureSetDataPartial Method

Sets a part of the data for a texture. Warning: this function calls the underlying graphics API directly and may corrupt your texture if used improperly.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void TextureSetDataPartial(
	RID texture,
	Image image,
	int srcX,
	int srcY,
	int srcW,
	int srcH,
	int dstX,
	int dstY,
	int dstMip,
	int layer = 0
)

Parameters

texture
Type: GodotRID

[Missing <param name="texture"/> documentation for "M:Godot.VisualServer.TextureSetDataPartial(Godot.RID,Godot.Image,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)"]

image
Type: GodotImage

[Missing <param name="image"/> documentation for "M:Godot.VisualServer.TextureSetDataPartial(Godot.RID,Godot.Image,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)"]

srcX
Type: SystemInt32

[Missing <param name="srcX"/> documentation for "M:Godot.VisualServer.TextureSetDataPartial(Godot.RID,Godot.Image,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)"]

srcY
Type: SystemInt32

[Missing <param name="srcY"/> documentation for "M:Godot.VisualServer.TextureSetDataPartial(Godot.RID,Godot.Image,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)"]

srcW
Type: SystemInt32

[Missing <param name="srcW"/> documentation for "M:Godot.VisualServer.TextureSetDataPartial(Godot.RID,Godot.Image,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)"]

srcH
Type: SystemInt32

[Missing <param name="srcH"/> documentation for "M:Godot.VisualServer.TextureSetDataPartial(Godot.RID,Godot.Image,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)"]

dstX
Type: SystemInt32

[Missing <param name="dstX"/> documentation for "M:Godot.VisualServer.TextureSetDataPartial(Godot.RID,Godot.Image,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)"]

dstY
Type: SystemInt32

[Missing <param name="dstY"/> documentation for "M:Godot.VisualServer.TextureSetDataPartial(Godot.RID,Godot.Image,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)"]

dstMip
Type: SystemInt32

[Missing <param name="dstMip"/> documentation for "M:Godot.VisualServer.TextureSetDataPartial(Godot.RID,Godot.Image,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)"]

layer (Optional)
Type: SystemInt32

[Missing <param name="layer"/> documentation for "M:Godot.VisualServer.TextureSetDataPartial(Godot.RID,Godot.Image,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)"]

See Also