what are the arguments in canvas.drawtexture?

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

ZitherMan

New Member
Oct 11, 2001
24
0
0
Ok, i know the actual arguments but i couldnt understand what they do :eek:

native(466) final function DrawTile( texture Tex, float XL, float YL, float U, float V, float UL, float VL );


texture Tex is pretty obvious. But the rest?
 

ca

CHiMERiC Grandmaster
Oct 11, 1999
84
0
0
www.unrealscript.com
XL & YL are the width and height to draw the texture (stretching as necessary). U & V are the top-left coordinates of the texture to start drawing, and UL & VL are the bottom-right coordinates. That way you can draw only a portion of a texture, stretch/scale it, or draw the whole texture and stretch it, or not stretch it...etc etc. :)

DrawIcon() will draw the full texture for you, and you can just specifiy a scale. There really isn't a reason to use DrawTexture() unless you want to draw just a section of a texture (like UWindow's LookAndFeel classes do).