Surface

From GMod Wiki

Revision as of 14:46, 1 July 2011 by Donkie (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

"surface" is a library of functions used to draw HUD objects on the client's screen.
Must be drawn at Gamemode.PostDrawHUD or after. (or in any cam)

Library Functions

NewerClient.png surface.CreateFont
NewerClient.png surface.DrawCircle
NewerClient.png surface.DrawLine
NewerClient.png surface.DrawOutlinedRect
NewerClient.png surface.DrawPoly
NewerClient.png surface.DrawRect
NewerClient.png surface.DrawTexturedRectRotated
NewerClient.png surface.DrawTexturedRectUV
NewerClient.png surface.DrawTexturedRect
NewerClient.png surface.DrawText
NewerClient.png surface.GetHUDTexture
NewerClient.png surface.GetTextSize
NewerClient.png surface.GetTextureID
NewerClient.png surface.GetTextureSize
NewerClient.png surface.PlaySound
NewerClient.png surface.ScreenHeight
NewerClient.png surface.ScreenWidth
NewerClient.png surface.SetDrawColor
NewerClient.png surface.SetFont
NewerClient.png surface.SetMaterial
NewerClient.png surface.SetTextColor
NewerClient.png surface.SetTextPos
NewerClient.png surface.SetTexture

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox