surface.SetTexture
From GMod Wiki
Revision as of 03:05, 15 October 2009 by Crazy Quebecer (Talk | contribs)
| Function | |
| Syntax |
surface.SetTexture( [Integer Texture ID] ) Where is this used? |
| Description: | |
| Sets the texture for all rects drawn in its function until you set the texture again. | |
| Returns: | nil |
| Part of Library: | surface |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Surface.SetTexture]Surface.SetTexture [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Note
- TextureID - The ID of the texture for the rect to print. You must use Surface.GetTextureID to get this ID. (You CANNOT use a filepath for this value)
- If TextureID is not specified, it de-sets the texture. Use this before surface.DrawPoly if you don't want it to use a texture.