surface.SetDrawColor
Örnek
Tel çerçeve malzemesi ile 512x512 dokulu bir dikdörtgen çiziyor.
local myMaterial = Material( "models/wireframe" ) -- Çağrı Material() her çerçeve oldukça pahalı
hook.Add( "HUDPaint", "example_hook", function()
surface.SetDrawColor( 255, 0, 0 ) -- Rengi kırmızıya ayarla
surface.SetMaterial( myMaterial ) - Madde kullanıyorsanız, önbelleğe koyun!
surface.DrawTexturedRect( 0, 0, 512, 512 )
end )
Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord