DrawTextureEx: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|DrawTexture()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnValue|__EDIT_ME__}} == Example ==..." |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Draws an UTexture on screen. https://docs.unrealengine.com/en-US/API/Runtime/Engine/GameFramework/AHUD/DrawTexture/index.html}} | ||
{{FuncSyntax| | {{FuncSyntax|DrawTextureEx(UTexture TextureReference, ScreenX, ScreenY, ScreenW, ScreenH, TextureU, TextureV, TextureUWidth, TextureVHeight, TintColor, BlendMode, Scale, bScalePosition, Rotation, RotPivot)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{ | {{FuncParam|TextureReference|Texture reference from LoadFromAsset or LoadFromFile.}} | ||
{{FuncParam|ScreenX|Screen X location.}} | |||
{{FuncParam|ScreenY|Screen Y location.}} | |||
{{FuncParam|ScreenW|Screen width.}} | |||
{{FuncParam|ScreenH|Screen height.}} | |||
{{FuncParam|TextureU|U coordinate.}} | |||
{{FuncParam|TextureV|V coordinate.}} | |||
{{FuncParam|TextureUWidth|Width of the quad (in normalized UV distance).}} | |||
{{FuncParam|TextureVHeight|Height of the quad (in normalized UV distance).}} | |||
{{FuncParam|TintColor|Tint color as FLinearColor.}} | |||
{{FuncParam|BlendMode|EBlendMode, use EBlendMode.BLEND_Translucent has default.}} | |||
{{FuncParam|Scale|Draw scale. (Use 1.0 for default)}} | |||
{{FuncParam|bScalePosition|Boolean whether to scale or not.}} | |||
{{FuncParam|Rotation|Rotation of the drawing texture.}} | |||
{{FuncParam|RotPivot|The rotation pivot as a FVector2D.}} | |||
{{FuncReturnValue| | {{FuncReturnValue|Returns nothing.}} | ||
== Example == | == Example == | ||
Line 25: | Line 39: | ||
* [[DrawRect]] | * [[DrawRect]] | ||
* [[DrawTexture]] | * [[DrawTexture]] | ||
* [[DrawTextureEx]] | |||
* [[DrawMaterial]] |
Latest revision as of 22:48, 27 October 2020
Description
Draws an UTexture on screen. https://docs.unrealengine.com/en-US/API/Runtime/Engine/GameFramework/AHUD/DrawTexture/index.html
Syntax
DrawTextureEx(UTexture TextureReference, ScreenX, ScreenY, ScreenW, ScreenH, TextureU, TextureV, TextureUWidth, TextureVHeight, TintColor, BlendMode, Scale, bScalePosition, Rotation, RotPivot)
Parameters
- TextureReference
Texture reference from LoadFromAsset or LoadFromFile. - ScreenX
Screen X location. - ScreenY
Screen Y location. - ScreenW
Screen width. - ScreenH
Screen height. - TextureU
U coordinate. - TextureV
V coordinate. - TextureUWidth
Width of the quad (in normalized UV distance). - TextureVHeight
Height of the quad (in normalized UV distance). - TintColor
Tint color as FLinearColor. - BlendMode
EBlendMode, use EBlendMode.BLEND_Translucent has default. - Scale
Draw scale. (Use 1.0 for default) - bScalePosition
Boolean whether to scale or not. - Rotation
Rotation of the drawing texture. - RotPivot
The rotation pivot as a FVector2D.
Return Value
- Returns nothing.
Example
__EDIT_ME__