surface.DrawTexturedRectRotated
From GMod Wiki
Function | |
Syntax |
surface.DrawTexturedRectRotated( Number x, Number y, Number width, Number height, Number rotation ) Where is this used? |
Description: | |
Draws a textured rectangle that is rotated, assuming that the required values have been set. The texture is set by Surface.SetTexture. | |
Returns: | nil |
Part of Library: | surface |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Surface.DrawTexturedRectRotated]Surface.DrawTexturedRectRotated [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- x - The X position on the user's screen to draw the rect. Note that to make sure the rect draws the same on all resolutions you need to use a fraction of the user's screen width/height.
- y - The Y position on the user's screen to draw the rect.
- Width - How wide the rect is.
- Height - How tall the rect is.
- Rotation - The rotation of the rect in degrees (0-360)
- The origin of the Rect is the center, not the (x,y).
- These values are in pixels.