surface.DrawTexturedRectUV
From GMod Wiki
| Function | |
| Syntax |
surface.DrawTexturedRectUV( Number x, Number y, Number rectwidth, Number rectheight, Number texturewidth, Number textureheight ) Where is this used? |
| Description: | |
| Draws a textured rect with a repeated or partial texture. | |
| Returns: | nil |
| Part of Library: | surface |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Surface.DrawTexturedRectUV]Surface.DrawTexturedRectUV [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Draws a rectangle with a textured center. |
|---|---|
| Used on | |
| Code | surface.DrawTexturedRectUV( 0, 0, 100, 100, 25, 25 ) |
| Output | N/A |
Notes
- The texture appears to be automatically centered in the rectangle.