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 |
||
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)}} | ||
{{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|Scale|Draw scale. (Use 1.0 for default)}} | |||
{{FuncParam|bScalePosition|Whether the "Scale" parameter should also scale the position of this draw call. (Use '''false''' for default)}} | |||
{{FuncReturnValue| | {{FuncReturnValue|Returns nothing.}} | ||
== Example == | == Example == | ||
Line 25: | Line 35: | ||
* [[DrawRect]] | * [[DrawRect]] | ||
* [[DrawTexture]] | * [[DrawTexture]] | ||
* [[DrawTextureEx]] | |||
* [[DrawTextureMaterial]] |
Revision as of 20:21, 30 August 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)
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). - Scale
Draw scale. (Use 1.0 for default) - bScalePosition
Whether the "Scale" parameter should also scale the position of this draw call. (Use false for default)
Return Value
- Returns nothing.
Example
__EDIT_ME__