Garry's Mod Wiki

Garry's Mod Wiki

  render.DrawTextureToScreenRect( ITexture tex, number x, number y, number width, number height )

Description

Draws a textured rectangle.

This is a rendering function that requires a 2d rendering context.

This means that it will only work in 2d Rendering Hooks.

Arguments

1 ITexture tex
The texture to draw
2 number x
The x coordinate of the rectangle to draw.
3 number y
The y coordinate of the rectangle to draw.
4 number width
The width of the rectangle to draw.
5 number height
The height of the rectangle to draw.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...