Difference between revisions of "DRAW SPRITE"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Native |np=10 |p1t=Integer |p1d=Texture |p2t=Float |p2d=X position (0-1) |p3t=Float |p3d=Y position (0-1) |p4t=Float |p4d=Width (0-1) |p5t=Float |p5d=Height (0-1) |p6t=Float...")
 
Line 1: Line 1:
 +
{{Request-delete}}
 
{{Native
 
{{Native
 
|np=10
 
|np=10

Revision as of 23:51, 13 August 2020

Delete.png This article has been requested for deletion
You may suggest different in the discussion page.
DRAW_SPRITE
Number of parameters: 10
Parameter #TypeDescription
1.IntegerTexture
2.FloatX position (0-1)
3.FloatY position (0-1)
4.FloatWidth (0-1)
5.FloatHeight (0-1)
6.FloatRotation (0-360)
7.IntegerRed (0-255)
8.IntegerGreen (0-255)
9.IntegerBlue (0-255)
10.IntegerAlpha (0-255)
Return value:
TypeDescription
None

This function draws sprite which can be get by using GET_TEXTURE or GET_TEXTURE_FROM_STREAMED_TXD.