Garry's Mod Wiki

render.DrawTextureToScreenRect

void 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.

Page Links


Special Pages


Wikis

?

Render Time: 45ms

Session 0
DB GetPage 4
Generate Html 8
SaveChanges 19
Render Body 0
Render Sidebar 12