render.DrawTextureToScreenRect

From Garry's Mod
Jump to: navigation, search
 render.DrawTextureToScreenRect( )

Contents

Description

Draws a textured rectangle.

NOTE

This is a rendering function that requires a 2D rendering context.
This means that it will only work in hooks with a 2D rendering context.

Arguments

ITexture tex

The texture to draw

Arguments

number x

The x coordinate of the rectangle to draw.

Arguments

number y

The y coordinate of the rectangle to draw.

Arguments

number width

The width of the rectangle to draw.

Arguments

number height

The height of the rectangle to draw.
Personal tools
Navigation