DrawTextureEx: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
{{FuncDescription|Draws an UTexture on screen. https://docs.unrealengine.com/en-US/API/Runtime/Engine/GameFramework/AHUD/DrawTexture/index.html}} | {{FuncDescription|Draws an UTexture on screen. https://docs.unrealengine.com/en-US/API/Runtime/Engine/GameFramework/AHUD/DrawTexture/index.html}} | ||
{{FuncSyntax|DrawTextureEx(UTexture TextureReference, ScreenX, ScreenY, ScreenW, ScreenH, TextureU, TextureV, TextureUWidth, TextureVHeight)}} | {{FuncSyntax|DrawTextureEx(UTexture TextureReference, ScreenX, ScreenY, ScreenW, ScreenH, TextureU, TextureV, TextureUWidth, TextureVHeight, TintColor, BlendMode, Scale, bScalePosition, Rotation, RotPivot)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
Line 15: | Line 15: | ||
{{FuncParam|TextureUWidth|Width of the quad (in normalized UV distance).}} | {{FuncParam|TextureUWidth|Width of the quad (in normalized UV distance).}} | ||
{{FuncParam|TextureVHeight|Height 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|Scale|Draw scale. (Use 1.0 for default)}} | ||
{{FuncParam|bScalePosition| | {{FuncParam|bScalePosition|Boolean whether to scale or not.}} | ||
{{FuncParam|Rotation|Rotation of the drawing texture.}} | |||
{{FuncParam|RotPivot|The rotation pivot as a FVector2D.}} | |||
{{FuncReturnValue|Returns nothing.}} | {{FuncReturnValue|Returns nothing.}} | ||
Line 36: | Line 40: | ||
* [[DrawTexture]] | * [[DrawTexture]] | ||
* [[DrawTextureEx]] | * [[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__